Jump to content

Unable to add Product Options


ClaireRiley

Recommended Posts

If you remember back in June this error occurred and thought it was due to an upgrade.  I have since removed CubeCart and had it reinstalled.  To begin with the error had gone, I had pretty much all my original products back, just not those added since June and I was then able to add new product options and create option sets etc.  I then set up my Shipping Methods and now I get the same error - this is what it says in the debug window

 

PHP:
[Warning] /home/claire/public_html/store/admin/sources/products.options.inc.php:292 - uasort() expects parameter 1 to be array, null given
[Warning] /home/claire/public_html/store/admin/sources/products.options.inc.php:294 - Invalid argument supplied for foreach()

 

 

Then when I press save I get this:

 

PHP:
[Warning] /home/claire/public_html/store/classes/sanitize.class.php:123 - Invalid Security Token
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: Entity: line 1: parser error : Space required after the Public Identifier
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: ^
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: Entity: line 1: parser error : SystemLiteral " or ' expected
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: ^
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:232 - SimpleXMLElement::__construct() [simplexmlelement.--construct.php]: ^
[Warning] /home/claire/public_html/store/admin/sources/dashboard.index.inc.php:248 - String could not be parsed as XML

 

Any ideas?

Link to comment
Share on other sites

Technical Details

 

          CubeCart Version

5.2.12 PHP Version 5.3.28 MySQL Version 50536 Image folder size 112.48 MB Download folder size 0.00 KB Max. Upload filesize 64M Browser user-agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 Server Software Apache
Link to comment
Share on other sites

Please access the admin, Store Settings, Layout tab, and make sure the value for Default RSS URL for Admin Dashboard is:

http://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/

I believe all of the XML-based errors are because you may have an obsolete or malformed URL for the RSS feed.

 

We still need to solve the Invalid Security Token error. Either: you are opening more than one browser window/tab into your admin section; or the skin template for whatever activity you are working on just prior to being bounced to the Dashboard has become damaged. Do you recall having more than one browser window/tab open to your admin, or using the browser's "Back" button to go back to a previous admin page?

 

The errors concerning products.options.inc.php can be ignored for now.

Link to comment
Share on other sites

"I've just checked my store layout tab and the contents is the same."

 

The error message is reporting that the return from the request starts with:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

but it should start with:

<?xml version="1.0" encoding="UTF-8" ?>

Please access the admin, Request Log screen. Let us know what the first part is of the Response Received for the requests made to cubecart-news-announcements.

 

Are there any entries in admin, Error Log, System Error Log related to product options?

