pnGallery2 refuses to load

MaEu

Joined: 2005-11-07
Posts: 22
Posted: Thu, 2005-11-10 07:49

Hi everybody!

I have installed Gallery2, the standalone installation works perfectly fine. But when I´m trying to integrate Gallery2 into my PostNuke 0.750 installation with the pnGallery2 1.0 Beta module I don´t get it to work. I have done all things according to instructions. I Also disabled the URL Rewrite Module in Gallery2 as I saw someone in another thread recommended. But I still get the message "Failed to load module pnGallery2" when I call the module from postnuke with [pnGallery2] I´ve also tried calling it with this "index.php?module=pnGallery2&func=main" but then I just get a blank page?!

I have PostNuke 0.750, php 5.0.5, MysSQL 4.0.21 and Apache 1.3.31.

Does anyone have a clue?

Regards Mats

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-11-10 12:46

maybe first check if the path to embed.php is correct.

 
MaEu

Joined: 2005-11-07
Posts: 22
Posted: Thu, 2005-11-10 17:31

The path is correct as far as I know. I think you are referring to pnadmin.php in the pnGallery2 directory? Am I wright?

I´m trying to find out from which script the module is called, then I might see where it goes wrong and also what the cause is?

 
MaEu

Joined: 2005-11-07
Posts: 22
Posted: Fri, 2005-11-11 07:33

I have found out that in the file html/index.php the following code is executed.

// added for the module/system seperation [class007]
if (file_exists('modules/' . pnVarPrepForOS($modinfo['directory']) . '/' . pnVarPrepForOS($file) . '.php')) {
include 'modules/' . pnVarPrepForOS($modinfo['directory']) . '/' . pnVarPrepForOS($file) . '.php';
} else {
// Failed to load the module
include ('header.php');
echo "Failed to load module ".$modinfo['name'];
include ('footer.php');
}

Here a file index.php is included for pnGallery2. BUT! If I check the directory /modules/pnGallery2/ there is no such file index.php?!

What do I have to do?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-11 09:47

maybe you've got there an obsolete pn integration. maybe the only pn integration that exists doesn't work at all.

 
MaEu

Joined: 2005-11-07
Posts: 22
Posted: Fri, 2005-11-11 10:33

Hmm, very strange. I wonder why there is a release that doesn´t work at all?
I know that with earlier wersions of Gallery you dan integrate Gallery without needing a special postnuke module. Is that possible with Gallery2?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-11 10:41

in spring 2005, there was some pn <-> g2 movement, an integration was started, it worked somehow but didn't manage to do everything and it might have been full of bugs since it wasn't tested by lots of users. since then, the development of this integration halted and it soon became obsolete.
and we're pretty clear about its state on: http://gallery.menalto.com/forum/g2_integration

justed, another user continued. ah, i see there's a project page:
http://noc.postnuke.com/projects/pngallery2/

latest update / release was on october 14th.
so it might be much better than in spring 2005. i hope justed continues his work. maybe you can send him a PM or contact him on this project page...

 
MaEu

Joined: 2005-11-07
Posts: 22
Posted: Fri, 2005-11-11 15:37

This is the version I installed and this is the version I´ve been describing. I´ve sent him a message through that page. We´ll see if he answers.

Otherwise the only thing I can do to make it work is to downgrade Gallery I guess?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-11 17:40

there's no downgrading from G2 -> G1. or no automated. of course you can take your old backups or manually add g2 albums to g1 again.

 
MaEu

Joined: 2005-11-07
Posts: 22
Posted: Fri, 2005-11-11 18:46

I have no albums yet. :) So I don´t have to think about that, fortunately.