Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Corrupt admin Index file


montytx

Recommended Posts

Posted

Not sure what I changed inthe admin Index file but I can no longer get to the admin console. Can anyone tell me what this error should be:

 

 

Parse error: parse error, unexpected ',' in /home/downdogs/public_html/oscommerce/admin/index.php on line 45

Posted
Not sure what I changed inthe admin Index file but I can no longer get to the admin console. Can anyone tell me what this error should be:

Parse error: parse error, unexpected ',' in /home/downdogs/public_html/oscommerce/admin/index.php on line 45

Here are the lines from 41/45

try compairing the two??

 

array('title' => BOX_HEADING_LOCALIZATION,

'image' => 'localization.gif',

'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),

'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),

array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted

I dont even have that line in my admin. I added it under the pretense that maybe I deleted it. But I am still getting the same error. I cant find a comma anywhere to remove. Can you possibly paste the entire admin file up so I can overwrite all of mine.

 

Thanks in advance

Posted

Your 41-45 match mine. I think we need more code to compare.

Posted
Your 41-45 match mine.  I think we need more code to compare.

here is line 46/50

 

array('title' => BOX_HEADING_REPORTS,

'image' => 'reports.gif',

'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),

'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),

array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
here is line 46/50

 

array('title' => BOX_HEADING_REPORTS,

                    'image' => 'reports.gif',

                    'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),

                    'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),

                                        array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),

Post 1-45. If the error message identifies line 45 as where it sees a problem, the error is on that line or above.

Archived

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

×
×
  • Create New...