Zen Cart Logo
Forums / All Other Contributions/Addons / Google Base Feeder Support Thread [OLD]

Google Base Feeder Support Thread [OLD]

Locked

Views: 806,149

Results 441 to 460 of 3,556
This thread is locked. New replies are disabled.
23 Sep 2007, 7:11 PM
#441
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Google Base Feeder Support Thread [OLD]

I redownloaded 1.61 and compared to 1.60, this time the changes did show up, not sure why they didn't show the first time.

Anyway, I added the line of code to the function just like you indicated:

	function zen_xml_sanitizer ($str) {
		$_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 = htmlentities($str);
		$str = htmlspecialchars($str);
		//$partial_entity_array = array("quot;", "lt;", "gt;", "amp;", "apos;", "nbsp;", "deg;", "plusmn;", "ordm;", "sect;", "up2;", "circ;", "up3;", "uml;", "acute;", "ordf;", "frac12;");
		//$full_entity_array = array(""", "<", ">", "&", "'", " ", "deg", "+/-", "", "", "^2", "^", "^3", "", "", "", "1/2");
		//$str = str_replace($partial_entity_array, $full_entity_array, $str);
		return $str;
	}

However, this didn't work. I created the file again and reuploaded and I still get the same error from Google and line 4 still says:

<title>S&A</title>

Any other ideas?
In the meantime, I've manually edited the xml file and changed that line to

<title>S&A</title>
23 Sep 2007, 8:44 PM
#442
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

What exactly does the 'Compress feed file' setting do? Is it supposed to create .zip/.gz file?

I actually end up with a bigger file if I set this to true.
If this setting is turned on, file size is 20.08MB. If turned off file size is 18.18MB.

24 Sep 2007, 4:36 PM
#443
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

I keep getting this Connection failed: uploads.google.com . can anyone tell me whats wrong?

24 Sep 2007, 5:09 PM
#444
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Google Base Feeder Support Thread [OLD]

However, this didn't work. I created the file again and reuploaded and I still get the same error from Google and line 4 still says:

<title>S&A</title>

Any other ideas?
In the meantime, I've manually edited the xml file and changed that line to

<title>S&A</title>

Take that line out, it will actually create more bugs than it'll fix. Let's try this instead:

    function zen_xml_sanitizer ($str) {
        $_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 = str_replace('&', '&', $str); // changes & to &amp
        $str = htmlentities($str);
        $str = str_replace('&amp;', '&', $str); // replaces occurences of &amp; with &
    }
24 Sep 2007, 5:13 PM
#445
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

did you create the ftp account on google base?
(you have to create it, even if you have a google base account already)

rxalex:

I keep getting this Connection failed: uploads.google.com . can anyone tell me whats wrong?

24 Sep 2007, 7:21 PM
#446
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

numinix:

Take that line out, it will actually create more bugs than it'll fix. Let's try this instead:

function zen_xml_sanitizer ($str) {
    $_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 = str_replace('&', '&', $str); // changes & to &amp
    $str = htmlentities($str);
    $str = str_replace('&amp;', '&', $str); // replaces occurences of &amp; with &
}


Unfortunately, that didn't work either, still getting this on line 4:
<title>S&A</title>



Also, with a different file feed from another website I get this error from Google:
Error 	Bad data 	Line #6
We found a mismatched XML tag. - help 

