Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help please - I broke the catalog admin link! :-(


MikeAngove

Recommended Posts

Posted

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

Posted

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 ...

Posted
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

Posted

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

Posted

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

  • 11 months later...
Posted
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.

Archived

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

×
×
  • Create New...