Gallery in phpBB 2.0.10

syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Wed, 2004-07-28 00:45

I have phpBB 2.0.10 & G 1.4.4 RC3, yet.. I can add images when I directly access the Gallery.. but not when I'm submitting within phpBB.
It simply says "No images to upload!"
I've checked my tmp_dir, .htaccess, pretty much everything checks out that i've hunted for.

Any thoughts on this?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Wed, 2004-07-28 01:08

I can't verify this at all... I just installed a new copy of Gallery 1.4.4 and phpBB 2.0.10 and everything works perfectly.

Make sure you apply the patches from the /gallery/contrib/phpBB2 directory.

 
syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Wed, 2004-07-28 09:20

thanks I'll double check.
I'm completely baffled.
I should retry netpbm.

 
syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Wed, 2004-07-28 10:00

Well..
I simply can't figure it out.

I just tried netpbm/imagemagick.. debug didn't bring up anything either.
Did a rerun through the contrib/phpBB2 folder, everything's kosher there.

Any other suggestions/ideas?

 
syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Wed, 2004-07-28 19:33

Anyone? :/ I'll post more info if anything additional will help me amend this, I really need to get this working :(

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Thu, 2004-07-29 15:35

Getting the same problem - phpBB2 2.0.10 and Gallery 1.4.4rc3
If I'm logged in as a phpbb user, even though I own the album, I cannot upload pictures (I was using the form submission method). It's ok if I'm logged in as the Gallery admin and go straight to the gallery installation without using phpbb.

John

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Thu, 2004-07-29 15:47

Hmmm.... I've been having a bit of a play with usernames.
My username list in phbBB for authorised Gallery users is different from the user list that Gallery (on its own) has. This is what I would expect, but it means that the when I check the permissions via phpbb they are different from when I use Gallery directly. This is particularly true of the album owner. When I change the owner in Gallery, in changes the phpbb version to "anonymous".

Is this the reason phpbb users cannot upload to the gallery?

John

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Thu, 2004-07-29 16:53

If you change the permissions in standalone mode, you're definitely going to have issues with your phpBB2 users being able to modify things. (e.g. they won't be able to at all)

In standalone mode, Gallery has no idea who your phpBB2 users are, so there's no way it can preserve settings using what it things are invalid userids. Since the Gallery userids don't correspond to phpBB2 userids, when you integrate, it's going to think that they're either 'nobody' or 'anonymous'...

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Thu, 2004-07-29 20:44

OK, that makes sense.
So, what of the issue of not being able to upload as a phpbb "user" but ok when direct to Gallery?

John

 
fuzzymonk

Joined: 2004-07-29
Posts: 3
Posted: Thu, 2004-07-29 21:19

I am having the exact same problem. I even did a complete fresh install of phpBB 2.0.10 and Gallery v1.4.4-RC3, no luck.

I turned on the debugging and php messages in gallery, but it dosn't bother to print any message besides "No images to upload!"

Any ideas?

 
fuzzymonk

Joined: 2004-07-29
Posts: 3
Posted: Thu, 2004-07-29 22:06

It is beginning to look like it is a problem with the modules.php file we added to phpBB's directory. When I try an form or url upload I jsut get the no images error, but when I tried to use the gallery remote am able to upload (if I look in my tmp dir there are files) , but when the status window tries to close I get an error

