Embedding in phpBB 2.0.9?
AlpineZone
Joined: 2004-01-21
Posts: 69 |
Posted: Tue, 2004-07-13 16:08 |
phpBB 2.0.9 was just released. I haven't had any luck embedding my Gallery into it. Has anyone else encountered any problems? |
|
Posts: 34
It's not working.
I've just upgraded my 2.0.8 installation to 2.0.9 and the Gallery installation has stopped working.
It looked as though the filename wasn't being passed through to modules.php correctly, so I tried hardcoding it and it just took me to the Gallery installation without the embedding.
A problem with sessions maybe? I think that's one of the things that has changed in the new release.
John
Posts: 69
I saw the same thing, John. I'm glad I'm not the only one...
Posts: 34
I've been doing a bit of poking around.
It seems that one of the updates is associated with the register_globals setting for php. The updates done to common.php are the culprits:
and
I'm a relative newcomer to php so I don't really understand the purpose of this update, but it is clear that it is clearing out the http vars when common.php is included in modules.php
Any suggestions for getting round this problem?
Does it need a a different "version" of common.php for modules.php or can there be some sort of switch in common.php that doesn't clear the vars if it is being included from modules.php?
Thanks,
John
Posts: 2322
I just downloaded 2.0.9, and I'll be investigating a fix. If possible, this will make it into 1.4.4, since maintaining embedding is very important. If it's not, we may release a patch sometime after 1.4.4.
Posts: 29
I have exactly the same problem. And indeed the "common.php" seems to be the problem. I just replaced the new version (1.74.2.12) with the old version (1.74.2.10) and my embedded gallery works again.
Of course not the nicest method, but until some better PHP programmer than me finds a fix, this works just fine for me :P
Posts: 34
As a crude fix, I commented out the line:
unset($GLOBALS[$var_name]);
but this, of course, completely bypasses the functionality of the mod.
Signe,
Thanks for looking at this. I look forward to getting a working embedded 1.4.4
John
Posts: 6818
Hello,
i made a modified modules.php
Download it from: http://www.jems.de/archive/1.4.5/modules.php.gz
Tell me, if this works.
Regards,
Jens
Posts: 34
It is better. I can now see the albums correctly embedded, but I get an error when I try to view individual pictures:
John
Posts: 34
Sorted.
I included 'id' in your array declaration.
Just curious (and this is my lack of php knowledge coming out), but why does it not seem to need 'full' and 'set_albumName' declared as well?
John
Posts: 69
Is this at all related?
http://www.phpbb.com/phpBB/viewtopic.php?t=210139
Posts: 34
Only in the sense that it is this code that is causing the problem for embedded galleries. The "fix" does nothing to solve the issue with an embedded Gallery though (I tried).
I'm afraid I don't know eough about php to suggest the reason for the modification in the first place.
John
Posts: 6818
Hi,
i had gone a little deeper. My solution is kinda shit.
I will investigate in a better solution.
Sorry and regards,
Jens
Posts: 6818
I updated the file.
Can you try http://www.jems.de/archive/1.4.5/modules.php.gz
again ?
Jens
Posts: 34
I would, but the link seems to be dead.
john
Posts: 6818
thanks !
fixed.
Posts: 34
The updated file works.
Thank you.
John
Posts: 3
Hi,
I would like that file too. Could you please make it available again?
Thanks
-cl0ne
Posts: 3
I too would like a copy of that file if possible. I have used the comment out a line for now but the file is probably the better option.
Thanks
Denise
Posts: 69
phpBB 2.0.10 and Gallery 1.4.4-RC3 are fully compatible now.
Posts: 3
Hi
That's odd I was getting the following error:
So I followed the suggestions above and applied:
This has fixed my error. Should I uncomment it and find a different way of solving my initial error please?
BlossomPink
Posts: 5
I am usinf phpbb2.0.10 and cannot get the embedded gallery to work either...
Will there be a patch soon?
Posts: 4
Where do I get RC3?
All I see at the SF download page is 1.4.4
Posts: 2322
1.4.4 is newer than 1.4.4-RC3.
Posts: 4
ok thx
Although I'm still having the upload problem with phpbb2
My thread was posted in the trouble shooting forum. Should probably be in this forum
Feel free to move it if you wish
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=19260
Posts: 2322
I've located the upload issue. Download this modules.php and try again.
Posts: 34
New modules.php file works for me.
John
Posts: 5
I am using phpbb 2.0.10 and gallery 1.4.4 and the embeeding does not work.
My forum folder is mtw and I installery in mtw/gallery
In the gallery config I chose phpbb2
http://www.mortystwistedworld.com/mtw/gallery/
That was the result I got.
Can I get a little help here...
Posts: 2322
You need to read the instructions in the contrib/phpBB2 folder.
Posts: 14
Can you please make this file available again?
I upgraded phpBB from 2.0.8 to 2.0.10 and now when I try to enter my gallery I get the following:
Warning: Failed opening './modules//.php' for inclusion (include_path='./m2f/includes/pear/:.:/usr/share/pear') in /var/www/ewerx/data/forums/modules.php on line 55
Posts: 14
Okay so I did the "hack" mentioned in this thread, where I comment out the unset(...) in common.php. This got rid of that error I mentioned above and let me enter the gallery, but now upload doesn't work ("User cannot add to this album")...
I assume I still need the updated version of modules.php to fix this? Can someone please post it?
Posts: 69
Check the CVS
Posts: 14
CVS wasn't working but I found one of the 1.4.5-dev versions from the URLs posted before in this thread. After I replaced the modules.php from that one it was working again. Thanks.
Posts: 15
I know this is an old thread, but I'm having trouble with this.
I applied the patches by hand from CVS and added the modules.php file from there (the patch wouldn't apply with patch). I think I've got the patches in, but it still doesn't work. I'm using phpBB2.0.10 and Gallery 1.4.4:
http://forums.donniebarnes.com
http://gallery.donniebarnes.com
As you can see, the forums work and the Gallery works. But when you click Gallery from the forum page, you get nothing but white. No idea how to debug from there.
--Donnie
Posts: 15
From the error log:
[client 216.166.211.66] PHP Warning: main(./modules//.php): failed to open stream: No such file or directory in /home/djb/forums/modules.php on line 59, referer: http://forums.donniebarnes.com/index.php
[client 216.166.211.66] PHP Warning: main(): Failed opening './modules//.php' for inclusion (include_path='.:/usr/share/pear') in /home/djb/forums/modules.php on line 59, referer: http://forums.donniebarnes.com/index.php
Not sure where the ./modules//.php part is coming from, exactly...hmmph.
--Donnie
Posts: 2322
djb_rh, 1.4.4-pl3 is completely compatible with phpBB 2.0.10, so there is absolutely nothing that you should need from CVS to install.
Posts: 15
Hmm, I'm confused. The patches from CVS I'm talking about apply to phpBB2, not Gallery. I see now that Gallery has an embedding config option for phpBB2, which I just enabled. But the real trick is I want phpBB2 logins to work with Gallery. Seems like I'm gonna need to do more than just tell Gallery to embed in phpBB2, and I don't see any config option in phpBB2.
Obviously I'm missing something here. Like I'm expecting too much or something.
--Donnie
Posts: 15
Oh, and I'm still getting the errors I posted above and no embedded gallery. I've also tried commenting out the "unset GLOBALS" line in common.php to no avail.
--Donnie
Posts: 15
Okay, never got it to work. What I did do was just hack modules.php to make the call directly to my gallery page instead of using the $ variables. Grotesque hack, but it works and I don't currently have any plans for any *other* modules, so this should work fine. Still seems wrong, but for whatever reason those variables just weren't getting passed into modules.php. *shrug*
--Donnie