Applet upload in embedded Gallery fails
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
The applet upload is supposed to work when Gallery 1.4.4 (latest beta) is embedded in:
postNuke Geeklog I need help with the other CMS systems. If you use Gallery in a CMS that's not yet supported, please PM me a test account on your CMS. I would also very much appreciate a pointer to how that particular CMS handles session cookies.[/] |
|
Desmond
Joined: 2004-07-06
Posts: 19 |
![]() |
I think I have to config something before you can try the 1.4.4 in my phpbb2 embeddment........ tell me what to do |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Really? Can you not just create a user account in phpBB2 for me? |
|
Desmond
Joined: 2004-07-06
Posts: 19 |
![]() |
you are admin now........ |
|
Desmond
Joined: 2004-07-06
Posts: 19 |
![]() |
please tell me if you still need this account. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
that is my gallery embedded inside phpbb2, what kind of priveleges do you need? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Desmond, M.D., thanks for the test accounts! Can you test that adding these lines to util.php, in method drawApplet, at the end of the statement that handles CMS-specific overrides (line 1211 in the latest CVS) enables phpBB2 support for the applets: } else if ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpBB2') { $cookie_name = 'phpbb2mysql_sid'; $cookie_value = $HTTP_COOKIE_VARS[$cookie_name]; If it does, I'll commit the fix before 1.4.4-RC1. (code updated) |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
i don't think it worked completely. It uploads the photo (status bar moves to 100%), it says upload successful in the popup, but then the same error dialog pops up. Quote:
// handle CMS-specific overrides |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
My bad, the code was wrong. I've fixed it in the previous post (remove $_CONF[]). Can you test again? |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
The same thing happened with that change. Quote:
// handle CMS-specific overrides |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
OK, I'll probably have to update the applet. Will you be able to deploy it? |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
I'm not sure what that requires. Do I just have to drop the new jar files in the java directory? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Yep. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
I can do that. Let me know where I can get the file after you finish. Thanks for all your help in this, it is definitely appreciated. |
|
Haplo
![]()
Joined: 2004-03-29
Posts: 82 |
![]() |
has there been any "official" fix for this for v. 1.4.3 pl2 - phpbb ? some of the reason for usig gallery is its great upload aplets...so when not working you get a bit disapointed ;) im not interested in using latest cvs or similar, a small session/cookie fix would be appreciated! |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Haplo, I understand how you would want that. Unfortunately, we only back-port security fix, not general bugs/features. It's too much work and we'd rather release early/release often than spend time maintaining already released version. However, 1.4.4-RC1 should be released today with all the fixes. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
Was the phpbb2 problem fixed in this release? I still get the same error. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
M.D., it wasn't, the last change didn't make the cut. Can you try to modify the code (remove the $_CONF[] in drawApplet)? |
|
doliam
Joined: 2004-06-24
Posts: 7 |
![]() |
same issue with the following code: Quote:
// handle CMS-specific overrides |
|
doliam
Joined: 2004-06-24
Posts: 7 |
![]() |
Well doliam = MD = doliam. I didn't even realize I had 2 names registered. my password to MD must be in my home email, cuz i can't remember it. I guess i had registered a name here at work, anyways... MD and doliam are one in the same. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
OK, now another problem: phpBB2 sets the cookie for the entire domain, not just the right host. I'll make a new build of the applet for you to test. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Actually, this may be a separate problem. Can you try testing with the full URL (www.pgroove.com instead of pgroove.com): http://www.pgroove.com/t_i_p/modules.php?mode=applet&set_albumName=&op=modload&name=gallery&file=index&include=slideshow.php |
|
doliam
Joined: 2004-06-24
Posts: 7 |
![]() |
I get the same problem when adding the www before pgroove.com Do you want me to give you admin access or anything within my gallery? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Yes, please. So far I've been testing using the slideshow, because the cookies were getting set incorrectly anyway, but now that they appear to be set correctly, I have to dig deeper. I created user 'paour'; can you create an album I can upload into and give me write permissions for that album? |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
ok, in the Upload Album (#4), there is an album called paour in there. i made u owner and gave u full permissions. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
M.D., I don't see a 'paour' album inside 'Upload', just 'Will D.' |
|
doliam
Joined: 2004-06-24
Posts: 7 |
![]() |
Try now. I also gave you access to upload directly to the Upload Album if you can't see it. Very strange, I made you owner and gave you full permissions to it. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
did that work for you? I'm begining to think that there might be a problem with the permissions. Maybe I am missing something small. But, I made you owner of the album and gave u every permission inside the album. I guess that is redundant, but i figured better safe than sorry. Anyways, let me know if it's still not working, i can give u the test account I use. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
I've committed G 1.4.4-RC3-b4, which fixes the applets when embedded in phpBB2 (it works with my version of phpBB 2.0.10). |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
Where can I download this from? Is it in the latest CVS release? I download 1.4.5 from Jesse Mullen's download page and it didn't work. But, I am running phpbb2 v2.04, so that might be the problem |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
I've tested with 2.0.10 only. What is the problem on your site? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
And it is supposed to be in 1.4.5 betas since this weekend. |
|
doliam
Joined: 2004-06-24
Posts: 7 |
![]() |
ok. I downloaded the latest release for Friday, maybe it wasn't put in until saturday or sunday. If that doesn't work, i'll upgrade phpbb2. Thanks! |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
I get the same error. User Can Not Add to Album is the fix incorporated in that release of Gallery? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Yep. What's your URL again? Or can you attach the log? |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
click the gallery link up at the top. I'll see if I can dig up some logs. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Damn, you're right, the integration is broken in 1.4.5. I've fixed it in b83, sorry about that. Also remember that cookies are sent incorrectly if the URL is missing the www. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
ok. Should I wait for another release or can i get b83 from somewhere? |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
You can download it from the nightlies tomorrow. |
|
neutcomp
![]()
Joined: 2004-07-28
Posts: 28 |
![]() |
Oke I have the same problem, so I also wanted to update the java applet if there is a bugfix. So thats why I post my message here. Thanxx |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
It still isn't working for me. these are my versions: Gallery URL: I get an error on the form upload now too, I wonder if I have problems in my gallery settings. |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
M.D., try with www.pgroove.com, I think it should work. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
I used the full url and i got a new error msg, screenshot is here: http://www.phatgrooves.org/images/gallery_error.gif I thought cookies only used the domain, ie) pgroove.com and prefixes did not matter? At work we set a login cookie to be .ge.com and it works for *.ge.com. Is the cookie set differently in gallery or phpbb2? Anyways, just curious. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
Error: Server contacted, but Gallery not found at this URL (http://www.pgroove.com/t_i_p/modules.php?op=modload&name=gallery&file=index&include=gallery_remote2.php) |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
M.D., the new error is good news... I think it's due to a Gallery configuration error. Can you upload files using the Form mode when Gallery is embedded in phpBB2? Take a look at the Java log in your browser, you'll see it's probably due to Gallery not finding the file you uploaded, but the session info is correct. Regarding the cookie domain settings and tail matching, PHP doesn't help much, and yes, I should try to do it in Java. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
I can't upload using the Form when the gallery is embedded in phpBB2, here is the error I get: Processing status... Resizing/compressing original image |
|
paour
![]()
Joined: 2002-08-14
Posts: 1479 |
![]() |
Great. That means now you need to go over to the Troubleshooting forum to solve this problem, which is independant of the upload applet and GR. Once it is solved, I'm pretty sure the upload applet will work. Good luck and thanks for sticking with me. |
|
pethoek
Joined: 2004-08-10
Posts: 5 |
![]() |
I'm using PHP-Nuke 7.3 and logged in as an admin. I can't upload any pictures or zip files using the applet since I upgraded from 1.4.3 to 1.4.4 or even 1.4.5-cvs-b96 With the form it's no problem at all. The message is: Upload error: User cannot add to album The JAVA Console gives this messages: debug_album=vijgezel_fotos 32817|INFO |GalComm2 |Upload error: User cannot add to album. Applet stop Does anybody know what to do?? Thanx in advance, Pethoek |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
the people over in the Troubleshooting forum had me download a new copy of modules.php... I am now getting the same, User Can Not Add to Album error as before. |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
any suggestions? |
|
M.D.
Joined: 2004-06-21
Posts: 38 |
![]() |
has anyone gotten the phpbb2 and gallery integration to work? I'm still getting a 'User Can Not Add to Album' error when I try to upload. I guess i'll try to install the latest version of gallery tonight. thanks for any help in advance!! |
|