ozchap Posted August 25, 2013 Posted August 25, 2013 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?
ozchap Posted August 25, 2013 Author Posted August 25, 2013 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>');
ozchap Posted August 25, 2013 Author Posted August 25, 2013 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..
♥kymation Posted August 25, 2013 Posted August 25, 2013 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.
ozchap Posted August 25, 2013 Author Posted August 25, 2013 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.
ozchap Posted August 25, 2013 Author Posted August 25, 2013 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.