WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: zirzy on November 17, 2013, 03:01:49 PM

Title: Product titles and thumbs missing after server update
Post by: zirzy on November 17, 2013, 03:01:49 PM
Hi,
I'm wondering What happend during server update.. We had 2.7 version WB and 1.6 version Bakery (if I remember right) and after server php update (->5,4) almost all product thumbs and titles are missing.. Product info is still in database but Not showing in frontend. Does enyone know What is wrong? Server Owner told us to update our WB and Bakery and it should work, but it did Not.

There is other problems too but they are minor to this..

-Zirzy
Title: Re: Product titles and thumbs missing after server update
Post by: zirzy on November 17, 2013, 03:17:07 PM
..and in backend all products are listed but when i open product details some products are missing titles. If i write titles again and save, new title desapears.

 :?
Title: Re: Product titles and thumbs missing after server update
Post by: freeSbee on November 17, 2013, 03:22:43 PM
Hi zirzy

Please set WB "Settings" > "PHP Error Reporting Level" to E_ALL and post any php errors displayed by WB.

Regards Christoph
Title: Re: Product titles and thumbs missing after server update
Post by: jacobi22 on November 17, 2013, 03:31:45 PM
We had 2.7 version WB and 1.6 version Bakery (if I remember right) .................Se rver Owner told us to update our WB and Bakery and it should work, but it did Not.

and whats the actual version now?
Title: Re: Product titles and thumbs missing after server update
Post by: zirzy on November 17, 2013, 06:32:33 PM
Thanks for fast reply!

freeSbee:
I will do that!

Jacobi22:
Latest version in both.
Title: Re: Product titles and thumbs missing after server update
Post by: arttut02 on November 17, 2013, 10:18:40 PM
Hi guys!

I tracked down the problem to htmlspecialchars function in PHP.

$title     = htmlspecialchars(stripslashes($item['title']));  = Empty string.
$title     = htmlspecialchars(stripslashes($item['title']), ENT_COMPAT, DEFAULT_CHARSET); = Gives me the title.

I think this is related to default_charset changes in PHP (ISO-8859-1 -> UTF-8). Changing the default_charset value in PHP.INI didn't had any affect tho.

Also it seems that this is a problem only for data that comes from db because
echo htmlspecialchars(DEFAULT_CHARSET);
gives me an string of default_charset.
Title: Re: Product titles and thumbs missing after server update
Post by: zirzy on November 18, 2013, 09:28:42 AM
freeSbee

php error looks like this:

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /var/www/vhosts/spastore.fi/httpdocs/wb/templates/Spastore_kauppasivut/index.php on line 43

Notice: Undefined variable: setting_continue_ur l in /var/www/vhosts/spastore.fi/httpdocs/wb/modules/bakery/view_overview.php on line 119

Notice: Undefined variable: setting_continue_ur l in /var/www/vhosts/spastore.fi/httpdocs/wb/modules/bakery/view_overview.php on line 273
Title: Re: Product titles and thumbs missing after server update
Post by: zirzy on November 18, 2013, 10:07:34 AM
arttut02:

Yes, only titles where is nordic letters (ä,ö,å) are missing. When I take letter ä away from tittle, title works fine.