Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error messages when modifying logger through admin


lwhyatt

Recommended Posts

Posted

Please can anyone help? I get the follwoing error message when modifying the logger through admin and don't know how to correct it. Any pointers would be gratefully appriciated

 

Many thanks

Lyndon

 

Warning: error_log: Unable to write to /var/log/www/tep/page_parse_time.log in /homepages/32/d66303120/htdocs/admin/includes/classes/logger.php on line 49

 

Warning: Cannot add header information - headers already sent by (output started at /homepages/32/d66303120/htdocs/admin/includes/classes/logger.php:49) in /homepages/32/d66303120/htdocs/admin/includes/functions/general.php on line 18

Posted

You need to set permissions on:

 

page_parse_time.log

 

to 777 so the server can write to the file. And this should take care of the second message too.

 

If you don't find the above file you may need to create one in your /tep/ root dir.

 

One more thing, if you downloaded tep2.1 go and get 2.2cvs or you won't get any support. 2.2cvs is what eveyone is using now. 2.1 is obsolete.

Steve

-------------------------

Posted

Have 2.3 but where is /var/log/www/tep/page_parse_time.log. I have no directory called tep on this install?

Posted

I just looked at what you are doing. You need to create a file in root.

 

page_parse_time.log

 

Then chmod 777

 

Then change the path in admin->configuration->Loggin->log desination to point to that file. That should fix it. I think the path for tep, is left over from the 2.1 day. Oh, and make sure you use you complete server path.

Steve

-------------------------

Posted

The first bit is fine and done that thanks. Problem is I can,t get into admn because it just plasters the screen in error messages. Can I modify one of the php files to point o this log? Im not sure where to look.

Posted

Ok managed to get in after logging in to admin then addding /configuration to url then hitting refresh several times. Have created an empty file called page_parse_time.log in my root. Have set Store Page Parse Time to false Display the page parse time to false and store database queries to false. However I ould really like to enable this. I can set the log destination to /page_parse_time.log. I have Catalog in the root an admin in an admin subdirectory. How can I get this to work?

Posted

I'm sorry, but you've just gone beyond my limited knowlage of PHP. The only thing I can think of is your being limited by PHP Safe mode. This is why you may not be able to write to this file. :?

Steve

-------------------------

Archived

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

×
×
  • Create New...