EasyPHP index not initialised errors - how to fix 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?




