0

I have a file with one line: <?php require_once('usercake/models/config.php'); ?>, and it gives me a 500 error. What could be the reason for this? My usercake installation is not modified in any way.

  • 2
    500 is an error code dealing with permissions. Does your file have access to config.php? – Aroic Jun 21 '16 at 18:11
  • permission of all files are set to 666 – user6454026 Jun 21 '16 at 18:17
  • try printing DOC_ROOT. also, use this line at the start ini_set('display_errors', true); – shadab.tughlaq Jun 21 '16 at 18:24
  • DOC_ROOT appears not to be defined (`echo DOC_ROOT` prints the string `"DOC_ROOT"`). i get these errors: `Warning: require_once(models/languages/en.php): failed to open stream: No such file or directory in /var/www/html/sem/usercake/models/config.php on line 42` and `Fatal error: require_once(): Failed opening required 'models/languages/en.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/sem/usercake/models/config.php on line 42` . The `models/languages/en.php` file exists. – user6454026 Jun 21 '16 at 18:32

0 Answers0