Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php error when I moved to new server


m_fields

Recommended Posts

Posted

Hi,

 

I'm a bit new to using oscommerce and this situation I'm in is giving me a headach :angry:

Here's a run down:

 

1. I installed version 2.2 (I believe) using "server one's" Fantastico application.

2. Then I modified a squirrelcart database from server 2 to 'fit' into oscommerce.

3. I made a few small php changes.

4. I added a constrain proportions mod from this site.

5. Everything is working fine. -> http://www.mfields.org/goodfoot/

 

Since this shopping cart's final home is not on my server, I moved it:

 

1. Exported database from server one.

2. Recreated database on server two.

3. Changed 'includes/configure.php' and 'admin/includes/configure.php' to reflect new environment.

4. Uploaded all files to server two using dreamweaver as ftp client.

5. Nothing works at all. -> http://www.thegoodfoot.com/store_osc/

 

 

http://www.thegoodfoot.com/store_osc/

ERROR: Parse error: parse error, unexpected T_CLASS in /home/user/www/goodfoot/includes/classes/shopping_cart.php on line 1

 

 

http://www.thegoodfoot.com/store_osc/admin/

ERROR: Parse error: parse error, unexpected T_RETURN in /home/user/www/goodfoot/admin/includes/functions/general.php on line 2

 

 

I have never gotten a perse error that references line one.

I did not alter either file (if memory serves).

 

If anyone knows what is going on here, please fill me in...

I've been working on this for the past 2 days and I'm going insane....

 

 

Thanks in advance,

-Mike

Posted

If you are getting a T class error on line 1 then have you looked at the uploaded file? I'm guessing that the Dreamweaver FTP client did not upload the files correctly. I'd advise uploading them again using something like the 30 day trial version of WS FTP Home (www.ipswitch.com), and then see if the problem persists.

 

Vger

Archived

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

×
×
  • Create New...