Error: Server contacted, but Gallery not found at this URL (http://myhost/phpBB2/modules.php? set_albumName=aubatido&op=modload&name=gallery &file=index&include=gallery_remote2.php)

[btw, I added spaces to break up the line]

If I browse directly to that page I can get it (well, I get the error message from that page saying that I shouldn't browse to it directly, but I still got it)

 
syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Fri, 2004-07-30 03:46

Well, good to see I wasn't the only one daunted by this.
Somehow Alpinezone has managed to get his 2.0.10 and 1.4.4 working just fine, I'm totally baffled.
I tried a full fresh install, no luck.. I tried a number of things and no prevail.

Fortunately we've restructured our art community a little, and detached Gallery to stand alone for now. So i'm actually using two different gallery systems for the solution of our new layout coming. (right now my site is a mess because of this lol, I should've left the update alone)

Cheers to anyone who has more info on this, i'm still poking around, if I find something I'll post.

Best,
J

 
jko

Joined: 2004-04-22
Posts: 34
Posted: Fri, 2004-07-30 08:25

Just realised. This is probably related to a another problem I had recently:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=18196

Gallery remote has a problem when creating new, integrated albums. It's the same issue. GR creates users/owners/permissions based on the Gallery user table, not the phpBB user list. In effect, with phpbb integration you can only reliably perform admin functions through the phpbb integration and not using GR.

Does this also mean that there are "issues" with using the applet to upload to phpbb integrated albums?

John

 
fuzzymonk

Joined: 2004-07-29
Posts: 3
Posted: Fri, 2004-07-30 14:09

Well, I rolled back to an older version of phpBB, 2.0.8 to be exact, and everythign is fine. However, with the debug mode turned on I get these fun warnings in gallery 1.4.4, which dont occur in 1.4.3

[
Notice: Undefined index: record_online_users in /_path_/phpBB2/includes/page_header.php on line 353

Warning: Cannot modify header information - headers already sent by (output started at /_path_/phpBB2/includes/page_header.php:353) in /_path_/phpBB2/includes/page_header.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at /_path_/phpBB2/includes/page_header.php:353) in /_path_/phpBB2/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /_path_/phpBB2/includes/page_header.php:353) in /_path_/phpBB2/includes/page_header.php on line 478

Hrm, fun stuff. At least it uploads pics now.

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Fri, 2004-07-30 14:24
syntheticFlesh wrote:
Somehow Alpinezone has managed to get his 2.0.10 and 1.4.4 working just fine, I'm totally baffled.

Not true. I'm having the same problem with the "No images uploaded!" error. Any other thoughts?

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Fri, 2004-07-30 15:27

I just confirmed that uploads work fine from a phpBB 2.0.8-embedded Gallery. Still no luck uploading to the phpBB 2.0.10/Gallery though. In both instances, I'm using the final release of Gallery 1.4.4. Help!

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-30 16:56

Is register_globals enabled or disabled in your PHP installation?

 
syntheticFlesh
syntheticFlesh's picture

Joined: 2003-01-06
Posts: 13
Posted: Fri, 2004-07-30 20:48

Ah, my bad.. I thought you were getting it to work properly. :/
That was the impression I got when we had talked.
Sorry mate.

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Sat, 2004-07-31 01:07
signe wrote:
Is register_globals enabled or disabled in your PHP installation?

Dunno. I don't think anything changed on my server's PHP installation. I believe the problem started since upgrading from phpBB 2.0.8...

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2004-07-31 01:31

You may not have, but phpBB did... starting with 2.0.9 they made significant changes to how they operate when register_globals is enabled.

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Sat, 2004-07-31 03:01
signe wrote:
You may not have, but phpBB did... starting with 2.0.9 they made significant changes to how they operate when register_globals is enabled.

So....how can I tell? What, specifically, am I looking for? (Sorry, not a PHP expert by any means...)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sat, 2004-07-31 03:22

The easiest way is to view the phpinfo file in /gallery/setup/phpinfo.php and look for 'register_globals'

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2004-07-31 09:21

Hi,

jko: 2004-07-20 Pierre-Luc Paour <paour@users.sourceforge.net> 1.4.4-RC3-cvs-b4

* Fix: phpBB2 integration for the upload applet now works.

I also noticed that the files classes/phpbb/User.php and UserDB.php use shorttags.

But i tested on my phpBB 2.0.10 with Gallery 1.4.4 and the upload works fine.

Regards,

Jens

 
Checkmate
Checkmate's picture

Joined: 2004-02-24
Posts: 29
Posted: Sun, 2004-08-01 15:37

I'm having exactly the same problems. I can't upload images from phpBB. This started after upgrading Gallery to 1.4.4.

First I upgraded phpBB from 2.0.8 to 2.0.10 and the only way to get Gallery (1.4.3) working was replacing the common.php of phpBB with an older version. This worked fine for me and uploading images worked. Yesterday I upgraded Gallery as well, to version 1.4.4. I switched to the new common.php and Gallery seemed to work fine embedded in phphBB, until I wanted to upload some photos... :(

Please help.... my register_globals is turned on and I have PHP 4.2.2 installed.

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Mon, 2004-08-09 00:58
Checkmate wrote:
I'm having exactly the same problems. I can't upload images from phpBB. This started after upgrading Gallery to 1.4.4.

There is a fixed modules.php in this thread:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=18473&start=15

Yay! :D