Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Addnewpiform returning to admin


ozchap

Recommended Posts

Posted

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?

Posted

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>');

Posted

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.

Posted

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.

Posted

Ok grabbed a copy from the full 2.3.3 dist. No syntax error.

 

COmpared the various copies and I cant see the variance. But it works! So I am going take the rest of sunday off!

Archived

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

×
×
  • Create New...