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  

Gallery2 integration
Goto page 1, 2, 3  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
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Sun Jul 03, 2005 10:53 pm    Post subject: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Gallery2 integration  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Tue Jul 05, 2005 6:46 am    Post subject: Re: Gallery2 integration Reply with quote

please post the settings in your embed.php file.
Back to top
Offline View user's profile Send private message Visit poster's website
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Sun Jul 10, 2005 8:16 am    Post subject: Re: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Sun Jul 10, 2005 8:20 am    Post subject: Re: Gallery2 integration Reply with quote

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
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: Mon Jul 11, 2005 8:12 am    Post subject: Re: Gallery2 integration Reply with quote

try 'relativeG2Path' => '/modules/gallery2/'

and make the full filepath the FULL filepath, ie:
/home/myuser/public_html/modules/gallery2/
Back to top
Offline View user's profile Send private message Visit poster's website
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Mon Jul 11, 2005 5:57 pm    Post subject: Re: Gallery2 integration Reply with quote

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
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: Tue Jul 12, 2005 7:53 am    Post subject: Re: Gallery2 integration Reply with quote

if "html" is just a symlink, use public_html instead.
Back to top
Offline View user's profile Send private message Visit poster's website
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Wed Jul 13, 2005 2:51 am    Post subject: Re: Gallery2 integration Reply with quote

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
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 Jul 13, 2005 6:37 am    Post subject: Re: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message Visit poster's website
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Wed Jul 13, 2005 6:05 pm    Post subject: Re: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message
JoelK

Beginner
Beginner


Joined: Jul 13, 2005
Posts: 5

PostPosted: Wed Jul 13, 2005 6:54 pm    Post subject: Re: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Thu Jul 14, 2005 4:39 am    Post subject: Re: Gallery2 integration Reply with quote

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.
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: Thu Jul 14, 2005 6:39 am    Post subject: Re: Gallery2 integration Reply with quote

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
Offline View user's profile Send private message Visit poster's website
masterkey

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 12

PostPosted: Fri Jul 15, 2005 2:21 am    Post subject: Re: Gallery2 integration Reply with quote

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
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: Fri Jul 15, 2005 4:02 pm    Post subject: Re: Gallery2 integration Reply with quote

you need to chmod your gallery2.cfg file (and the gallery2 directory recursively) to at least 755.
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, 3  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