Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Error in G2 blocks -solved :)

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
malrock

User
User


Joined: Apr 20, 2005
Posts: 34

PostPosted: Fri Feb 23, 2007 1:57 am    Post subject: Error in G2 blocks -solved :) Reply with quote

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
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Error in G2 blocks -solved :)  

Back to top
malrock

User
User


Joined: Apr 20, 2005
Posts: 34

PostPosted: Fri Feb 23, 2007 4:14 am    Post subject: Re: Error in G2 blocks Reply with quote

Well aftera bit more digging I found out what the problem was. In the configuration files it asks for the path to the standalone gallery..

Since I installed to
htttp://www.verticalresources.org/modules/gallery 2

I assumed it wanted that - however going to the above url returns a page saying
You can't access this file directly

I need to goto
http://www.verticalresources.org/module ... 2/main.php

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);

makes things look at
http://www.verticalresources.org/module ... pembed.php

which of course was bollocks ....

so fixed the configuration and it works fine - Embarassed

This was the post that helped me work it out
http://www.nukedgallery.net/postxf2470-0-0.html

cheers guys
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia