Posted: Fri Feb 23, 2007 1:57 am Post subject: Error in G2 blocks -solved :)
I've just been trying to get the sidebar block to work after getting a G2 instalation finally embedded in Ravennuke ...
I've been trying to get the sidebar block to work but I kepp on getting the error
Warning: main(modules/gallery2/main.phpembed.php): failed to open stream: No such file or directory in /var/www/xxxxxxxxxxxxxxxxxxxxblocks/block-G2_Sidebar.php on line 46
the code in that area is ..
preg_match("/^(.*)?(modules\/.*)/i", $g2Uri, $matches);
require_once($matches[2]._G2_EMBED_PHP_FILE); (THIS IS LINE 46)
I can't find anything else in the forums about it at the moment ...
<your message here>
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
Last edited by malrock on Fri Feb 23, 2007 4:15 am; edited 1 time in total
so I put that in the configuration file and the line of code
preg_match("/^(.*)?(modules\/.*)/i", $g2Uri, $matches);
require_once($matches[2]._G2_EMBED_PHP_FILE);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum