[SOLVED] Upload Applet And Embedded G2

valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-07 18:37

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?

 
mabiuso

Joined: 2005-03-08
Posts: 1
Posted: Tue, 2005-03-08 13:55

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:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-03-08 14:03

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.

 
plop1
plop1's picture

Joined: 2004-04-28
Posts: 16
Posted: Tue, 2005-05-24 19:36

Really would like the 2nd issue fixed.. any new on the priority?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-24 19:42

it will be fixed soon.

 
plop1
plop1's picture

Joined: 2004-04-28
Posts: 16
Posted: Tue, 2005-05-24 19:49

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-05-24 19:52

very interesting thanks for the hint.

 
plop1
plop1's picture

Joined: 2004-04-28
Posts: 16
Posted: Wed, 2005-05-25 22:24

change 1. is also needed to SlideShowApplet.inc

Quote:
Code:
$SlideshowApplet['g2BaseUrl'] = $urlGenerator->getCurrentUrlDir(true);

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-27 08:03
 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-06-19 12:59

@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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 13:37

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.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-06-19 19:36

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 19:51

current.gallery2.zip or current.gallery2.tar.gz

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-06-19 19:57

do i have to install the whole gallery2 again? or is it enough to replace the "module/uploadapplet"?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 20:18

read README.html, you can upgrade g2.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Mon, 2005-06-20 09:04

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 09:23

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?

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Mon, 2005-06-20 09:37

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.. :(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 09:42
Quote:
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.

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?

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Mon, 2005-06-20 09:54

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...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 10:18

in step 3, you should get:

Quote:
Upgrading the Gallery Core Module

Your Gallery Core Module is up to date!
Currently installed 0.9.25
Continue to Step 4»

is this not the case?

did you try
yourgalleryurl/lib/tools/test/
and hit the FluchCache and FlushTemplates link?

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Mon, 2005-06-20 10:30

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...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 10:37

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.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Mon, 2005-06-20 10:43

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...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-06-20 11:09

umm, that's great. but you need to post a link to this file to this forum! how else should i diagnose this problem?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-06-20 16:42

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.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Thu, 2005-06-23 22:02

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..

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-07-10 10:54

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-10 11:11

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

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-07-10 11:14

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.. :-(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-10 11:24

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.

 
jimmy_boi

Joined: 2005-04-05
Posts: 50
Posted: Sun, 2005-07-10 11:55

@valiant: u r a genius..thanks u so much..it works now. ;)