Posted on Sunday 10th of June 2007 at 09:29 in Web Development

EasyPHP index not initialised errors - how to fix them

I'm writing this from Wales where I have been largely avoiding the Internet so that I can keep my head down and relax away from the pressures of modern life. However, I brought my laptop with me with EasyPHP installed to allow me to continue "mild" work. I encountered problems though and have to document them...

It was about an hour into the EasyPHP install that I realised I should probably have installed XAMPP. MySQL wasn't particularly well documented so working out my connection credentials was proving troublesome and to make matters more exciting, PHP was throwing every error think I've ever seen.

Most notable was this "Index not initialised" error



A quick search of the Internet showed that this is not an uncommon thing - throwing every error known to man so how do you stop it?

PHP Config Fun
The problem is that the PHP Config is setup rather stupidly, with the level of error reporting at almost maximum. This means that even if the code is working, it'll throw "warnings" and stop it working... Great.

What you need to do is hop into your php.ini file and change the level of error reporting (there's plenty of instruction within the file itself). I'm yet to find the perfect combination, at the moment it's just throwing fatal run-time errors as-and-when they occur so I only get an error report when I've done something seriously wrong. However this has meant that I have to occasionally hop into the php.ini to modify my error reporting so that something useful is outputted when it's clearly not working.

I hope this helps. EasyPHP seems okay but I'm finding it rather dis-similar to a proper server environment and opting to leave some aspects broken because I *know* they work in a real environment. So yeah, maybe XAMPP would have been a better idea.

 

Enjoy this article? Why not subscribe to the full RSS feed?

Add Your Comments








Comments

No comments yet
Subscribe to the RSS Feed

Stay up to date with Seopher.com by subscribing to the RSS feed, either in your browser or subscribe via email using the form below

Updates by Email

By subscribing by email you’re also subscribing to the Seopher.com newsletter; a periodical email outlining new reviews, competitions and other subscriber-only content

  • 125x125 banner only $50 pcm
  • Dreamhost Hosting $5.95 per month
Want to give your product/website exposure?

Paying for a featured review is a great way to give your product, service or website exposure. For as little as $50 you can have a full review on the site forever.

Advertising Bundle! Review + Banner = $70

To kick start the new improved Seopher.com, buy a review and get a 125x125 advert half price. Your banner gets displayed on over 450 pages for a full month.