Topic Title: Gallery2 integration

Forum Index » Gallery 2 Integration » Gallery2 integration
Topic URL: http://www.nukedgallery.net/postt1733.html

AuthorMessage
Post Title: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sun Jul 03, 2005 10:53 pm
Hi there. Does anybody know this problem:

_G2_ERROR : _PHPEMBEDFILE
_PHPEMBEDFILE_ERROR


I use PHP Nuke 7.7 and Gallery 2.0 Beta 3


Thanks for any help.

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jul 05, 2005 6:46 am
please post the settings in your embed.php file.

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sun Jul 10, 2005 8:16 am
Sorry for the break.

I've tested some cofigurations...


Now I have PHP NUke 7.8, Gallery 2 Beta 3.
I work on Mac OS X Server 10.4


My gallery2.cfg is

<?
$g2embedparams = array (
'embedphpfile' => '/modules/gallery2/',
'embedUri' => 'http://www.iroom.ch/modules.php?name=gallery2',
'relativeG2Path' => '/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
);
$g2mainparams = array (
'showSidebar' => 'true',
);
$g2configurationdone = 'true'; ?>


so I get the error

_G2_ERROR : _PHPEMBEDFILE
_PHPEMBEDFILE_ERROR

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sun Jul 10, 2005 8:20 am
And also the embed.php file:

<?php
/*
* $RCSfile: embed.php,v $
*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2005 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
* Access point for external application in which Gallery is embedded.
* See docs/EMBEDDING and modules/core/classes/GalleryEmbed.class for more details.
*
* @package GalleryMain
* @version $Revision: 1.43 $ $Date: 2005/05/05 04:12:53 $
* @author Alan Harder <alan.harder@sun.com>
*/

define('G2_EMBED', 1);
require(dirname(__FILE__) . '/main.php');
require(dirname(__FILE__) . '/modules/core/classes/GalleryEmbed.class');

?>

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Jul 11, 2005 8:12 am
try 'relativeG2Path' => '/modules/gallery2/'

and make the full filepath the FULL filepath, ie:
/home/myuser/public_html/modules/gallery2/

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Mon Jul 11, 2005 5:57 pm
Hi Dari

Done it like this!?

<?
$g2embedparams = array (
'embedphpfile' => '/Volumes/iroom/PHP-Nuke-7.8/html/modules/gallery2/',
'embedUri' => 'http://www.iroom.ch/modules.php?name=gallery2',
'relativeG2Path' => '/modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
);
$g2mainparams = array (
'showSidebar' => 'true',
);
$g2configurationdone = 'true'; ?>

Same problem:

_G2_ERROR : _PHPEMBEDFILE
_PHPEMBEDFILE_ERROR




You have to know, the "html" directory in 'embedphpfile' => '/Volumes/iroom/PHP-Nuke-7.8/html/modules/gallery2/' is my public html folder...

Thank you for the support.

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jul 12, 2005 7:53 am
if "html" is just a symlink, use public_html instead.

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Wed Jul 13, 2005 2:51 am
I don't understand/doesn't work - same error...

- Where should "embedphpfile" point to (wich file/folder)?
- Where should "embedUri" point to?
- How is it mean, relative on "relativeG2Path" (same item as in embedphpfile)?


Nuke is working fine and also gallery2 standallone no problems...



Is there a crack who has installed his phpnuke with integrated gallery2 on mac os x (server)?

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Jul 13, 2005 6:37 am
the 'embedphpfile' directive needs to be the complete filepath to the embed.php file in your gallery2 directory. For example: /home/myusername/public_html/nuke/modules/gallery2/

the 'embedURI' directive is the URL that you would enter to go to the Gallery2 in the embedded mode (within phpNuke). For example: http://www.mycoolsite.com/nuke/modules. ... e=gallery2

the 'relativeG2Path' directive is the path, relative to your root web directory, where your Gallery2 is installed. For example: /nuke/modules/gallery2/

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Wed Jul 13, 2005 6:05 pm
All tests were wrong. Always the same error.
If I change my gallery2.cfg-file to this:

