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  

[SOLVED] Blank page, nothing writing to G2 db
Goto page Previous  1, 2, 3, 4, 5, 6, 7  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
dari

Site Admin
Site Admin


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

PostPosted: Thu Nov 10, 2005 12:23 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

yes it matters. for the integration, it MUST be in the modules directory.
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db  

Back to top
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 1:58 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

Okay, I was a good boy and moved it to modules/gallery2/ proper. And it works!

Well, sort of...

While the embedded G2 shows up, the icons are blank and any links result in a 404. http://knuttila.net/modules.php?name=gallery2

Stand-alone works fine http://knuttila.net/modules/gallery2/main.php

I even ran through a G2 install procedure to make sure it was happy. What am I missing here? Crying or Very sad
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 Nov 10, 2005 2:20 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

post your gallery2.cfg file.
Back to top
Offline View user's profile Send private message Visit poster's website
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 2:22 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote


<?php
$g2embedparams = array (
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/modules/gallery2/',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'true';
?>
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 Nov 10, 2005 2:23 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

try:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => 'www/modules.php?name=gallery2',
'relativeG2Path' => 'www/modules/gallery2/',
'loginRedirect' => 'www/modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => 'www/modules/gallery2/',
'cookiepath' => '/www/',
Back to top
Offline View user's profile Send private message Visit poster's website
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 2:33 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

That didn't work, but this

'embedUri' => 'http://knuttila.net/modules.php?name=gallery2',

did... a little bit.

Now I have the navigation, but there are no images
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 Nov 10, 2005 2:33 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

when you access your phpnuke page, what URL do you use?
Back to top
Offline View user's profile Send private message Visit poster's website
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 2:38 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

dari wrote: › when you access your phpnuke page, what URL do you use?


If I'm understanding your question correctly, that would be http://knuttila.net
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 Nov 10, 2005 2:45 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

are you positive about this:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/' ?

EDIT: Try this:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => modules.php?name=gallery2',
'relativeG2Path' => 'www/modules/gallery2/',
'loginRedirect' => modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => 'www/modules/gallery2/',
'cookiepath' => '/www/',

Basically, tweak the settings and tinker with/without the 'www' portion.
Back to top
Offline View user's profile Send private message Visit poster's website
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 2:55 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

dari wrote: › are you positive about this:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/' ?

Absolutely.

Question: Does your embed code create a new embed.php? Mine is dated 8/22/2005, if that means anyting.

Quote: ›
EDIT: Try this:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => modules.php?name=gallery2',
'relativeG2Path' => 'www/modules/gallery2/',
'loginRedirect' => modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => 'www/modules/gallery2/',
'cookiepath' => '/www/',

Basically, tweak the settings and tinker with/without the 'www' portion.


I have. I'm curious about why you suggest the "www/" prepend? The doc root of my website is ~/public_html/www/ . If i plunk another "www" in the root path, there is no such dir. We should either go back to public_html/www/ or /usr/home/jorn/public_html/www/. No? What am I missing here? Smile
Back to top
Offline View user's profile Send private message
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 3:10 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

It looks like the urls for the images are getting "/modules/gallery2/" put in there twice.

For example,

http://knuttila.net/modules/gallery2/ma ... alNumber=7


turns into

http://knuttila.net/modules/gallery2/mo ... alNumber=7


The latter, of course, does exist. I think this might be a crucial clue in this scooby-doo mystery...
Back to top
Offline View user's profile Send private message
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 3:22 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

It's running now. Ready for the -=why=-? Here comes the science...

My gallery2.cfg looks like this:



'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '',
'cookiepath' => '',


Here's where the crazy part comes in. It looked like the relative path seemed to think "Oh, relative to the G2 install, not the web root." Logically, I tried setting the 'relativeG2Path' to '' (nothing). But, then nothing worked. So, I set it as above and put a symlink in the G2 modules dir back to the root of the G2 install itself, like this


ln -s ~/public_html/www/modules/gallery2/ gallery2


This is The Wrong Thing To Do, but it works for now.



Rolling Eyes
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 Nov 10, 2005 3:23 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

actually, i get the image when i click on both of those links Smile

DOH..just saw it, you've got:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/modules/gallery2/',
'cookiepath' => '/',


your embedPath should just be / , not /modules/gallery2/.
Back to top
Offline View user's profile Send private message Visit poster's website
jorn

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 11

PostPosted: Thu Nov 10, 2005 3:54 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

dari wrote: › actually, i get the image when i click on both of those links Smile


That's because, by the time you had clicked on the 2nd (bad) link, I had put in my crazy looping symlink. Wink

dari wrote: › DOH..just saw it, you've got:
'embedphpfile' => '/usr/home/jorn/public_html/www/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/modules/gallery2/',
'cookiepath' => '/',


your embedPath should just be / , not /modules/gallery2/.


hey, I think that works, too! (Coulda swore I tried that one a few times.)

Thanks!
Back to top
Offline View user's profile Send private message
DangerGirl

Beginner
Beginner


Joined: Nov 12, 2005
Posts: 2

PostPosted: Tue Nov 15, 2005 6:22 pm    Post subject: Re: [SOLVED] Blank page, nothing writing to G2 db Reply with quote

I did a multisite gallery install, with the codebase being installed on http://www.savebrookus.darkcoalition.com/gallery/. I installed the multisite on http://www.savebrookus.darkcoalition.co ... gallery2/.

First, I hope that this could be done with gallery2 integration. Second, I get a blank page when I go to Export Users to Gallery2. Also, I have to manually edit the cfg file because the file doesn't get updated through the admin panel, though I have permissions set to 666 and tried 777 as well. Edit: Seems like sometimes it does and sometimes it doesn't - maybe that is my FTP jinxing me.

Any help is appreciated.

'embedphpfile' => '/home/myuser/public_html/savebrookus/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/',
'cookiepath' => '/',
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 Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2, 3, 4, 5, 6, 7  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 ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

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