I get the following error with this program. Additionally, no products show up in my Google Base Merchant Center Dashboard so something is not connecting although I entered my API, etc. Please let me know if this can be fixed, thanks.

warning: Invalid argument supplied for foreach() in /home/content//html/includes/form.inc on line 1205.
warning: Invalid argument supplied for foreach() in /home/content//html/includes/form.inc on line 1205.

Comments

OzSchmoz’s picture

Yes I'm having the same issues as above. Followed the steps and I get this error, and no products seem to be getting to Google Base.
Thanks

djflux’s picture

I am having the same issue. Any pointers to debug and help resolve this issue?

dzieyzone’s picture

Component: Miscellaneous » Code

I'm also having the same issue..

barry769’s picture

Same here, any help is greatly appreciated.

giorgio79’s picture

Subs.

I just installed the module, but have not filled out anything yet. Getting the same on node creation forms for example.

compujohnny’s picture

Status: Active » Needs work

Hi,

i currently dont have the time to look into this issue, if somebody could find the error and contribute a patch I will roll it in,

Thanks for testing,

mattsteven’s picture

Anyone tried the patch I submitted here?

http://drupal.org/node/665404

It may take care of this error too, at least through suppressing it.

Clint Eagar’s picture

Title: Invalid Argument foreach() » Bounty for a working module

Hi I'm willing to pay a bounty for a working module.

smartparty’s picture

I've successfully applied that patch and then installed the module which fixed the error. See my other post in the issue queue re target country.

patoshi’s picture

the patch was good, it removed all the errors. Also when you submit an item, it might not give a response if ur item went in or not. To see if your item got submitted to google merchant. just goto ur PRODUCTS list and list it by "All Products". by default its on published.

dzieyzone’s picture

I was able to create a views to use on google base and don't need to use this module. You may contact me if you guys want to learn how to do it with views.

wireyourworld’s picture

I have downloaded and saved the module and the patch. I've not patched anything yet, I'm that new. #9 states he applied the patch and then installed the module. Can someone tell me how to apply the patch correctly? Where does it go within the module? Should I FTP the mod to my site and then upload the patch to a point in the mod?

wireyourworld’s picture

I have installed and enabled the module and configured the api, I chose the selection for web applications on my domain, I already have a google merchant account and was logged in. The patch is there but I have no idea how to apply it, I found something on drupal about needing Cygwin and I installed that and attempted to follow the instructions to navigate directories but it did not work, the command prompts as instruction on this module documentation did not work. Is there a less complex way to install a patch? I tried to edit a product and upload it and got this error

* Google Base error: Service not found
* Google Base error: Service not found

Any clues how I fix or will the patch fix and if so PLEASE tell me how to apply the bejugger. I really really need this mod to work.

wireyourworld’s picture

To follow up: to date nothing has uploaded, same error as my above post. Several of the followers of this thread have kindly attempted to assist by sending me patches, and already patched modules. I've even opened a new google account to start fresh and clean on that end. I've uninstalled, deleted cleared caches and reinstalled various versions several times. One thing that does REFUSE to clear when I do this is the API key and the page in store settings where I go to grant the access. I suppose I'd have to go to phpmyadmin and clear something in my database but I'd don't know where to begin on that. Sad to say this module doesn't not work for whatever reason, so being in .dev status is correct! But now when it moves out of that status and maybe I'll try it again later I probably will still have to figure out what to clear where.

I asked dzieyzone above about his method using views and he is kindly going to work on a blog post for that so I'll wait and see there. I"m SO no technical enough on this and can't begin to even search what might be going wrong where, I've seen some folks have a similar error sometimes in magento and there's posts you can find searching my error in google for their results and tries. If you want to that is!

So, I'm a bit miffed that this works for some of you and not me. My products ARE listed in product search from my Artfire shop but the whole point of me doing this is that I'm trying to move off the crafter venues of Etsy, 1000markets and Artfire and just have my stand alone website. But that will never happen completely until I can get my items in Product search from this site. If the API way won't work, is there a way to export a cvs file from Ubercart for direct uploading to GM? I would like to see if that method works but I have no idea how to create such a file myself.