<?
$g2embedparams = array (
'embedphpfile' => 'modules/gallery2',
'embedUri' => 'http://www.iroom.ch/modules.php?name=gallery2',
'relativeG2Path' => 'gallery2',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
);
$g2mainparams = array (
'showSidebar' => 'true',
);
$g2configurationdone = 'true'; ?>


then I get another error:


_G2_ERROR: modules/gallery2/ _NOTWRITABLE



I cannot understand this message - all the things are writable...
Any ideas?

AuthorMessage
Post Title: Re: Gallery2 integration
JoelK
Joined: Jul 13, 2005
Posts: 5

Posted: Wed Jul 13, 2005 6:54 pm
Change the premissions on your gallery2 folder, start with 777 (read, write, execute for all users) and gradually take it down to see what permissions need to be met for the script to execute properly. I believe the only ones that need to be set is 766 (atleast for me).

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Thu Jul 14, 2005 4:39 am
That's the problem - the folder is 777! 'Evil or Very Mad'


I really don't know what to do...
Another time - is there somebody who has Gallery2 with PHP Nuke on Mac OS X?

Thanks for your replies.

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Jul 14, 2005 6:39 am
put a php file in your gallery2 directory and enter the following code into it:
PHP: › <?php phpinfo(); ?>

view the file in your browser and look for the "script path". That entry should be your "embedphpfile" in your Gallery2 configuration.

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Fri Jul 15, 2005 2:21 am
Done. Now it looks like this (the same as in the first test):

<?
$g2embedparams = array (
'embedphpfile' => '/Volumes/ServerWeb/Websites/iroom/PHP-Nuke-7.8/html/modules/gallery2/',
'embedUri' => 'http://www.iroom.ch/modules.php?name=gallery2',
'relativeG2Path' => '/modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
);
$g2mainparams = array (
'showSidebar' => 'true',
);
$g2configurationdone = 'true'; ?>



But i get the same error...


_G2_ERROR: modules/gallery2/ _NOTWRITABLE



Where could the problem be? Is it possible that I have to change something on my php configuration?

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Fri Jul 15, 2005 4:02 pm
you need to chmod your gallery2.cfg file (and the gallery2 directory recursively) to at least 755.

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sat Jul 16, 2005 6:09 pm
What does it mean...?

"you need to chmod your gallery2.cfg file (and the gallery2 directory recursively) to at least 755."

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Jul 18, 2005 3:32 pm
at a command prompt, in your modules directory:
Code: › chmod -R 755 gallery2/

AuthorMessage
Post Title: Re: Gallery2 integration
eldolfis
Joined: Jul 13, 2005
Posts: 1

Posted: Tue Jul 19, 2005 1:44 am
What if I have my gallery 2 installed in a folder diferent from nuke...

lets say

nuke is on

httpdocs/nuke/html/

and my gallery

httpdocs/gallery2/

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Tue Jul 19, 2005 5:32 am
Sorry Dari, it doesn't work!

File and folder are 775 or 777 - same error: _G2_ERROR: modules/gallery2/ _NOTWRITABLE


I would know what you mean with "recursively"?

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jul 19, 2005 4:50 pm
recursively means every file and folder within the gallery2 directory.

AuthorMessage
Post Title: Re: Gallery2 integration
ManMtl
Joined: Jul 22, 2005
Posts: 2

Posted: Fri Jul 22, 2005 2:43 am
I'll join you guys if you don't mind. I went through all the same steps, finally got "_G2_ERROR: modules/gallery2/ _NOTWRITABLE"
I did CHMOD 777 all inside both integtration g2 folder and installed g2 gallery folder (just in case Wink )

On top of this impass I got an extra msg on top of nuke's header :

Warning: main(modules/gallery2/admin/language/lang-russian.php): failed to open stream: No such file or directory in /var/www/html/modules/gallery2/admin/case.php on line 33

Warning: main(): Failed opening 'modules/gallery2/admin/language/lang-russian.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/modules/gallery2/admin/case.php on line 33

Apparently there is a language file missing, but I don't think there is a localised file for integration of g2, so may be you'll tell me how to get rid of these warnings?

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Fri Jul 22, 2005 5:36 am
re: the russian error...there is a russian localization of G2, in the index.php of G2, you'll see an array of languages, simply add:
'russian' => 'ru'
to the end and see if it works.

