Tuesday, May 25, 2010

PrestaShop Tips - set display_errors to on for trouble shooting

I experienced an issue when I switched my hosting server. I took me a lot of time to find out the cause and fixed the problem. Here I put this tips as memo, hope it will help myself to remember and also share the tips with any one experience the same problem.

The symtom my issue is:
When login to back office at PrestaShop and tried to config my moules at modules tab, but the page is empty, no modules is displayed. No error is displayed.

I checked everything as instructed in the PrestaShop Wiki, such as folder permission, modules class files and so on, but I was still not luck.

Finally, I found there is configuration item "display_errors" in config file.
By default it is set as 'off' as indicated below.

@ini_set('display_errors', 'off');

I changed this config item value from 'off' to 'on' than re-run my page, the following error was displayed.


Fatal error: Class 'ModuleGraphEngine' not found in /hsphere/local/home/c270727/carnvee.com/classes/Module.php(323) : eval()'d code on line 13

Then I checked file ModuleGraphEngine.php under classes folder and found the file size was zero (0). I am pretty sure at this momemnt that the cause of problem is the stupid file transfering issue.