Re: The NEW Google Merchant Thread - Version 1.12.0
Thanks Steve
All my language feeds now have unique Ids.
With the new version 1.12.5 , for the german and french feeds I'm getting diamond shaped question marks ie occup�
I didn't get this problem with the earlier versions.
I tried removing the htmlentities function from Googlefroogle as previously suggested however it didnt work.
Any help would be appreciated.
v1.12.5 corrupted characters in feeds
Being the masochist I am, I decided to try out 1.12.5, despite my version working perfectly.
I found my feed being rejected where a degree symbol was in use and a corrupted character (square) was being created.
I find the reason in google_base.php (as always), in the sanita function which has been moved and mostly commented out.
PHP Code:
function google_base_sanita($str, $rt=false) {
//global $products;
$str = str_replace(array("\r\n", "\r", "\n", " "), ' ', $str);
$str = strip_tags($str);
//$charset = 'UTF-8';
//if (defined(CHARSET)) {
//$charset = strtoupper(CHARSET);
//}
$str = html_entity_decode($str, ENT_QUOTES);//, $charset);
//$str = html_entity_decode($str, ENT_QUOTES, $charset);
//$str = htmlspecialchars($str, ENT_QUOTES, '', false);
//$str = htmlentities($str, ENT_QUOTES, $charset, false);
return $str;
}
Regressing this code to include the charset again:
PHP Code:
function google_base_sanita($str, $rt=false) {
//global $products;
$str = str_replace("\r\n", ' ', $str);
$str = strip_tags($str);
$charset = 'UTF-8';
if (defined(CHARSET)) {
$charset = strtoupper(CHARSET);
}
$str = html_entity_decode($str, ENT_QUOTES, $charset);
//$str = html_entity_decode($str, ENT_QUOTES, $charset);
//$str = htmlspecialchars($str, ENT_QUOTES, '', false);
//$str = htmlentities($str, ENT_QUOTES, $charset, false);
return $str;
}
Fixed my problem.
Re: The NEW Google Merchant Thread - Version 1.12.0
Just installed 1.12.4 over an old version that was throwing out the "availability" error and causing 0 products to show up in google.
Ran the uninstall script, then the install script. Everything looks ok on the admin side, but when clicking the xml file, it is blank. Before this upgrade, if the xml link was clicked, it showed all of the products like an rss feed.
Tried to upload it to google and only a handful of products were inserted, all of which were sold long ago. The feed level messages shows "XML formatting error - Error".
Re: The NEW Google Merchant Thread - Version 1.12.0
Quote:
Originally Posted by
pricediscrimination
Just installed 1.12.4 over an old version that was throwing out the "availability" error and causing 0 products to show up in google.
Ran the uninstall script, then the install script. Everything looks ok on the admin side, but when clicking the xml file, it is blank. Before this upgrade, if the xml link was clicked, it showed all of the products like an rss feed.
Tried to upload it to google and only a handful of products were inserted, all of which were sold long ago. The feed level messages shows "XML formatting error -
Error".
Turn on the sanitizer function and see if that makes a difference.
Re: The NEW Google Merchant Thread - Version 1.12.0
Quote:
Originally Posted by
delia
Turn on the sanitizer function and see if that makes a difference.
Does that mean go to includes/classes/google_base.php and remove the comment-out between lines 439 and 442 as in @torvista's post above?
I just did that. Nothing changed. Nothing showing up in the XML.
Re: The NEW Google Merchant Thread - Version 1.12.0
No, it kinda sounds like it's not installed properly. Did you turn on debugging so that you can see the products as you export?
Re: The NEW Google Merchant Thread - Version 1.12.0
Quote:
Originally Posted by
delia
No, it kinda sounds like it's not installed properly. Did you turn on debugging so that you can see the products as you export?
With debug mode on, the popup shows that the products are being exported without errors, but then the actual xml file is still not showing anything.
Re: The NEW Google Merchant Thread - Version 1.12.0
Quote:
Originally Posted by
pricediscrimination
With debug mode on, the popup shows that the products are being exported without errors, but then the actual xml file is still not showing anything.
Are you only trying to view the xml file in the browser or are you downloading it and opening it on your computer? Just because you can't see anything in the browser does not mean the file is empty.
Re: The NEW Google Merchant Thread - Version 1.12.0
Also, it is still trying to include products that are located in a category that is excluded in the Google Base Feeder Configuration admin.
Re: The NEW Google Merchant Thread - Version 1.12.0
Quote:
Originally Posted by
delia
Are you only trying to view the xml file in the browser or are you downloading it and opening it on your computer? Just because you can't see anything in the browser does not mean the file is empty.
Good point. When viewing in the browser, nothing is there. But before, it used to display each product almost like looking at a blog's RSS feed.
After opening it file in wordpad, the actual XML appears to have the content there. But again, is showing products from a category that is supposed to be excluded.
I upgraded from an older (don't even know how old) version. Uploaded all the files. Then ran the update_1_12_4 SQL script then ran the uninstall script, then ran the install script again. Not the right way probably, I know. But the weird thing is that all of the settings in admin seem to have stayed the same. Is that normal?