So far thats 3 Ubercart and/or Drupal modules that I have not been able to get to function for me. FAQ, Block Title Link and now this one.

wireyourworld’s picture

update: google has responded and I "have been approved to participate in Google Product Search." They had turned off my ability to submit feeds due to the Etsy marketplace doing it for me. I had to explain that I was trying to submit from a non-marketplace website and that I would turn off feeds from the marketplaces. So, I went back to a product and tried again, this time no errors and the edit product form saved the supposedly submitted google info. BUT. No product in the data feed area of my google account, either the old one or the new one. :-(

Tried again this time without a photo since my main photo is not as big as 400x400 and I read somewhere that it had to be, still nothing, also I noted that the box for cash was checked when I went in for a second edit, and I had not checked it, just visa and mastercard. Is there a waiting period or should the post be immediate? I'll do more reading on this subject next week, have an art show this weekend to prep for. Will be interested in anything anyone has to say on this subject! I'll probably have to try reinstalling it AGAIN, in which case, can anyone tell me where to go to completely clear the API key and the "you have signed into your google account" page in store admin/configuration/googlebase? That may still be my problem!

wireyourworld’s picture

Whooo hooo! My item posted under my original account. I guess there is a lag between when I publish and when google posts.

didlix’s picture

Could you possibly send me a copy of your working module as I still have issues!

"I modified the code manually so it looks like this

if ($node->shippable) {
$item->add_attribute('weight', $node->weight.' '.$node->weight_units);
$item->add_attribute('width', intval($node->width).' '.$node->length_units);
$item->add_attribute('length', intval($node->length).' '.$node->length_units);
$item->add_attribute('height', intval($node->height).' '.$node->length_units);
}

$headers = uc_gbase_headers();
$items_feed_url = 'http://www.google.com/base/feeds/items';

but still get this

warning: SimpleXMLElement::addChild() expects parameter 2 to be string, array given in /var/www/www.xxx.co.uk/public/sites/default/modules/_uc_gbase/uc_gbase.module on line 132.
Error on Google Base field width: This entry is not of type number. Example: 1,000.00 for one thousand.
Error on Google Base field length: This entry is not of type number. Example: 1,000.00 for one thousand.
Error on Google Base field height: This entry is not of type number. Example: 1,000.00 for one thousand."

wireyourworld’s picture

latest issue, its uploading my item as "used" even though I checked the "new" box. I edited the product and reposted and the modified item is still defaulting to "used". Anyone have a fix for that one?

didlix, I emailed you the .module sent to me, good luck!

wireyourworld’s picture

Besides defaulting to used, the product does not link to my site, just gives a link to email me. Why is this? How to fix? naturally the point is that we want the shopper to click on the item and be taken to the website for purchase. This is what I get http://base.google.com/base/a/4341106/D9679882261625531008

didlix’s picture

wireyourworld has been unable to get me the module so far due to some weird email issues, hopefully they will be able to soon but in case anyone else has a working patched version, perhaps they could upload it somewhere? Would really appreciate it!

wireyourworld’s picture

I'm working on it! But sadly my own site and helping you has been pushed back due to other stuff coming up that has to take priority, hopefully I get to it later tonight. Just passing through....

didlix’s picture

really appreciate all of your help!

BroadlineCable’s picture

I'm having the exact same issue listed above:

* Google Base error: Service not found

Can anybody help!??

dzieyzone’s picture

Here is my post including the code for my googlebase, views, cck, ubercart. http://www.dzieyzone.com/content/06-07-2010/publish-ubercart-product-goo...

jbrown’s picture

Category: bug » support
crymzyn’s picture

Do you think this method would still work on a D7 site running Ubercart? I did not see updated modules for Views Bonus and Google Base for 7.

compujohnny’s picture

Status: Needs work » Closed (fixed)