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

Google Base Feeder Support Thread [OLD]

Locked

Views: 806,341

Results 721 to 740 of 3,556
This thread is locked. New replies are disabled.
10 Jan 2008, 3:31 AM
#721
mr_b avatar

mr_b

New Zenner

Join Date:
Mar 2007
Posts:
54
Plugin Contributions:
0

Google Base Feeder Support Thread [OLD]

Installed the latest version of this Mod on my site and now when I go to generate a feed I get a blank box where it would have shown that it had created the feed.

Also when I go to view the feed it looks for the name I entered in the config+_products.xml. So in other words what it would be looking for is my_store.xml_products.xml when it should be simply looking for my_store.xml, what I put in as the name.

I'm using Zen Ver 1.3.8a. Thank you.

10 Jan 2008, 5:32 AM
#722
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Following up on my own thread. After a few emails back and forth with GoDaddy, we figured out that they were wrong in their first email and that ftp from inside out is not allowed - something about security risk (didnt make much sense, since ftp access from outside in is allowed). They offered to get a different plan that would cost about 10 times the price of what im paying now - not an option.
In case others here are in the same shoes , here's how i solved the problem:

  • signed up for a free (ad based) hosting here: reallyfreehosting.com (there are other free hosts out there..
  • wrote a script to create the product.xml file, download it from my site, and upload it to google
  • put the script in a cron job on the free hosting site..dont forget to set it to executable.

here's the script (just replace all the variables and directories):

#!/bin/sh
USERNAME_TO="aaaaa"
PASSWORD_TO="bbbbb"
SERVER_TO="uploads.google.com"
USERNAME_FROM="xxxxx"
PASSWORD_FROM="yyyyy"
SERVER_FROM="your_domain.com"

FILE="zzzz_products.xml"
FEED_DIR="/{your_store}/feed"

#create new feed file
curl "http://{your_domain}.com/{your_store}/googlefroogle.php?feed=yes&upload=no&type=products"

sleep 10

echo
echo "file:$FILE created ... "
echo

login to server and get product.xml file

ftp -n $SERVER_FROM <<EOF
user $USERNAME $PASSWORD_FROM
cd $FEED_DIR
get $FILE
quit
EOF

echo "ftp download from server:$SERVER_FROM file:$FILE ...done!"

login to google server and upload the file

ftp -n $SERVER_TO <<EOF
user $USERNAME $PASSWORD_TO
put $FILE
quit
EOF

echo "ftp upload to server:$SERVER_TO file:$FILE ... done!"

greenhat:

I emailed my Host (GoDaddy), and got this reply:


Dear xxxx,
Thank you for contacting Online Support. On shared Linux hosting accounts, ftp-connect is supported. Please make sure that your code is correctly configured.
Please let us know if we can assist you in any other way.
Sincerely,

so, they claim that they support it, yet the script stalls during the ftp_connect function - no error message is produced. any ideas? anyone?
thx

10 Jan 2008, 3:37 PM
#723
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Hi all - can someone tell me why I get the following message from the cron email:

Processing: Feed - Yes, Upload - No

I am assuming it is not being uploaded to Google and have no idea why. Can anyone shed any light on it? The ftp username and password are set the same as shown in the googlebase account.

Thanks

Paul

10 Jan 2008, 8:32 PM
#724
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

does the upload work when you do it manually from zen cart admin panel?
do you have these parameters in the cron job: ?feed=yes&upload=yes ?

bekinky:

Hi all - can someone tell me why I get the following message from the cron email:

Processing: Feed - Yes, Upload - No

I am assuming it is not being uploaded to Google and have no idea why. Can anyone shed any light on it? The ftp username and password are set the same as shown in the googlebase account.

Thanks

Paul

11 Jan 2008, 10:45 AM
#725
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

The feed works fine when done manually:

Google Base Feeder v.1.6.7 05.12.2007 12:53:59 started 2008/01/11 10:42:38
Feed file - /
/*****//***/domain_products.xml
Processing: Feed - No, Upload - Yes
Upload started...
First attempt (passive mode off): Uploaded Successfully
-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml
Connected to: uploads.google.comLogin ok:Current Directory Is: /-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml

Upload ok!

*The CRON is as follows:

0 5 * * * GET http://www.*****.com/googlefroogle.php?feed=yes&upload=yes&type=products

If I check after a manual upload from admin to see my products in google base it reports 0 items.

11 Jan 2008, 4:32 PM
#726
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

did you register the data feed in google and specified *domain_products.xml file?
have you tried manually uploading the generated file in google ?

bekinky:

The feed works fine when done manually:

Google Base Feeder v.1.6.7 05.12.2007 12:53:59 started 2008/01/11 10:42:38
Feed file - /
/*****//***/domain_products.xml
Processing: Feed - No, Upload - Yes
Upload started...
First attempt (passive mode off): Uploaded Successfully
-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml
Connected to: uploads.google.comLogin ok:Current Directory Is: /-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml

Upload ok!

*The CRON is as follows:

0 5 * * * GET http://www.*****.com/googlefroogle.php?feed=yes&upload=yes&type=products

If I check after a manual upload from admin to see my products in google base it reports 0 items.

11 Jan 2008, 7:44 PM
#727
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

greenhat:

did you register the data feed in google and specified *domain_products.xml file?
have you tried manually uploading the generated file in google ?

Yes - a manual upload of the feed via google base is registered, published and searchable.

Yes - a manual upload via the admin control panel has been recognised and registered in Google base and is currently being processed

Yes - the correctly named datafeed has been registered with google base.

Yes - the cron job (using get) is working with the correct paramaters

Yes - the correct FTP username and password are set

No - the cron upload is not being uploaded to google base

The only thing left to try is a cron using wget but I cannot see this making much difference to be honest.

Thanks

11 Jan 2008, 8:12 PM
#728
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

beats me then :)

