quoting myself, october 2004...
Quote:
Noticed that the upload applet doesn't work in embedded mode.
It loads the applet, but the upload applet doesn't find a Gallery protocol implementation at the target url.
And the cancel button of the applet doesn't work and it shows "uploading m of n", whereas m and n are not replaced with numbers.
in modules/uploadapplet/ItemAddUploadApplet.inc
i changed
$ItemAddUploadApplet['g2BaseUrl'] = $urlGenerator->getCurrentUrlDir();
to
$ItemAddUploadApplet['g2BaseUrl'] = $urlGenerator->getCurrentUrlDir(true);
This improves the situation a little. Now, I don't get any message like "no implementation of the protocol found" at xaraya..., i.e. this part works now correct, i suppose.
But if i try to add images, i get errors in the java console and nothing and the images don't get actually added.
Who's in charge of the uploadapplet? And what might be wrong?
Posts: 1
I keep getting the same error
Error: Server contacted, but Gallery not found at this URL ( http://www.questar.it/gallery/gallery_remote2.php )
And of course gallery_remote2.php is NOT there.
I tried with beta 1 and with CVS (both running on IIS6).
I also tried with Gallery remote for windows.
No chance seing it working
:cry:
Posts: 32509
mabiuso, IMO this is not related to this topic. Your problem is about Upload Applet + G2, this topic is about Embedded G2 (G2 in xaraya, ...) + Upload Applet.
for your problem, see:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=120731#120731
and
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=120575#120575
-> this is a known problem, and there's no fix at the moment.
Posts: 16
Really would like the 2nd issue fixed.. any new on the priority?
Posts: 32509
it will be fixed soon.
Posts: 16
actually I've found a temp workaround.. within config.php
setting embed to false seems to cure the gallery not found issue.
$gallery->setConfig('mode.embed.only', false);
plop
Posts: 32509
very interesting thanks for the hint.
Posts: 16
change 1. is also needed to SlideShowApplet.inc
Posts: 32509
problem solved, see:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=142480#142480
Posts: 50
@valiant:
--> mambo + g2 beta 2
i'm having the same problem with the applet as u did...
can u tell me exactly how u solved it? is their a patch for this bug?
thanks
Posts: 32509
you should upgrade to the current nightly snapshot of G2 from http://galleryupdates.jpmullan.com and then it should (mostly) work.
there's a new Gallery applets bug involved, but it should work then.
Posts: 50
thank you for your post valiant..
but which file should i download now..i'm little confused..the "Nightly Gallery1 Builds" (daily/current.gallery.tar.gz 6962K) isnt this for gallery1?
i guess i have to download this.."Gallery2" (G2/current.gallery2.zip 10990K)..am i right?
Posts: 32509
current.gallery2.zip or current.gallery2.tar.gz
Posts: 50
do i have to install the whole gallery2 again? or is it enough to replace the "module/uploadapplet"?
Posts: 32509
read README.html, you can upgrade g2.
Posts: 50
hi valiant
i did what u told me yesterday..
it seems like i upgraded sucessfully...but when i click @ "go to my gallery" (step 6: finished).. it links me back to the upgrade frontside..strange?!
what am i doing wrong?
Posts: 32509
jimmy_boi, once your problem is solved, i'll split this off from this thread.
this has nothing to do with the embedded / applets problem:
don't know why something like this should happen.
could you create a text file, with the following contents
<?php phpinfo(); ?>
and rename the file to phpinfo.php and put it in your gallery2 folder.
please post a link to this file here.
and another thing: could you open g2data/versions.dat with a text editor? what does it say, version 0.9.25 ?
and in the upgrader, in the core upgrade step, what does it say for installed version / new version?
Posts: 50
versions.dat:
********
0.9.25
2.0-beta-3+
********
but i get this warning message by step 2
step 2: system check
******
Gallery file integrity
Warning
+ Missing files (3)
Note: You're running Gallery from CVS, so recently removed files may appear here. It might be safe to ignore these.
******
step 3: Upgrade core
******
Upgraded Gallery Core Module successfully.
We've successfully upgraded the Gallery Core Module.
Reminder: Now check the permissions on config.php and make sure it is not globally writeable.
Recheck config.php
Continue to Step 4»
Step 6:
*******
Finished!
Congratulations! Your Gallery 2 Beta upgrade is complete! To upgrade any of your other Gallery 2 modules you must use the Site Administrator interface.
Go to my Gallery!
*******
i really dont know whats wrong..
Posts: 32509
click on the + sign and reupload the missing files!! as long as you get a warning, you shouldn't start the upgrade. i hope the problem is solved once the warning disappears, but it could well be that this caused another problem or that there is yet another problem.
or are you actually using cvs and not nightly snapshots?
Posts: 50
System Checks
************
PHP Version Success
FILE Directive Success
Safe Mode Success
exec() allowed Success
set_time_limit() allowed Success
Memory limit (32Mb) Success
File uploads allowed Success
Maximum upload size (30Mb) Success
Maximum POST size (32Mb) Success
Gallery file integrity Success
************
Continue to Step 3»
although everything seems to be ok...i get the same problem...after clicking @ "go to my gallery" the main page of the upgrade side appears...
Posts: 32509
in step 3, you should get:
is this not the case?
did you try
yourgalleryurl/lib/tools/test/
and hit the FluchCache and FlushTemplates link?
Posts: 50
no i'm getting an other message.. :o
Step 3:
*******
Upgraded Gallery Core Module successfully.
We've successfully upgraded the Gallery Core Module.
Reminder: Now check the permissions on config.php and make sure it is not globally writeable.
Recheck config.php
********
Continue to Step 4»
i hit the flushcache and flushtemplates link...and i also rerun the upgrade..but no success...
Posts: 32509
what about the phpinfo file? could you follow the instructions from my previous post to create a phpinfo file?
i'm wondering if you use some kind of php accelerator / cache.
Posts: 50
yep i created this file and inserted it to the gallery2 mainfolder...as u told me earlier..
hmm..i have no idea how to use a php accelerator / cache...
Posts: 32509
umm, that's great. but you need to post a link to this file to this forum! how else should i diagnose this problem?
Posts: 8601
also try turning on buffered debug output in config.php and then access main.php of your site.. look at the bottom of the debug output to find out why it redirects to the upgrader.
Posts: 50
hello guys
sorry for the late reply..i had no time to write back had so much other thing to do...
watever..in the mean time i reinstalled the whole gallery...since i was not passion enough to find the real problem...
...after reinstalling the whole g2 beta3 works excellent..and the uploadapplet is working as well...
right now i am customizing my gallery page...there i have so many small questions to ask..but i guess i'm going to open some new threads...
thanks a lot for ur help..i really appreciate..
Posts: 50
hi
me again.. :D ..having problems with uploading pics...dont know why..last time it worked very well...
anyway i'm getting this error message..
***********
Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 7'.
***********
does anyone know why this happens?
Posts: 32509
it works for me in Firefox.
see this bug, that's why you'll have problems in internet explorer:
http://sourceforge.net/tracker/index.php?func=detail&aid=1231227&group_id=7130&atid=107130
Posts: 50
well..i'm using firefox too..and it still doesnt work!!! ..as i said..it worked great feew weeks back...but now..it doesnt work anymore..
Posts: 32509
what was the G2 version where it worked?
what is your current G2 version?
please empty all your GALLERYSID cookies for this domain in all your browsers and try again.
Posts: 50
@valiant: u r a genius..thanks u so much..it works now. ;)