| Author |
Message |
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Sun Jul 03, 2005 10:53 pm Post subject: Gallery2 integration |
|
|
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. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Gallery2 integration |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 05, 2005 6:46 am Post subject: Re: Gallery2 integration |
|
|
| please post the settings in your embed.php file. |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Sun Jul 10, 2005 8:16 am Post subject: Re: Gallery2 integration |
|
|
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 |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Sun Jul 10, 2005 8:20 am Post subject: Re: Gallery2 integration |
|
|
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');
?> |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 11, 2005 8:12 am Post subject: Re: Gallery2 integration |
|
|
try 'relativeG2Path' => '/modules/gallery2/'
and make the full filepath the FULL filepath, ie:
/home/myuser/public_html/modules/gallery2/ |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Mon Jul 11, 2005 5:57 pm Post subject: Re: Gallery2 integration |
|
|
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. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 12, 2005 7:53 am Post subject: Re: Gallery2 integration |
|
|
| if "html" is just a symlink, use public_html instead. |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Wed Jul 13, 2005 2:51 am Post subject: Re: Gallery2 integration |
|
|
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)? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Jul 13, 2005 6:37 am Post subject: Re: Gallery2 integration |
|
|
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/ |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Wed Jul 13, 2005 6:05 pm Post subject: Re: Gallery2 integration |
|
|
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? |
|
| Back to top |
|
|
JoelK
Beginner


Joined: Jul 13, 2005 Posts: 5
|
Posted: Wed Jul 13, 2005 6:54 pm Post subject: Re: Gallery2 integration |
|
|
| 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). |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Thu Jul 14, 2005 4:39 am Post subject: Re: Gallery2 integration |
|
|
That's the problem - the folder is 777! ' '
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. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Jul 14, 2005 6:39 am Post subject: Re: Gallery2 integration |
|
|
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. |
|
| Back to top |
|
|
masterkey
Beginner


Joined: Jul 03, 2005 Posts: 12
|
Posted: Fri Jul 15, 2005 2:21 am Post subject: Re: Gallery2 integration |
|
|
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? |
|
| Back to top |
|
|
dari
Site Admin


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