Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache error when running php files from admin


warrenp

Recommended Posts

This is a repost to make it easier to read/ answer.

 

Here is the message I get in my Apache error log after trying to execute a php file from within the admin folder:

 

[Mon Apr 25 11:18:31 2005] [error] [client 127.0.0.1] PHP Warning: main(includes/languages/english/) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in G:\\server\\apache group\\Apache2\\htdocs\\radmin\\includes\\application_top.php on line 133, referer: http://localhost/radmin/

[Mon Apr 25 11:18:31 2005] [error] [client 127.0.0.1] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.;C:\\php5\\pear') in G:\\server\\apache group\\Apache2\\htdocs\\radmin\\includes\\application_top.php on line 133, referer: http://localhost/radmin/

[Mon Apr 25 11:18:31 2005] [error] [client 127.0.0.1] PHP Fatal error: Cannot re-assign $this in G:\\server\\apache group\\Apache2\\htdocs\\radmin\\includes\\classes\\upload.php on line 31, referer: http://localhost/radmin/

 

Any ideas??

 

I thought of turning globals off in php.ini and installing the globals patch. Would this help? (this is a local install)

Link to comment
Share on other sites

QUOTE(Alpha Ray @ Apr 14 2005, 12:24 AM)

You are using PHP5. If possible, downgrade it to PHP4.

 

If not, then change the following.

 

In C:\Reactor\htdocs\store\admin\includes\classes\upload.php on line 31 change:

CODE $this = null; to

CODE unset($this);

 

 

 

 

Problem solved thanks to a past post by Alpha Ray.

 

Problem was that I was using PHP5 which osc isn't quite compatable with.

 

Hope this is the only issue with PHP5. Not too keen on downgrading if I can help it.

 

The day seems much brighter now!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...