re: the not writable error, does it say what line is throwing that error?

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sat Jul 23, 2005 2:25 am
It doesn't work. Also when I chmod 777 the "public html" folder...
Is it possible that something is missing?

ManMtl - how do you mean "...inside both integtration g2 folder and installed g2 gallery folder..."? Do you have two folders? Can you post a screenshot?

AuthorMessage
Post Title: Re: Gallery2 integration
ManMtl
Joined: Jul 22, 2005
Posts: 2

Posted: Sun Jul 24, 2005 8:08 am
Yes, masterkey, I have 2 different directories. First I installed G2 into "Gallery" directory in "modules", then once I understood I need to port it, I installed integration in "gallery2" (modules part as default).

Now I think that might be a problem and I began a clean install of G2 into gallery2 directory, then integration into the same dir. Now I still got to the same "_G2_ERROR: modules/gallery2/ _NOTWRITABLE" Very Happy

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Sun Jul 24, 2005 11:31 am
aahh...ManMtl...you need to make sure that your path is <nuke_html>/modules/Gallery instead of "gallery2". the integration package needs to be installed into your gallery2 directory.

AuthorMessage
Post Title: Re: Gallery2 integration
masterkey
Joined: Jul 03, 2005
Posts: 12

Posted: Sun Jul 24, 2005 1:53 pm
I can't find the error...

To install the integration package I have to replace the index.html and two other image files in the gallery2 directory!? Is that correct?

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Mon Jul 25, 2005 6:30 am
you need to move the contents of the :
html/admin folder into your <nuke_root>/admin/ folder.
html/modules/gallery2/ folder into your <nuke_root>/modules/gallery2/ folder
html/images/ folder into your <nuke_root>/images/ folder.

AuthorMessage
Post Title: Re: Gallery2 integration
aster
Joined: Jul 26, 2005
Posts: 2

Posted: Tue Jul 26, 2005 7:48 am
mmh I think I have the same problem....

I installed g2 a while ago and it worked fine.
( http://fkserv.ugent.be/politeia/gallery2/main.php )

so now i downloaded the integration file and followed everything , my .cfg =
Quote: ›
<?php
$g2embedparams = array (
'embedphpfile' => '/home/politeia/public_html/gallery2/',
'embedUri' => 'http://fkserv.ugent.be/politeia/html/modules.php?name=gallery2modules.php?name=gallery2',
'relativeG2Path' => '/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => 'true',
);
$g2configurationdone = 'false';

?>


When i fill all this in my admin panel and i want to "update main settings" , i get this :

Fatal error: Undefined class name 'gallerycoreapi' in /home/politeia/public_html/html/modules/gallery2/admin/index.php on line 406

Do I do everything wrong or am I close to get it to work ...

tia,

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jul 26, 2005 8:05 am
your settings are incorrect. note that the URL you pasted above your config file is lacking the "html" after the "politeia".
your embedphpfile is wrong, as well. gallery 2 should be installed in your modules directory.

you need to double check all your path settings.

AuthorMessage
Post Title: Re: Gallery2 integration
aster
Joined: Jul 26, 2005
Posts: 2

Posted: Tue Jul 26, 2005 8:22 am
but it was installed on his own ...

my old site :
http://fkserv.ugent.be/politeia
new site :
http://fkserv.ugent.be/~politeia/html/

so gallery was there before nuke.... do I have to reinstall gallery but now in nuke ? or can i just move it ?

I thought this release integrated gallery 2 in nuke ?

how should my configfile look like then ?

thx!

AuthorMessage
Post Title: Re: Gallery2 integration
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jul 26, 2005 8:34 am
do something for me, create a php file with the follwoing in it:
PHP: › <?php echo dirname(__FILE__); ?>
and put it in your Gallery2 directory. then view the file through a browser and tell me what it says.

If Gallery2 was there before phpnuke, you must move the installation into your modules folder and re-run the Gallery2 configuration wizard.

AuthorMessage
Post Title: Re: Gallery2 integration
evertbotterweg
Joined: Jul 27, 2005
Posts: 2

Posted: Thu Jul 28, 2005 5:35 pm
i have the same problem an i chmodded everything in /var/www/html/html/modules/gallery2/ to 777 and no go

so i recon if hes problem is solved mine is Smile

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group