Expression Engine Php Error Reporting
Contents |
Me? Password forgot password? This is an archived forum and may no longer be relevant. The active forums are here. Advanced Search Error expressionengine php requirements reporting - Turn on errors in PHP - White screen expressionengine php variables Elliot Lewis Posted: 25 January 2011 05:44 PM Joined: 2008-06-2449 posts I've have some custom expressionengine php in template PHP code running in EE 1. This is erroring somewhere but I can't see what error PHP is throwing back as all I get is a
Php Error Reporting Not Working
white page. How do you turn on errors to output to the page? I've checked php info and errors are on. I've set ‘Debug Preference' to 1. I've tried altering error_reporting(0); in index.php to error_reporting(2); Aaron Waldon Posted: 25 January 2011 05:51 PM [ # 1 ] Joined: 2008-08-0666 posts Hi Elliot! This php ini error reporting may (or may not help), but what happens if you change:error_reporting(0); to:error_reporting(E_ALL); ini_set('display_errors', '1'); in /index.php? Also, don't forget to set this back afterward, as it could give sensitive server info to people that you don't want to see it. Signature Causing Effect @causingeffect Elliot Lewis Posted: 26 January 2011 08:05 AM [ # 2 ] Joined: 2008-06-2449 posts Thanks Aaron, that did the trick. Not sure which one, but I commented out error_reporting(0); put in both and now I'm getting errors. Aaron Waldon Posted: 26 January 2011 08:09 AM [ # 3 ] Joined: 2008-08-0666 posts No problem Elliot. Glad I could help. Good luck debugging! Signature Causing Effect @causingeffect Ingmar Greil Posted: 26 January 2011 03:02 PM [ # 4 ] Joined: 2004-05-1529235 posts Glad to see that's taken care of. Please don't hesitate to post again as needed. ©2002–2016, EllisLab, Inc.Privacy Policy, Terms of Service built on ExpressionEnginereturn to the top twitter PixelBuzz eNews
is also empty, are usually the result of a suppressed PHP error. Tip If you have just installed ExpressionEngine and chose the "None- Empty Installation" Site Theme, your site's homepage will appear blank because no templates or data php error reporting htaccess have been created yet. Troubleshooting¶ Follow these instructions until you are able to see
Disable Error Reporting Php
the error message(s) being output by your server: Open your site's main index.php file and under the Error Reporting section change: $debug
Php Mysql Error Reporting
= 0; to: $debug = 1; Go to Settings ‣ Debugging & Output and ensure that Debug Preference is set to 1: PHP/SQL error messages shown only to Super Admins. Go to Developer Tools ‣ Utilities https://ellislab.com/forums/viewthread/179222/ ‣ PHP Info and search the page for "display_errors". Ensure it is set to On under the Local column. If it is not, your host can help change this setting for you. Check your server's error logs or contact your host to assist you in cases where errors are being output to logs and not to the screen. Report a problem with this page ExpressionEngine 3.4.3 User Guide©2002–2016 EllisLab, Inc. About ExpressionEngine https://docs.expressionengine.com/latest/troubleshooting/general/blank_pages.html Introduction Installation & Updates The Control Panel Add-Ons Channel Comment Fieldtypes Member Management Multiple Site Manager Optimizing ExpressionEngine Securing ExpressionEngine Template Language Overview URLs How-To Guides Add-On Development General Information Troubleshooting Changing the field formatting for existing entries How to display future entries Times, Localization, and Entry Dates Moving entries to another channel A new entry does not appear on the site right away New members do not appear as an option in the author list Category List is not appearing in the Edit tab Missing Icon UI Elements Can not log into the Control Panel on Windows Based server Logging into the front-end does not cause a login to the Control Panel Control Panel is Unstyled Emails sent via ExpressionEngine are never reaching their destination Using a Gmail account to send or receive A problem was encountered while attempting to upload your file Allowed memory size of ... bytes exhausted Call to undefined function: imagettftext() Can't open file: exp_online_users.MYI Warning: Cannot modify header information Client does not support authentication protocol requested by server MySQL Error 1030: Got error 28 No Suitable Nodes Available Supplied argument is not a valid MySQL-Link resource Unable to perform the SQL queries needed to install this program. Unable to receive your comment at this time Error On View Tem
up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about http://expressionengine.stackexchange.com/questions/13838/expression-engine-php-error-log Stack Overflow the company Business Learn more about hiring developers or posting ads with http://focuslabllc.com/digest/troubleshooting-expressionengine us ExpressionEngine® Answers Questions Tags Users Badges Unanswered Ask Question _ ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up error reporting and rise to the top Expression Engine PHP Error Log up vote 2 down vote favorite How can i find or get an PHP Error Log? Not server-side, only on Expression Engine Level. On my server i can see an error log but to fix a problem with assets, i need a EE-side php error log. php error php-errors share|improve this question asked Sep 17 '13 at 16:05 user1706646 111 php error reporting add a comment| 1 Answer 1 active oldest votes up vote 1 down vote EE logs errors to the PHP error log. But, you can see errors in EE's responses (i.e., on your web pages) by setting in your config.php: $config['debug'] = '1'; // display errors only to the Super Admin or $config['debug'] = '2'; // display errors to everyone share|improve this answer answered Sep 17 '13 at 21:57 Jay F 1,764412 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged php error php-errors or ask your own question. asked 3 years ago viewed 742 times active 3 years ago Get the weekly newsletter! In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms of service. Related 2Logger.php throwing PHP errors0how to solve following error of php?0Segment parsing and embedded PHP
the way you expected? For most developers this is just part of the process. There are some common ways to debug issues that are built right into ExpressionEngine. You just need to know how to use them. There are other things that aren’t necessarily tools but rather features that might be missed causing errors. Let’s dive in.Aside: This article was originally published on my personal blog on December 18th, 2009. It’s been updated with some additional methods along with EE2-specific changes. The original comments have also been migrated over.My Troubleshooting ProcessThis is a quick run down of where my head typically goes when trying to debug something with ExpressionEngine. Some of these thoughts apply to things other than EE as well.Dynamic=”no”At some point or another this one gets everyone from the newbie to the veteran. Dynamic="no" (formerly dynamic="off" in EE1) is a parameter used within the channel:entries tag pair that tells ExpressionEngine to ignore the URL when querying the database for results. By default EE reads your URL segments and bases the channel:entries results off of said segments. I personally think that this should function in the reverse order and that dynamic should be set to no by default. I find myself adding that parameter to many more channel tags than not. For a good video tutorial (runtime 2:51) on dynamic="no" visit Train-EE’s Dynamic = Off Explained!Template DebuggingIs something in your template ackin a fool? Well Template Debugging might do you some good. It breaks down different pieces of the template parsing and shows you what’s happening and when. It’s kind enough to slap an elapsed time next to each item as well. Here’s an example of what you might see: (0.000016) - Begin Template Processing - (0.000215) URI: (0.000226) Path.php Template: site/pages (0.000241) Retrieving Template (0.000273) Retrieving Template from Database: site/pages (0.001650) Template Found (0.002578) Retrieving Template from File (0.002923) Template Type: webpage (0.003035) Parsing Site Variables etc...
Note to Developers: You can tap into what’s displayed here. If you are writing a plugin or module for ExpressionEngine you can add lines to this to help your user see what happens and when. There is a function in the Template Parser class that allows you to add a line at a time. Here’s a quick sample code: EE =& get_instance(); // log a message to the template debugge