Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What the heck happened? HELP!


drewstrick

Recommended Posts

Well I am having an issue with getting to the admin page. I was adding a module and Im sure I missed a step somewhere and now I cant seem to get to the admin page to be able to restore my backup. This is what my screen shows,

 

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/content/t/w/i/twisted/html/catalog/admin_fprre0epo4/includes/boxes/catalog.php on line 36

Configuration

Administrators

My Store

Minimum Values

Maximum Values

Images

Customer Details

Shipping/Packaging

Product Listing

Stock

Logging

Cache

E-Mail Options

Download

GZip Compression

Sessions

Featured

Links

Link to comment
Share on other sites

Drew,

 

 

It would be my guess that you are using v2.3.1 and tried to install a contribution for v2.2. I suggest you post the code from the catalog.php file so we can see what has been done.

 

 

 

 

 

Chris

Link to comment
Share on other sites

Ok this was the original line

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' );

 

This is what I replaced it with

//kgt - donations

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>'

'<a href="' . tep_href_link(FILENAME_DONATIONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DONATIONS . '</a>' );

/***************

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' );

***************/

//end kgt - donations

Link to comment
Share on other sites

Drew,

 

 

Change that to this:

 

//kgt - donations

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_DONATIONS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DONATIONS . '</a><br>' .

/***************

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>' );

***************/

//end kgt - donations

 

 

 

Chris

Link to comment
Share on other sites

Chris,

 

Thank you so much for the reply, but I cant even log in to where I can make changes again. It just takes me to the error page with the link on the side but no file manager

Link to comment
Share on other sites

Drew,

 

NEVER USE THE FILE MANAGER INCLUDED WITH V2.2x VERSIONS OF OSCOMMERCE !!!

 

You should be using your FTP client and a text editor like notepad++ or editplus+ to make code changes.

 

 

Also, see these two threads BEFORE making any other changes to your website: Admin Security and Website Security. NOT KIDDING, DO IT NOW !

 

 

 

Chris

Link to comment
Share on other sites

Chris,

Thank you so very much. I just read the thread and downloaded notepad but I have no clue how to reverse what I did. Do you charge to make changes? I dont want to take advantage of your knowledge.

Link to comment
Share on other sites

Drew,

 

The change is very simple. FTP the file to your local machine. Open it with notepad and paste the code above, replacing the code you originally changed. Then, save the file and upload it with your ftp back to your server to replace the existing file.

 

This will correct your current issue.

 

In the future, when making code changes...ALWAYS make a backup of the files you are going to edit before making changes. That way, if you make a mistake, you can just restore your backup.

 

 

 

Chris

Link to comment
Share on other sites

Chris,

Ill have to try and figure that one out. Not too good with this yet, took me forever to build the site. Thanks for all your support and Im sure Ill have more questions if you dont mind

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...