ECI Error Display Setting   

Jan 22nd, 2011 // In: Easy CSV Importer // By: Comments 0

Something that is not known to many is the fact that WordPress hides php errors, it hides many php errors! Almost every theme and plugin that I have used will cause an error to be displayed when error display is activated. The two lines below are what we used to override the blog…

ini_set(‘display_errors’,1);
error_reporting(E_ALL);

Easy CSV Importer uses these two lines in a function named eci_debugmode and that function can be activated by going to Settings then clicking on the Testing panel and changing Error Display from No to Yes. In many blogs, it will instantly cause a large list of errors to be displayed, but do not be alarmed. WordPress hides these errors because they are not critical. Usually the error displayed is “Undefined variable” which is something I try to avoid 100% in my own plugin however many developers allow these to happen because it is, in a way, natural. Most Undefined variable errors will have no effect on the operation of your blog and if you wanted to hide them individually you only need to put @ infront of the line of php causing the error. This is a quick fix that allows you to keep displaying future errors for the sake of testing new changes in your blog or any customisation you are doing to your theme for example.

Not Easy CSV Importer Causing The Error

It is easy to assume Easy CSV Importer is causing the error and many customers will use the term conflict to explain what ECI does when installed. However in most cases no such thing has happened, the errors being displayed are usually from various plugins and the theme. Even though it sounds hard to believe, I did explain further up that such errors usually have no operational effect and should not be worried about. To clarify, if you used the 2 functions I have displayed above, anywhere in your theme or any plugin. It would cause the same errors even with Easy CSV Importer removed from your blog. I hope this clears things up and if you are interested in work being done on your blog to hide the errors individually so that you may monitor your blogs condition with errors being displayed then please contact me. It does not often take long to do and I do not charge a lot.

Tags: - - -

Leave a Reply

You must be logged in to post a comment.