Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Where is PHP Error log?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Where is PHP Error log?
Where is PHP Error log?
05-03-2014 11:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Where are PHP error messages written to on the new platform?
Message 1 of 6
(1,404 Views)
5 REPLIES 5
Re: Where is PHP Error log?
06-03-2014 12:00 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
PHP error messages are suppressed by default since the information exposed increases security risks. If you want to see errors you need to add
to .htaccess in your code development folder.
php_value display_errors 1
php_value error_reporting 32767
to .htaccess in your code development folder.
David
Message 2 of 6
(645 Views)
Re: Where is PHP Error log?
06-03-2014 12:04 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks.
Is there any way to write this information to a an error-log file instead of displaying it inline?
Is there any way to write this information to a an error-log file instead of displaying it inline?
Message 3 of 6
(645 Views)
Re: Where is PHP Error log?
06-03-2014 1:01 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
i haven't tried this but setting the error_log constant should do that. I think .htaccess will need to contain
You could try with display_errors also set initially as a record of what should be in the log.
David
php_flag log_errors 1
php_value error_reporting 32767
php_value error_log /the/full/path/to/the/error/log_file.log
You could try with display_errors also set initially as a record of what should be in the log.
David
David
Message 4 of 6
(645 Views)
Re: Where is PHP Error log?
06-03-2014 6:01 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Works a treat! 
Both in-line display, using display_errors, and writing to a file, using log_errors.
Many thanks.

Both in-line display, using display_errors, and writing to a file, using log_errors.
Many thanks.
Message 5 of 6
(645 Views)
Re: Where is PHP Error log?
06-03-2014 7:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That's good to hear. Thanks for the feedback. 
David

David
David
Message 6 of 6
(645 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Where is PHP Error log?