Link to comment
Share on other sites

Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 14:41
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 14:06
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 13:32
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 13:01
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 12:42
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 12:05
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 11:49
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 11:47
Request Sent - http://cp.cubecart.com/licence/version/5.2.12 version=5.2.12
Response received 5.2.13
Today, 11:45
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Today, 11:45
Request Sent - http://cp.cubecart.com/licence/version/5.2.12 version=5.2.12
Response received 5.2.13
Today, 11:43
Request Sent - http://cp.cubecart.com/licence/version/5.2.12 version=5.2.12
Response received 5.2.13
Today, 11:41
Request Sent - http://cp.cubecart.com/licence/version/5.2.12 version=5.2.12
Response received 5.2.13
Today, 11:40
Response received <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://forums.cubecart.com/rss/forums/1-cubecart-news-announcements/">here</a>.</p> </body></html>
Yesterday, 23:47
Response received <?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title><![CDATA[CubeCart News & Announcements]]></title> <description>This RSS file contains the latest news an announcements from CubeCart HQ.</description> <link>http://forums.cubecart.com</link> <pubDate>Mon, 18 Aug 2014 15:55:33 +0000</pubDate> <ttl>0</ttl> <item> <title>CubeCart 5.2.13 Released</title> <link> <description><![CDATA[<p>We are pleased to announce the release of CubeCart 5.2.13. This is a maintenance release with a few small features added.</p> <p>&nbsp;</p> <p><strong>What's New?</strong></p> <ul><li>Complete rewrite of discount codes and gift certificate redemption&nbsp;</li> <li>Shipping now has the ability to inherit the average basket tax rate</li> <li>Improved automation to "Cookie Domain" setting with session lockout prevention</li> <li>SagePay upgraded from 2.23 to 3.0</li> <li>"Assign to European Union" added to tax configuration instead of one country at a time</li> <li>New <a href='https://www.ebs.in/en/' class='bbc_url' title='External link' rel='nofollow external'>EBS India</a> Payment Module</li> <li>All shipping and billing address fields added to order reports CSV export</li> <li>"SMTP with SSL" setting added for secure email delivery</li> <li>Miscellaneous bug fixes</li> </ul><p><strong>Download Here: <a href='http://www.cubecart.com/downloads/' class='bbc_url' title='External link' rel='nofollow external'>CubeCart-5.2.13.zip</a></strong></p> ]]></description> <pubDate>Mon, 18 Aug 2014 15:55:33 +0000</pubDate> <guid> </item> <item> <title>CubeCart 5.2.12 Released</title> <link> <description><![CDATA[<p>We are pleased to announce the release of 5.2.12.&nbsp;</p> <p>&nbsp;</p> <p><strong>What's new?</strong></p> <ul><li>Google Categories Fix</li> <li>PayPal Pro Error code&nbsp;10413 recovery</li> </ul><p><strong>Download Here:</strong> <a href='http://www.cubecart.com/download/5.2.12/zip' class='bbc_url' title='External link' rel='nofollow external'>CubeCart 5.2.12</a></p> <p>&nbsp;</p> ]]></description> <pubDate>Thu, 05 Jun 2014 14:07:26 +0000</pubDate> <guid> </item> <item> <title>CubeCart 5.2.11 Released</title> <link> <description><![CDATA[<p>We are pleased to announce the release of CubeCart 5.2.11.<br> &nbsp;<br><strong>What's New?</strong></p> <ul class="bbc"><li>PayPal Optimisations (See Below)</li> <li>Danish Language Pack</li> <li>Turkish Language Pack&nbsp;</li> <li>Reviews.co.uk Plugin (<a href='http://www.reviews.co.uk/blog/cube-cart-new-widget-launched/' class='bbc_url' title='External link' rel='nofollow external'>Learn More</a>)</li> <li>Google Analytics tracking code updated</li> <li>Search for customers by full name instead of first or last name&nbsp;</li> <li>"Locale" bug fix.</li> <li>Better support for PHP 5.5</li> <li>Miscellaneous&nbsp;Bug Fixes</li> </ul><p><strong>PayPal Optimisations</strong></p> <ul class="bbc"><li>Product, tax and shipping line items added to PayPal Express Checkout screens.</li> <li>PayPal Acceptance Logo to show on store front (admin configurable).</li> <li>Merchant configurable colour scheme and brand logo on PayPal pages (admin configurable).</li> <li>PayPal Pro Hosted Solution now mobile optimised.</li> <li>Express Checkout funding decline recovery redirect back to PayPal.&nbsp;</li> <li>API updated to latest version from 74 to 112.</li> <li>PayPal Branding Updated</li> </ul><p><strong>Download Here:</strong>&nbsp;<a href='http://www.cubecart.com/downloads/' class='bbc_url' title='External link' rel='nofollow external'>http://www.cubecart.com/downloads/</a></p> ]]></description> <pubDate>Tue, 20 May 2014 10:54:44 +0000</pubDate> <guid> </item> <item> <title>CubeCart 5.2.10 Released</title> <link> <description><![CDATA[<p>In short succession to 5.2.9 we have released 5.2.10 which fixes a number of issues relating to new session ID regeneration code.&nbsp;</p> <p>&nbsp;</p> <p>- Fixes "random" admin logout</p> <p>- Fixes image list on add/edit product</p> <p>- Fixes issue with blank screens from custom language phrases&nbsp;</p> ]]></description> <pubDate>Mon, 14 Apr 2014 09:22:54 +0000</pubDate> <guid> </item> <item> <title>CubeCart 5.2.9 Released</title> <link> <description><![CDATA[<p>We are pleased to announce the release of 5.2.9 which is available for immediate download.&nbsp;<br> &nbsp;<br><strong>What's New?</strong></p> <ul class="bbc"><li><span style="color:#ff0000">Session Fixation Vulnerability & Potential Session Hijack Patch. Thanks to James Sibley from&nbsp;</span><span style="color:rgb(60,62,67);font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:15px;background-color:rgb(248,248,248);">&nbsp;</span><a href='http://www.pentester.co/' class='bbc_url' title='External link' rel='nofollow external'>http://www.pentester.co</a></li> <li><span style="color:#ff0000">Shared SSL is not longer supported due to this vulnerability as session ID is no longer passed in URL</span></li> <li>New PayVector Module</li> <li>Improved PayPal Pro Direct Payment Error Handling</li> <li>Canonical Fix for "Sorting" variables</li> <li>Smarty Tags FIxed in Rich Text Editor</li> <li>"RTL" (right to left) language support fix</li> <li>Fix to prevent possible empty order email notifications</li> <li>Fixed hard coded links to admin folder in admin HTML and JS</li> <li>Other miscellaneous bug fixes</li> </ul><p><strong>Download Here:</strong> <a href='http://www.cubecart.com/download/5.2.9/zip' class='bbc_url' title='External link' rel='nofollow external'>CubeCart 5.2.9</a></p> ]]></description> <pubDate>Thu, 10 Apr 2014 14:44:38 +0000</pubDate> <guid> </item> </channel> </rss>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...