Shopping Basket

 x 
Cart empty


Popular Items

Find Us Elsewhere

2Checkout.com is a worldwide leader in payment services
  • Page:
  • 1

TOPIC: googlebasexml.php on line 481

googlebasexml.php on line 481 5 months 2 weeks ago #849

Hello,

I purchased your “Google Base XML” extension. I tried implementing it but I’m not getting the right information.

Joomla 2.5.9
Virtuemart: 2.0.18a
GoogleBaseXML: 4.0.0

I unpublished all my products except for 1 item to test the system.

I created a feed called “all-products” in your extension and with Google merchant center I registered a file called: all-products.xml.
Is this correct? How do I figure out what file name to register with Google?

I‘m also getting an error:
Warning: Creating default object from empty value in /homepages/34/d431561930/htdocs/n/napsupplier/components/com_googlebasexml/models/googlebasexml.php on line 481


When I follow the Feed URL link: (www.napsupplier.com/index.php?option=com...exml&format;=xml&id;=1 )
I get the message below:


XML Parsing Error: junk after document element
Location: www.napsupplier.com/component/com_google...xml/format,xml/id,1/
Line Number 2, Column 1:<b>Warning</b>: Creating default object from empty value in <b>/homepages/34/d431561930/htdocs/n/napsupplier/components/com_googlebasexml/models/googlebasexml.php</b> on line <b>481</b><br />
^



The text file has this information:

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:g="base.google.com/ns/1.0">
<channel>
<title>NAPSupplier</title>
<link>www.napsupplier.com/</link>
<description />
<item>
<g:id>282</g:id>
<title>Ornate Antique Silver Jewelry Box. Early 1900 Century Design</title>
<link>www.napsupplier.com/ornate-antique-silve...entury-design-detail</link>
<description>This antique silver jewelry box is absolutely gorgeous. The type of jewelry box your wealthy great grandmother would have had. It is heavy at 2.3 pounds as when you pick it up and open the lid you can immediately recognize the solid beautiful construction. This silver antique style jewelry box holds great history in its design and overall construction.
This antique silver jewelry box is absolutely gorgeous. The type of jewelry box your wealthy great grandmother would have had. It is heavy at 2.3 pounds as when you pick it up and open the lid you can immediately recognize the solid beautiful construction. This silver antique style jewelry box holds great history in its design and overall construction.<br /><br />This is a high-end heirloom; something you would pass down through your family for generations. <br /><br />I would love to pass this on to perhaps someone with twin daughters. This is the first time I have had a two identical jewelry boxes. A rarity like twin daughters. <br /><br /> <br />Red velvet material inlay<br />No maker markings. <br />NOT Magnetic!<br />Ca. 1900 design style<br /><br />Well preserved and in good condition for its age. Has been restored and silver polished, by hand.<br /><br />Weight: 2.3 pounds (roughly 5 pounds total)<br /><br />Length: 7 ½ inches<br />Width: 6 ½ inches<br />Height: 3 inches</description>
<g:image_link>www.napsupplier.com/images/stories/virtu...product/100_5736.jpg</g:image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5738.jpg</g:additional_image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5742.jpg</g:additional_image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5739.jpg</g:additional_image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5743.jpg</g:additional_image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5740.jpg</g:additional_image_link>
<g:additional_image_link>www.napsupplier.com/images/stories/virtu...product/100_5744.jpg</g:additional_image_link>
<g:price>600.00 USD</g:price>
<g:product_type>Antique</g:product_type>
<g:google_product_category>Apparel & Accessories > Jewelry > Jewelry Sets</g:google_product_category>
<g:brand>Silver</g:brand>
<g:condition>used</g:condition>
<g:gtin>001234567891</g:gtin>
<g:mpn>282</g:mpn>
<g:availability>in stock</g:availability>
<g:material>Silver</g:material>
</item>
</channel></rss>


What am I missing to get this function working?

Thank you!
The administrator has disabled public write access.

googlebasexml.php on line 481 5 months 2 weeks ago #850

  • boggler
  • boggler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 476
  • Thank you received: 51
  • Karma: 10
The message: Warning: Creating default object from empty value in /homepages/34/d431561930/htdocs/n/napsupplier/components/com_googlebasexml/models/googlebasexml.php on line 481

This is not an error message. If you have your system error reporting turned up too high then PHP will output this sort of information message. I have checked this one and it does not indicate a problem at all, it is all fine. What is a problem is that this message is also output in the XML feed, which causes the parsing error which you have indicated.


You need to turn down the level of your site error reporting which you can do in the Joomla global configuration, turn it to ‘none’ preferably.

Apart from this it looks like the feed is working properly, once the warning message is suppressed the parsing error should disappear.

If you are uploading a file to Google then you can call it what you want. However you can submit the feed url www.napsupplier.com/component/com_google...xml/format,xml/id,1/ directly to Google for automatic upload, Google will load it directly from the URL.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: boggler
Time to create page: 0.391 seconds