php - How to troubleshoot Magento when Developer mode errors out. -


i'm attempting troubleshoot custom module i'm working on. website seems work fine no noticeable or logged errors. when enable magento developer mode white screen. points towards php errors.

when check server error logs i'm getting following error:

php fatal error:  class 'mage' not found in /var/www/index.php on line 41 

i'm not sure do? googling hasn't seemed much. i'm getting error in developer mode.

what version of magento using? seems index.php has been changed.

the best way debug this, can:

  1. compare files freshly downloaded magento code.
  2. check index.php on line 41, if there's code calling 'mage' class

just fyi, if code exists , need it. can move code after code (line 68 on community 1.8.1)

require_once $magefilename;

hope help.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -