Warning: require_once


#1

My devs and I are having an issue with the following error:

[b]Warning: require_once(…/home/user/mysite/php/functions.php): failed to open stream: No such file or directory in /home/user/mysite/crea/download.php on line 2

Fatal error: require_once(): Failed opening required ‘…/home/user/mysite/php/functions.php’ (include_path=’.:/usr/local/lib/php:/usr/local/php5/lib/pear’) in /home/user/mysite/crea/download.php on line 2[/b]

Line 2 for download.php is: require_once(’…/home/user/mysite/php/functions.php’);

The file is there and after including the absolute path we were able to clear this error. Baffling thing is we ran in to a subsequent error on line 10, fixed then ran again, only to have the Warning: require_once for Line 2 error pop up again.

Cleared cache, that didn’t fix.

Would love a second set of eyes or any suggestions.

Thanks in advance!!


#2

The path you’re passing to require_once() is invalid. Can you give an example of the PHP code which is involved here?


#3

Thanks for the reply. I just fired off an email to you with some example php code.