This is what line 6 has for this file:```
<description>Sells fine solid gold jewelry.</description>r-jewelry.com/images/large/gld/r3248_LRG.jpg</g:image_link>

Any ideas on this other one?

Thanks.

24 Sep 2007, 7:41 PM
#447
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Google Base Feeder Support Thread [OLD]

Could it be possible that your title is too short??? I think the XML editor is displaying it as &. Try opening with a text editor like notepad and see if it really is & or &

24 Sep 2007, 7:56 PM
#448
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

yellow1912:

did you create the ftp account on google base?
(you have to create it, even if you have a google base account already)

Yes I did create the ftp account but get this error :( any idea?

24 Sep 2007, 8:07 PM
#449
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

The ftp account takes a while to be ready to use. Make sure you can login directly to that ftp server first,

24 Sep 2007, 9:47 PM
#450
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

yellow1912:

The ftp account takes a while to be ready to use. Make sure you can login directly to that ftp server first,

Thanks I am able to login though but tried again with adding ftp:// in config still not doing it :(

Google Base Feeder v.1.5.3 28.08.2007 10:25 started 2007/09/24 15:44:54
Feed file - /home/fae/public_html/sun/feed/1800_google_base.xml
Processing: Feed - No, Upload - Yes
Upload started...
Connection failed: ftp://uploads.google.com
Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known
Upload failed...

24 Sep 2007, 9:50 PM
#451
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

I use this in my setting: uploads.google.com (without the ftp://)

24 Sep 2007, 9:54 PM
#452
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

yep had this aswell uploads.google.com but upload failed :(

24 Sep 2007, 9:56 PM
#453
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

I use Google Base Feeder v.1.6.0 16.09.2007 (downloaded from numinix's site)

24 Sep 2007, 10:08 PM
#454
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Thanks I will upgrade what do I do with the sql file uninstall or updates how would I do this?

24 Sep 2007, 10:45 PM
#455
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Oh no I upgraded but have double of:
**INSTRUCTIONS: **
STEP 1: Click [HERE] to create / update your products feed.
NOTE: You may **view** your product feed file before proceeding to step 2.
STEP 1: Click [HERE] to create / update your documents feed.
NOTE: You may **view** your product feed file before proceeding to step 2.
STEP 1: Click [HERE] to create / update your downloads feed.
NOTE: You may **view** your product feed file before proceeding to step 2.

STEP 2: Click [HERE] to upload products feed to Google Base.
STEP 2: Click [HERE] to upload documents feed to Google Base.
STEP 2: Click [HERE] to upload downloads feed to Google Base.
NOTE: You may view Google Base FTP content.

Can someone help please?

24 Sep 2007, 10:54 PM
#456
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Google Base Feeder v.1.6.1 19.09.2007 16:37:59 started 2007/09/24 17:00:38
Feed file - /home/fae/public_html/sun/feed/1800_google_base_products.xml
Processing: Feed - No, Upload - Yes
Upload started...
Connection failed: uploads.google.com

Upload failed...

still no progress, any ideas what can be wrong?

24 Sep 2007, 10:56 PM
#457
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Isn't that the same old version you were using? :)

24 Sep 2007, 11:02 PM
#458
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

updated.. to 1.6.1 but issues :(

25 Sep 2007, 2:33 AM
#459
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

numinix:

Could it be possible that your title is too short??? I think the XML editor is displaying it as &. Try opening with a text editor like notepad and see if it really is & or &

I really don't think it has anything to do with the title being too short. I've only opened the file with the text editor UltraEdit and it shows just like I mentioned before <title>S&A</title>

Anyway, my php knowledge is very limited, but I think I found the reason. In line 79, the title line is not being sanitized (not sure if that's what you call it).

$content["title"] = '<title>' . STORE_NAME . '</title>';

Shouldn't it be like below?

$content["title"] = '<title>' . zen_xml_sanitizer(STORE_NAME) . '</title>';

I tried that, and it results in:

<title>SA</title>

While this is good and eliminates the error reported by Google, how can I get it to work properly and output <title>S&A

25 Sep 2007, 2:36 AM
#460
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

rxalex:

Oh no I upgraded but have double of:
**INSTRUCTIONS: **
STEP 1: Click [HERE] to create / update your products feed.
NOTE: You may **view** your product feed file before proceeding to step 2.
STEP 1: Click [HERE] to create / update your documents feed.
NOTE: You may **view** your product feed file before proceeding to step 2.
STEP 1: Click [HERE] to create / update your downloads feed.
NOTE: You may **view** your product feed file before proceeding to step 2.

STEP 2: Click [HERE] to upload products feed to Google Base.
STEP 2: Click [HERE] to upload documents feed to Google Base.
STEP 2: Click [HERE] to upload downloads feed to Google Base.
NOTE: You may view Google Base FTP content.

Can someone help please?

Read carefully. Each one is different. One is for products, one for downloads and the other for documents.