WebsiteBaker Community Forum

WebsiteBaker Support (2.10.x) => Modules => Topic started by: Het Artiek on August 21, 2017, 07:15:24 PM

Title: Foldergallery Call to undefined function
Post by: Het Artiek on August 21, 2017, 07:15:24 PM
Moving from server A to B the foldergallery broke.

Do i need a newer version?

The page is shows this error

There was an uncatched exception
Call to undefined function mysql_client_encodi ng()
in line (30) of (/modules/foldergallery/view.php):
Title: Re: Foldergallery Call to undefined function
Post by: DarkViper on August 22, 2017, 01:35:21 AM
it looks like your server 'B' has an older version of PHP then your server 'A'

Manuela
Title: Re: Foldergallery Call to undefined function
Post by: Het Artiek on August 22, 2017, 05:20:14 PM
tnx Darkviper

php version is 7.1. my host has a php version selector in the direct admin so i can toggle easy.
It is running 5.6..

i think the module is outdated and needs a update.

Title: Re: Foldergallery Call to undefined function
Post by: hgs on August 22, 2017, 09:15:06 PM
look at this
https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=067A205
Title: Re: Foldergallery Call to undefined function
Post by: Amiga1200 on August 22, 2017, 09:57:45 PM
Same error here on WSB 2.10 with Foldergallery 2.1.0.

I just switched the collation on field categorie in table wb_mod_foldergaller y_categories from utf8_unicode_ci to utf8_general_ci.

With utf8_unicode_ci i got this error: SQL Error (1267) Illegal mix of collations

Now it works.
Title: Re: Foldergallery Call to undefined function
Post by: jacobi22 on August 22, 2017, 11:33:43 PM
Quote
The page is shows this error

There was an uncatched exception
Call to undefined function mysql_client_encoding()
in line (30) of (/modules/foldergallery/view.php):

this was a function in the old foldergallery (vers 1.38 and older) and also in responsiveFoldergal lery, to set the datas to a special charset. this code is removed in vers 1.39 and newer, so not possible, to get the same error message for this

two possible problems (if you get this message after the module upgrade):
1. you dont overwrite all files in the module upgrade. if you have problems like this with you ftp-client, its recommended, to clear the module folder complete and upload the new files into this folder via ftp
2. its a old error message (see date of this message, delete the error.log and try it again