Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
I am running the latest version of Google Base 1.7.4 I replaced this portion of the xml sanitizer code in includes/classes/google_base.php in 1.7.4 with the one from 1.7.0a
This is what version 1.7.4 looks like
Replace with this one from 1.7.0a// sanitizes code for XML
function google_base_xml_sanitizer($str, $cdata = false) {
$str = str_replace(array("\t" , "\n", "\r"), ' ', $str);
$str = html_entity_decode($str);
$str = strip_tags($str);
$str = htmlentities($str);
$str = utf8_encode(str_replace(array("®", "©", "™", " "), array('(r)', '(c)', '(tm)', ' '), $str));
$str = eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?ÀÂÄßÈÉÊËÎÏÔÖÙÛÜàâäèéêëîïôöùûüÿÇç«»]", "", $str);
$out = "";
$length = strlen($str);
for ($i = 0; $i < $length; $i++) {
$current = ord($str{$i});
if ((($current == 0x9) || ($current == 0xA) || ($current == 0xD) || (($current >= 0x20) && ($current <= 0xD7FF)) || (($current >= 0xE000) && ($current <= 0xFFFD)) || (($current >= 0x10000) && ($current <= 0x10FFFF))) && ($current > 10) ) {
$out .= chr($current);
} else {
$out .= " ";
}
}
$str = trim($out);
$str = str_replace(array("<", ">"), array("<", ">"), $str);
if ($cdata) {
$str = '<![CDATA[' . $str . ']]>';
}
return $str;
}
}// sanitizes code for XML
function google_base_xml_sanitizer($str, $cdata = false) {
$_strip_search = array("![\t ]+$|^[\t ]+!m",'%[\r\n]+%m'); // remove CRs and newlines
$_strip_replace = array('',' ');
$_cleaner_array = array(">" => "> ", "®" => "", "®" => "", "™" => "", "™" => "", "\t" => "", " " => "");
$str = html_entity_decode($str);
$str = strtr($str, $_cleaner_array);
$str = preg_replace($_strip_search, $_strip_replace, $str);
$str = strip_tags($str);
$str = eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?äÂÄöÖüÜß]", "", $str);
$str = utf8_encode(htmlentities($str));
//$str = $str;
$str = str_replace('&amp;', '&', $str);
//if (!$cdata) {
//$str = htmlentities(html_entity_decode($str));
//$in = $out = array();
//$in[] = "®"; $out[] = '(r)';
//$in[] = "©"; $out[] = '(c)';
//$in[] = "™"; $out[] = '(tm)';
//$str = html_translate($str);
$str = trim($str);
if ($cdata) {
$str = '<![CDATA[' . $str . ']]>';
}
return $str;
Make sure you Include Zero Quantity" is ON and it is included all your items.
Create another feed and see what happens. Hope this helps.
Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation
When I go into the cpanel to add a cron job
Am I suppose to add 0 5 * * *
in the "Command to run:" 0 5 * * * GET http://www.tack2u.co.uk/googlefroogle.php?feed=fy_uy_tp
if it gives me the options on when to run in underneath?
sorry I went into the Advanced (Unix Style) option and I see what its there for now.
Feed cache? where is it? the only feed in the store's tree is the feed directory which has 777 permissions.
My php.ini is controlled by my host I have no access to it, so I can't pass any parameters.
I am sure if I am allowed to write my own php.ini on my root folder ... with just these parameters ...
Thanks
G'day,
I think that in the function google_base_xml_sanitizer in file includes/classes/google_base.php needs the line
added to replace muliple spaces with a single space, somewhere just before it finishes.Code:$str = preg_replace('/\s+/', ' ', $str);
This will help Google Base Feeder's test for a description length of at least 15 characters work better.
I'm not sure how to handle this length test treating HTML entities in the sanitized description as multiple characters instead of just one caracter.
Cheers, Lloyd Borrett.
Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42
i have been reading this thread all night and cant find the solution.
Zencart 1.3.8a
Google Base Feeder 1.7.4
i am getting these errors:
i went back and checked the examples and all seemed fine. all of my products have Titles & DescriptionsCode:Feed status summary 1153 of 1538 items inserted - Processed on Jun 14, 2009 12:15 am PDT Detected file format: XML Feed Level Messages Warning: Missing recommended attribute: upc While items missing recommended attributes will process successfully, we recommend including relevant attributes if they are available. Item Errors - 385 items with errors 383 Missing required attribute: description Please make sure you include all required attributes in your data feed. Examples: Item Nr. Line Nr. 15 273 387 7,341 390 7,398 591 11,217 905 17,183 36 Missing title You must enter an item title. "Title" is a required attribute. Examples: Item Nr. Line Nr. 111 2,097 118 2,230 288 5,460 1,415 26,873 1,420 26,968 Item Warnings - 382 items with warnings 380 Invalid encoding Some of the characters in your data feed seem to be invalid. Please verify all the characters in your feed are valid for your selected encoding. Learn more. Examples: Item Nr. Line Nr. 15 290 387 7,358 390 7,415 591 11,234 905 17,200 36 Invalid encoding Some of the characters in your data feed seem to be invalid. Please verify all the characters in your feed are valid for your selected encoding. Learn more. Examples: Item Nr. Line Nr. 111 2,098 118 2,231 288 5,461 1,415 26,874 1,420 26,969
http://www.fusionspiritualemporium.com
Contrib: Events Calender v1.02 update
I just receive an email from GOOGLE BASE ,,, With those terms ,, I suppose lots of people use Zencart can not use google base in the future ?
(((( I AM USING ZENCART too )))
---------------------------------------------------------------
Hello,
Thank you for your email. While reviewing your data feed we noticed that
your site isn't compliant with our Program Policies. We have therefore
disabled your Google Base account.
You must own any products that you submit to Google Base and ship these
products directly to the buyer. We aren't accepting sites which sell
products on commission, including, but not limited to:
- Affiliate sites
- Comparison shopping sites
- Readymade 'wholesale' or 'drop ship' sites
Please visit
http://base.google.com/support/bin/a...er=61118&hl=en for more
details on our Program Policies.
Sincerely,
The Google Team
----------------------------------------------------------
HI,
I run Google Base Feeder successfully , however on my other website the base file name is domain_base_us_feed ,
whenever I run the upload to google script the file uploaded is domain_base_us_feed_products , due to this extra word "products" I cannot auto update.
Any solutions ?
Bookmarks