Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Addnewpiform returning to admin


ozchap

Recommended Posts

After upgrading 2.3.1 to 2.3.3 the add large image feature is returning to the admin dashboard. The URL looks completely wrong. The url is mysite.com/store/admin/# rather than staying in the new product page. There are no errors thrown. Any ideas where to look?

Link to comment
Share on other sites

Ok this lien is throwing a php syntax error:

 

function addNewPiForm() {

piSize++;

 

$('#piList').append('<li id="piId' + piSize + '" class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s" style="float: right;"></span><a href="#" onclick="showPiDelConfirm(' + piSize + ');return false;" class="ui-icon ui-icon-trash" style="float: right;"></a><strong>Large Image</strong><br /><input type="file" name="products_image_large_new_' + piSize + '" /><br /><br />

Uncaught SyntaxError: Unexpected token ILLEGAL

HTML Content (for popup)<br /><textarea name="products_image_htmlcontent_new_' + piSize + '" wrap="soft" cols="70" rows="3"></textarea>

</li>');

Link to comment
Share on other sites

Timestamp: 8/25/13 3:31:27 PM

Error: SyntaxError: unterminated string literal

Source File: http://mysite.com/store/admin/categories.php?cPath=138_144&pID=1476&action=new_product

Line: 243, Column: 60

Source Code:

put type="file" name="products_image_large_new_' + piSize + '" /><br /><br />

 

and firefox gives a better error message..

Link to comment
Share on other sites

Not too surprising as that's Javascript and not PHP. You're probably missing a ?> somewhere above that code. Compare your file to the one in the osC 2.3.3 package.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Already did that. COmpared with the categories.php in the 2.3.3 update dist and the original 2.3.1 dist. Not diff other than the couple of bug fixes in the 2.3.3. Will compare with the full2.3.3 package and see if there is any diffs.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...