MikeAngove Posted November 21, 2006 Posted November 21, 2006 Hi all, I hope somebody can help me please. I have installed OSC and added the Ultimate SEO URLS and the Header tags contribution. All worked fine until i just tried to click the catalog admin link. Now i get: Parse error: syntax error, unexpected $end in /home/mikeang/public_html/reelcuts/catalog/admin/categories.php on line 1428 I have checked through the catalog/admin/categories.php and can find no reference to $end (using a search). In my catalog.php file, it is hard to identify the true line 1428, as it seems to have been stretched with extra kine gaps inserted! (was this because i used wordpad instead of dreamweaver?) I can get to manufacturers, specials, reviews etc, just not the categories part. Please can someone help? Regards Mike A
♥Monika in Germany Posted November 21, 2006 Posted November 21, 2006 well, I never suggest wordpad, but I even less suggest Dreamweaver. Both add to your code stuff ... I hate that. I want to be the only one who changes my code!!! Anyway, $end only means that a } is missing somewhere. Easiest would be to use a file comparer and compare your categories.php to a vanilla one. If you do not have on yet, download the trial version of the one in my siggy. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
♥FWR Media Posted November 21, 2006 Posted November 21, 2006 Hi all, I hope somebody can help me please. I have installed OSC and added the Ultimate SEO URLS and the Header tags contribution. All worked fine until i just tried to click the catalog admin link. Now i get: Parse error: syntax error, unexpected $end in /home/mikeang/public_html/reelcuts/catalog/admin/categories.php on line 1428 I have checked through the catalog/admin/categories.php and can find no reference to $end (using a search). In my catalog.php file, it is hard to identify the true line 1428, as it seems to have been stretched with extra kine gaps inserted! (was this because i used wordpad instead of dreamweaver?) I can get to manufacturers, specials, reviews etc, just not the categories part. Please can someone help? Regards Mike A I think you'll find that your missing a closing } somewhere in catalog/admin/categories.php Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
MikeAngove Posted November 22, 2006 Author Posted November 22, 2006 Hi peeps, Thanks for the advice. I'll have a go now with a comparison tool. That would explain why i couldn't find $end!! :D What would you suggest as a good php editor? I like the fact Dreamweaver colours the code. Cheers MikeA
MikeAngove Posted November 22, 2006 Author Posted November 22, 2006 Ok i think i found the error! In adding the Header Tag controller lines in, i had left this line in also: if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) { I think that left a stray open bracket. I have now removed that line, however i have a nice new error!! Parse error: syntax error, unexpected T_REQUIRE in /home/mikeang/public_html/reelcuts/catalog/admin/categories.php on line 1 Grrrrr!!! I think its time to stop adding contributions!! All seems ok in my comparison tool (except for the extra morepics 6 lines). Can you suggest what may be wrong with this please? If it helps, i have uploaded my categories.php to www.reelcuts.co.uk/help/ Many many thanks. MikeA
MikeAngove Posted November 23, 2006 Author Posted November 23, 2006 Sorry to bump this up, but does anyone have any ideas please? Thanks MikeA
rwperkinsjr Posted November 4, 2007 Posted November 4, 2007 Ok i think i found the error! In adding the Header Tag controller lines in, i had left this line in also: if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) { I think that left a stray open bracket. I have now removed that line, however i have a nice new error!! Parse error: syntax error, unexpected T_REQUIRE in /home/mikeang/public_html/reelcuts/catalog/admin/categories.php on line 1 Grrrrr!!! I think its time to stop adding contributions!! All seems ok in my comparison tool (except for the extra morepics 6 lines). Can you suggest what may be wrong with this please? If it helps, i have uploaded my categories.php to www.reelcuts.co.uk/help/ Many many thanks. MikeA So I would check the .htaccess file a make sure the encoding is proper. If you opened it in Dreamweaver it is screwed up I promise. You may want to open it in Wordpad then copy the TEXT to Notepad which is much easier to use and keeps the encoding right. Just a suggestion.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.