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  

check_g2configerror & _G2_EMBED_PHP_FILE
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 10:42 am    Post subject: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

Hi!

I´m trying to embed the Gallery 2 Beta 4 in my Nuke 6.5 installation. At the moment without success.

Gallery 2 as standalone installation is running fine. I´ve follow your instruction in the readme and went to the admin panel where I checked the config. When I try to submit the confirmed configuration I get the following error message:

Code: ›
Fatal error: check_g2configerror(): Failed opening required '/home/apache/htdocs/devcenter/weicheiv2/modules/gallery2//_G2_EMBED_PHP_FILE' (include_path='.:') in /home/apache/htdocs/devcenter/weicheiv2/modules/gallery2/admin/index.php on line 409


So I searched through your forum, but couldn´t find a solution. I´ve found a topics that describes the missing lang-german.php file. I copied the englisch file to the german file, but that didn´t help.

Thanks for your help!

Christoph Klempau
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: check_g2configerror & _G2_EMBED_PHP_FILE  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 10:47 am    Post subject: Re: check_g2configerror Reply with quote

yes, this is a language file problem. _G2_EMBED_PHP_FILE is defined in the language file. at the top of modules/gallery2/admin/index.php , add:
PHP: › <?php define("_G2_EMBED_PHP_FILE","embed.php"); ?>

underneath
PHP: › <?php global $prefix$db$g2config_error$currentlang$admin_file?>
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 10:49 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

one more question: in the admin panel, did the text show up properly, or was it all the variables instead?
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 11:21 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

Hi!

I´ve already tried to include the defines into the index.phpl. This worked in the first step, but then I´ve got a _NOT_WRITEABLE error, but can´t be. Everything is chmoded 777 and user is set to owner wwwrun. So the problem must be somewhere else.

No, the content isn´t translated. I´ve got the _PHPEMBEDFILE, _EMBEDURI, etc stuff. "URL path from document root to embedURI:" and "Cookie Patch" is translated. The others not.


Last edited by Irulusug on Thu Aug 04, 2005 1:52 am; edited 1 time in total
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 11:36 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

re: languages - i'm going to have to remove the language files and make it all english for now, as i don't have translators for the rest of the available languages.

can you paste the content of the NOT_WRITABLE error (so i can see the file and line that throws it)?
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 11:49 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

If you send me a complete language file I´m going to translate it into german. Should be no problem.

Thats all I´ve got as error message:
_G2_ERROR: modules/gallery2/ _NOTWRITABLE

I´ve reviewed the function starting at line 355, but couldnt find anything.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 11:51 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

aaah..the file might be 777, but the parent directory is not writable. try chmod -R 755 on your gallery2 directory. you can translate the lang-english file if you'd like. oh, and those two other strings, too " URL path from document root to embedURI" and "Cookie Path".
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 11:57 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

Ive tried both... 777 and 755 on gallery2 directory. No luck ;(.

Ok, I will send you a complete lang-german.php. On which email?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 11:59 am    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

hmmm....try 777 recursively on the directory. we can work our way down from there.

email the file to dari @ nukedgallery . net
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 12:11 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

The whole directory is chmoded 777:

Code: › -rwxrwxrwx   1 wwwrun   users       18011 Jun  4 20:08 LICENSE*
-rwxrwxrwx   1 wwwrun   users       25113 Aug  2 10:37 MANIFEST*
-rwxrwxrwx   1 wwwrun   users       65571 Jul 29 21:46 README.html*
drwxrwxrwx   3 wwwrun   users         224 Aug  3 18:47 admin/
-rwxrwxrwx   1 wwwrun   users        1781 May 26 19:45 bootstrap.inc*
-rwxrwxrwx   1 wwwrun   users        6136 Aug  3 16:02 config.php*
drwxrwxrwx   2 wwwrun   users         152 Aug  2 10:33 docs/
-rwxrwxrwx   1 wwwrun   users        1488 Jun 11 23:44 embed.php*
drwxrwxrwx  10 wwwrun   users         280 Aug  3 16:02 g2data/
-rwxrwxrwx   1 wwwrun   users        1304 Aug  3 16:07 gallery2.cfg*
-rwxrwxrwx   1 wwwrun   root           33 Aug  3 16:20 help.php*
drwxrwxrwx   2 wwwrun   users         224 Aug  2 10:33 images/
-rwxrwxrwx   1 wwwrun   users        6951 Aug  3 16:07 index.html*
-rwxrwxrwx   1 wwwrun   users        6834 Jul 19 17:51 init.inc*
drwxrwxrwx   8 wwwrun   users         352 Aug  2 10:37 install/
drwxrwxrwx   2 wwwrun   users         176 Aug  3 16:16 language/
drwxrwxrwx  10 wwwrun   users         264 Aug  2 10:37 lib/
-rwxrwxrwx   1 wwwrun   users          32 Aug  3 16:01 login.txt*
-rwxrwxrwx   1 wwwrun   users       14658 Aug  1 19:39 main.php*
drwxrwxrwx  48 wwwrun   users        1336 Aug  2 10:37 modules/
drwxrwxrwx   8 wwwrun   users         192 Aug  2 10:37 themes/
drwxrwxrwx   8 wwwrun   users         352 Aug  2 10:37 upgrade/
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 12:12 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

are you 100% positive you got the path correct? that's the only other thing i can think of

EDIT: Ignore this. momentary brainfart.
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 12:27 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

Yes, I am...

But what makes me nervous is that the german language file I just wrote and sent to you is ignored. Strings still not translated... hmm... Question
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 12:30 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

hmm indeed.

what's the abbreviation for german, "DE"?
Back to top
Offline View user's profile Send private message Visit poster's website
Irulusug

Beginner
Beginner


Joined: Aug 25, 2004
Posts: 15

PostPosted: Wed Aug 03, 2005 12:36 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

Ok... I´ve found problem no. 1.

I copied the language file to languages/ and not to admin/languages/

But I still got the "_NOTWRITEABLE" Error...

EDIT: Yes, it´s DE. I´m going to recheck some $_SERVER Vars.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 03, 2005 12:50 pm    Post subject: Re: check_g2configerror & _G2_EMBED_PHP_FILE Reply with quote

ok, your error is coming from:
PHP: › <?php if (file_exists("modules/".MOD_NAME."/gallery2.cfg")) {
        if (!
is_writable("modules/".MOD_NAME."/gallery2.cfg")) {
            
g2_message("<b>"._G2_ERROR."</b>: gallery2.cfg "._NOTWRITABLE);
        }
    }
    elseif (!
is_writable("modules/".MOD_NAME."/")) {
        
g2_message("<b>"._G2_ERROR."</b>: modules/gallery2/ "._NOTWRITABLE);
    } 
?>


before each of the g2_message calls, add in a short echo so it looks like this:
PHP: › <?php if (file_exists("modules/".MOD_NAME."/gallery2.cfg")) {
        if (!
is_writable("modules/".MOD_NAME."/gallery2.cfg")) {
                                                echo 
"1";
            
g2_message("<b>"._G2_ERROR."</b>: gallery2.cfg "._NOTWRITABLE);
        }
    }
    elseif (!
is_writable("modules/".MOD_NAME."/")) {
                                 echo 
"2";
        
g2_message("<b>"._G2_ERROR."</b>: modules/gallery2/ "._NOTWRITABLE);
    } 
?>


and paste the results here.
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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