WebsiteBaker Support (2.8.x) > Bakery Shop
Product titles and thumbs missing after server update
arttut02:
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.
zirzy:
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
zirzy:
arttut02:
Yes, only titles where is nordic letters (ä,ö,å) are missing. When I take letter ä away from tittle, title works fine.
Navigation
[0] Message Index
[*] Previous page
Go to full version