you did write this:
" If I check after a manual upload from admin to see my products in google base it reports 0 items."

doesnt hurt to try "wget" or "curl" commands..

bekinky:

Yes - a manual upload of the feed via google base is registered, published and searchable.

Yes - a manual upload via the admin control panel has been recognised and registered in Google base and is currently being processed

Yes - the correctly named datafeed has been registered with google base.

Yes - the cron job (using get) is working with the correct paramaters

Yes - the correct FTP username and password are set

No - the cron upload is not being uploaded to google base

The only thing left to try is a cron using wget but I cannot see this making much difference to be honest.

Thanks

12 Jan 2008, 10:28 AM
#729
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Well after all the fuss it turned out to be the cron command after all. GET did not upload the products but WGET did. It turned out to be as simple as that, so if anyone else hase this issue, change the cron command from GET to WGET or from WGET to GET depending on your server configuration.

Thanks for all the help - especially greenhat for taking the time to discuss it.

Paul

12 Jan 2008, 5:44 PM
#730
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

I got the following error:

Outcome: Data feed upload failure
Number of items processed: 1
Number of errors: 1
Number of inserted items: 0
Uploaded at: January 12, 2008 7:48:32 AM PST
Processed at: January 12, 2008 8:12:12 AM PST
We found a mismatched XML tag

I have other feeders yahoo, ebay, msn, maybe that is causing the error.

13 Jan 2008, 1:27 AM
#731
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

It looks like I may have spoken too soon. WGET seesm to have done something but it is not showing in Google Base as an upload so obvioulsy has not been successful. The email which gave me the impression it had worked reads as follows: (website address and IP address changed for obvious reasons

*--05:00:01-- http://www.mywebsite.com/googlefroogle.php?feed=yes
=> `googlefroogle.php?feed=yes'
Resolving https://www.mywebsite.com... 00.85.55.1
Connecting to www.mywebsite|00.85.55.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K 10.24 MB/s

05:00:02 (10.24 MB/s) - `googlefroogle.php?feed=yes' saved [247]*

So it looks like it is back to the GET command again and trying to figure out why the FTP upload does not work via CRON :no:

13 Jan 2008, 11:33 AM
#733
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

Thanks for the reply Gothstone but that did not work either.

Closer inspection of the emails has highlighted what may be a bug in the latest release. If I do a manual upload it calls domain_products.xml but if I do a cron upload it calls domain_.xml. This happens consistently regardless of whether I use GET, WGET or CURL. Uploading domain_.xml as a feed makes no difference - still nothing is sent to Google.

Here is the CRON Email confirmation:

Google Base Feeder v.1.6.7 05.12.2007 12:53:59 started 2008/01/13 11:25:02<br />
Feed file -//*****//***/*feed/domain_.xml<br />
Processing: Feed - Yes, Upload - No<br />
Google Base File Complete In 0.004943 Seconds 0 Records<br />

HERE is the Manual Upload via Admin Confirmation:

Google Base Feeder v.1.6.7 05.12.2007 12:53:59 started 2008/01/11 10:42:38
Feed file - /
/*****//***/domain_products.xml
Processing: Feed - No, Upload - Yes
Upload started...
First attempt (passive mode off): Uploaded Successfully
-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml
Connected to: uploads.google.comLogin ok:Current Directory Is: /-r--r----- 1 ftp root 62116 Jan 11 02:42 domain_products.xml

Upload ok!*

13 Jan 2008, 4:34 PM
#734
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

add &upload=yes&type=products to the end of yor cron job
you have to tell it if youre uploading products, documemts, or downloads

13 Jan 2008, 5:20 PM
#735
bekinky avatar

bekinky

Zen Follower

Join Date:
Jan 2007
Posts:
97
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

The cron command is set up correctly to specify products and also set up in google base to specify products. Clearly this is a bug in the script because it is not identifying whether it is domain_products or domain_documents when running the crontab.

I will contact numinix and ask him for his thoughts

13 Jan 2008, 7:33 PM
#736
mr_b avatar

mr_b

New Zenner

Join Date:
Mar 2007
Posts:
54
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

This is what I have to use for my Cron Job on my server:

mywget --spider http://www.mysite.com/googlefroogle.php?feed=yes

As you might or might not know each server has their own way of doing a php script. Ask your ISP what the correct way of running a php script is.

Hope that helps.

14 Jan 2008, 1:36 PM
#737
mypashop avatar

mypashop

New Zenner

Join Date:
Oct 2007
Location:
France &amp; Luxembourg
Posts:
37
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

HOW do you limit
Default limit google base feeder to one language (english only) ...
is there a need / recommended to limit to one and only language ?

to not spam google base i would like to turn french and german off ...

please reply in this thread
http://www.zen-cart.com/forum/showthread.php?t=85506

17 Jan 2008, 3:59 AM
#738
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]

set the language switch to true and type "English" in the next line.

17 Jan 2008, 10:42 AM
#739
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

any idea why my site wont upload??

https://www.fire2you.co.uk

ive just been doing it manually via the google page but will want to do this via a cron job

18 Jan 2008, 7:52 PM
#740
keylesslocks avatar

keylesslocks

Zen Follower

Join Date:
May 2007
Posts:
267
Plugin Contributions:
0

Re: Google Base Feeder Support Thread [OLD]

is this mod compatible with 1.3.8? I don't use the auto upload feature, I just use the generate.... thanks