ZenphotoCMS Forum
zpSkeleton: sometimes I get this error: requiere once... - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zpSkeleton: sometimes I get this error: requiere once... (/thread-11525.html)



zpSkeleton: sometimes I get this error: requiere once... - geme - 2013-12-05

Warning: require_once(zp-core/zp-extensions/image_album_statistics.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.---.it/home/galleria/themes/zpskeleton/functions.php on line 57

Fatal error: require_once() [function.require]: Failed opening required 'zp-core/zp-extensions/image_album_statistics.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.---.it/home/galleria/themes/zpskeleton/functions.php on line 57




zpSkeleton: sometimes I get this error: requiere once... - acrylian - 2013-12-05

I added the name of the 3rd party theme to the topic title so its author may be able to respond.




zpSkeleton: sometimes I get this error: requiere once... - sbillard - 2013-12-08

Just for the record, the problem would seem to be that the theme has not fully qualified the path to image_album_statistics.php and then is trying to load it within a subfolder so the file search works within that subfolder and naturally does not find the plugin.




zpSkeleton: sometimes I get this error: requiere once... - geme - 2013-12-09

yes, true, but why this happens only sometimes and not always?
For example, if you reload the page after 5-6 times without any changes, the error is shown




zpSkeleton: sometimes I get this error: requiere once... - 420 friendly - 2013-12-09

@sbillard Speaking of errors, there is an obvious one in the Forum Rules:

"please make your posts explicit so we can see that you have real interesst."

Got the point, though.




zpSkeleton: sometimes I get this error: requiere once... - geme - 2013-12-09

I replace manually :

if ($zpskel_strip == 'latest') require_once (ZENFOLDER."/zp-extensions/image_album_statistics.php");

with:

if ($zpskel_strip == 'latest') require_once ("/web/htdocs/www.----.it/home/galleria/zp-core/zp-extensions/image_album_statistics.php");

at line 57

and now work fine




zpSkeleton: sometimes I get this error: requiere once... - sbillard - 2013-12-09

Glad you got it working. Just FYI, there is a define for the server path that you could use as well--SERVERPATH

It might not happen always if some other place properly loaded the script.