PHP Fatal error: require_once (): Failed to open "Zend / Gdata / Extension.php"

For some strange reason, I cannot understand right now, NoEmbed.php fails with a fatal error when trying to include a file. The include path is set correctly, I checked that, as shown below (right before the require_once directive in NoEmbed.php):

$s = ini_get('include_path'); $a = explode(':',$s); foreach($a AS $path) { echo $path; if(file_exists($path.'/Zend/Gdata/Extension.php')) echo '...found<br/>'; else echo '...not found<br/>'; } 

which displays "found" at the expected location.

I have to admit that at present I canโ€™t think of any reason why this should happen, especially after NoEmbed.php is enabled correctly. I ran into similar issues with caching solutions, but they were all deactivated or deleted without making any difference.

Edit: I just found that it works with "require" vs "require_once" (then throws a reuse error) ... any possible reason for this?

+4
source share
2 answers

Check the permissions and the owner of the repertoire where the files are, and the files are two.

For example, dir can be 755 and 644 files, with www data as the owner, if you want to write to them.

0
source

In my case, the problem was a faulty hard drive. I could see the file and its contents using the terminal, but PHP gave me this particular file, not found in 60% of cases.

I moved it to another hard drive and the error disappeared.

0
source

All Articles