Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mall upgrade - parse error in admin/categories.php


penge

Recommended Posts

The mall contribution version 2.2 release date 11/21/2002 installed on 'loaded 5' OSC.

 

The stores can be set in admin but going into Categories/Products causes the following:

 

Parse error: parse error in /shop/admin/categories.php on line 240

 

The line in categories.php is:

 

'store_id' => tep_db_prepare_input($HTTP_POST_VARS['store_id'])), // mall addon

 

I have removed all products and categories from DB.

 

Any ideas?

 

Penge

Link to comment
Share on other sites

I have checked the instructions carefully and then rechecked them again.

 

If the following code is hashed out:

'store_id' => tep_db_prepare_input($HTTP_POST_VARS['store_id'])), // mall addon

 

the categories appear and the 'store location' box is displayed, but all the new categories are displayed in the OSC with admin.

 

In the subsequent shops - mall 1. mall 2 etc, where do you define which shop is which?

 

The installation instructions do not cover the configuration.

 

Penge

Link to comment
Share on other sites

Hmm...you didn't post any context, so I don't see how the line fits with the rest of the code. However, if commenting out that line works, I would try removing the second ). The line itself is unbalanced, with one ( and two ). The second ) could be closing an ( on a different line, but then it wouldn't work when you commented it out. Another possibility is that that line is correct, but you need to add an ( on a previous line.

 

You might want to consider restoring the file and reapplying the contribution. It might be easier than trouble shooting what went wrong this time.

 

Good luck,

Matt

I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...