Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected $end ...


lilylily

Recommended Posts

Hi,

 

I've been using oscommerce(version 2.2 RC2) for a while. This site was working well. But one day I found the website can not be shown properly. The error I got is that 'Parse error: syntax error, unexpected $end .....index.php on line 340'. But I didn't do any changes before that. And my anti virus program detected virus when I opened an account page.

 

I just simply replaced all files with my backup. It seemed fine for a while. But I got same problem today. I suspected there must be some security problems with oscommerce. Is there anybody who had same problem? Can anybody tell me what may cause it? How should I do? Thanks very much!

Link to comment
Share on other sites

unexpected $end usually means you havn't closed an open bracket ... paste your index.php file here if you cant find the solution

 

But index.php works fine all the time. And the thing is that I didn't change this file at all. The error just suddenly appeared. And after I replace it with my backup file which is the total same, it works well again. It didn't just happen to index.php, all php files have same error message. It seems very usual.

Link to comment
Share on other sites

unexpected $end usually means you havn't closed an open bracket ... paste your index.php file here if you cant find the solution

 

But index.php works fine all the time. And the thing is that I didn't change this file at all. The error just suddenly appeared. And after I replace it with my backup file which is totally the same, it works well again. It didn't just happen to index.php, all php files have same error message. It seems very unusual. And anti-virus program reported warning. I can't figure it out why

Link to comment
Share on other sites

If your files get changed without you doing it, and your anit-virus complains when you visit your site, either the server is hacked, your site is hacked - or both.

 

One sure-fire way to get hacked is to have a web accessible folder with 777 permissions.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

If your files get changed without you doing it, and your anit-virus complains when you visit your site, either the server is hacked, your site is hacked - or both.

 

One sure-fire way to get hacked is to have a web accessible folder with 777 permissions.

 

 

Hi, Thanks very much for your reply. I guess you must be right. But how can I prevent it happening again? I checked the whole site, but I can't find any fold with 777 permissions. The problem is still there, and I'm sure the same thing will happen again in future.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...