Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 120'.

ksorbo

Joined: 2006-02-19
Posts: 2
Posted: Sun, 2006-02-19 21:06

Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 120'.

I found another thread with this subject, but with no solution so I thought I would repost this question.

When I selected the Upload applet I was logged on as user 6: admin, with full priv. Id 6 is guest.

After this error, I am logged out from Gallery and have to log in again.

Also, the upload applet states that ImageMagik is not installed, when in fact when I test it, Gallery2 shows it passes tests and is version 6.0.7

I am using upload applet 1.0.0, Gallery2 core version is 1.0.0.2

Keith

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Thu, 2006-02-23 01:25

if its the exact same error, please follow up in the same thread.

 
ksorbo

Joined: 2006-02-19
Posts: 2
Posted: Thu, 2006-02-23 13:33

That thread is several months old with no resolution.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Thu, 2006-02-23 18:27

When you post there, typically everyone that has posted in it will get an email and one of them may have resolved the problem and never posted back, and your post might get them to come back with a solution.

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
schawel

Joined: 2005-10-17
Posts: 4
Posted: Fri, 2006-02-24 20:52

I've had the same problem

Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 2060'.

I am trying to upload a 3+ MB photo thru remote as well.

http://www.tripinturkey.com - Own property

 
yarivk9
yarivk9's picture

Joined: 2005-11-26
Posts: 12
Posted: Tue, 2006-04-11 21:01

Is this issue resolved? Suddenly I have been getting the same problem...

Gallery version = 2.1-rc-2a core 1.0.34
PHP version = 4.3.11 cgi-fcgi
Webserver = Apache
Database = mysql 4.0.24-max-log, lock.system=flock
Toolkits = SquareThumb, Thumbnail, ImageMagick
Acceleration = none, none
Operating system = Linux linhost212.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
Default theme = floatingmatrix
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1)

 
WebSnail

Joined: 2002-08-15
Posts: 34
Posted: Wed, 2006-04-19 16:38

I'm experiencing the exact same issue and I'd be curious to know if the commonality here is the use of Gallery with an alternate system eg: phpBB2, Phpnuke, etc..

I'm guessing that the wrong User information is being passed but I'm damned if I know why, how or where...

So, if anyone has any input on this please let's have it and we can solve the problem...

 
schawel

Joined: 2005-10-17
Posts: 4
Posted: Wed, 2006-04-19 17:01

Make sure you have access to ur PHP INI file. You must change max_upload to like 10MB. If you have a shared host, i believe u can hack it with your htaccess file.

http://www.canineconfections.com

 
mikjus
mikjus's picture

Joined: 2005-10-14
Posts: 17
Posted: Sun, 2006-04-23 10:55

Same problem but php.ini is allright? Uploading from web browser works? Problem came with gallery 2.1 update i believe?

Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 21039'.

Info:

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Win32) PHP/5.0.4
Database = mysql 4.1.14-nt
Toolkits = Exif, ImageMagick, Thumbnail, ArchiveUpload, Dcraw, Ffmpeg
Operating system = Windows NT PIKKUMYY 5.2 build 3790
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; fi-FI; rv:1.7.12) Gecko/20050919 Firefox/1.0.7

At the samed time i'm having this problem too:

Error (ERROR_MISSING_OBJECT)

* in modules\core\classes\helpers\GalleryItemAttributesHelper_medium.class at line 61 (GalleryCoreApi::error)
* in modules\core\classes\GalleryCoreApi.class at line 1336 (GalleryItemAttributesHelper_medium::fetchViewCounts)
* in modules\core\classes\GalleryTheme.class at line 1299 (GalleryCoreApi::fetchItemViewCounts)
* in themes\matrix\theme.inc at line 75 (GalleryTheme::loadCommonTemplateData)
* in modules\core\classes\GalleryTheme.class at line 918 (MatrixTheme::showAlbumPage)
* in modules\core\classes\GalleryView.class at line 325 (GalleryTheme::loadTemplate)
* in main.php at line 392 (GalleryView::doLoadTemplate)
* in main.php at line 87
* in main.php at line 80

Cant access some of albums. Database corrupted or what? Files are there i checked. Is there anything to do? Had minor server crash but managed to restore some system files and got it back online.

 
microscope
microscope's picture

Joined: 2005-02-15
Posts: 8
Posted: Mon, 2006-04-24 09:13

Hi, having the same problem using Firefox/XP. Don't have that problem using Firefox/Linux. Strange and annoying.

 
martinschm

Joined: 2005-12-29
Posts: 23
Posted: Mon, 2006-04-24 12:32

hi, same problem since update to 2.1.1

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Mon, 2006-04-24 14:11

Are any of you trying to access a g2 that is embedded?

Steve Lineberry

 
microscope
microscope's picture

Joined: 2005-02-15
Posts: 8
Posted: Mon, 2006-04-24 15:04

no, a standalone gallery. This is my config:
Gallery-Version = 2.1.1 Kern 1.1.0.1
PHP-Version = 4.3.3 apache
Webserver = Apache/1.3.28 (Linux/SuSE) mod_ssl/2.8.15 OpenSSL/0.9.7b PHP/4.3.3
Datenbank = mysql 4.0.15, lock.system=flock
Werkzeuge = ArchiveUpload, Exif, NetPBM, Gd, Thumbnail, ImageMagick
Beschleunigung = none, partial/900
Betriebssystem = Linux misc 2.4.21-297-default #1 Sat Jul 23 07:47:39 UTC 2005 i686
Standard-Motiv = matrix
Sprache = de_DE
Browser = Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

 
martinschm

Joined: 2005-12-29
Posts: 23
Posted: Mon, 2006-04-24 23:21

hi,

i installed wpg2 on the same day but when i tried to upload the picture i accessed my gallery over the url it was setup under before. right now my gallery is accesible through my blog but also directly through a url.

cu
martin

 
TomWells

Joined: 2004-06-15
Posts: 7
Posted: Tue, 2006-04-25 17:56

I have the exact same error: "Upload error: Upload failed: 'user id: 5 doesn't have permission:", even down to the "'user id: 5" part.

G2 is integrated with phpBB2.

Is there any resolution to this one yet?

Thanks,

Tom

 
martinschm

Joined: 2005-12-29
Posts: 23
Posted: Tue, 2006-04-25 23:06

hi guys,

i might have found something. in my installation the guest user has the user id 5. u might wanna check if it is the same with ur gallery. i assume that the guest user doesn't have the right to upload pictures or add sub elements (not sure what the correct name of that right in english is- i am running my gallery in german). a workaround would be to give the guest user that right, upload ur pictures and take the right away again. downside would be that a random guest user that would look at ur gallery in that moment could upload pictures as well.

if my assumption is right, the applet is not executed under the user (rights) of the logged in user.

cu
martin

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Wed, 2006-04-26 00:07

Have any of you tried to delete your cookies, relogin and see if that fixes the problem?

Steve Lineberry

 
microscope
microscope's picture

Joined: 2005-02-15
Posts: 8
Posted: Fri, 2006-04-28 06:18

yes, of course. The problem depends on the pc I am using. I have two pcs i am not able to upload photos with and two others working. All have the same browsers, same versions. There must be any circumstance in which a user is logged in but the upload applet runs with the guest account. Although the situation is reproducable on my site I am not able to tell the differences between the pcs it is working from the pcs it is not working at, sorry. I you have anything I can take a deeper look at ...?

 
arndb

Joined: 2005-12-30
Posts: 3
Posted: Sat, 2006-04-29 11:08

i guess, there is some prob with the firebird-browser. I´m getting " 'user id: 5 doesn't have permission: core.addDataItem for item id: 1348'." Every time with firefox 1.5.02 . With IE 6.0.2 the upload is working. (User: "admin", upload-applet, and same pc)

Arnd

 
MrShlee

Joined: 2006-04-30
Posts: 2
Posted: Sun, 2006-04-30 06:49

same problem. User ID 5 is the guest..

Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.4.2 apache
Webserver = Apache
Database = mysql 4.1.18, lock.system=flock
Toolkits = Exif, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = FreeBSD inferno 4.11-RELEASE FreeBSD 4.11-RELEASE #34: Tue F i386
Default theme = matrix
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

 
Eka_Mei

Joined: 2006-01-03
Posts: 132
Posted: Tue, 2006-05-09 19:13

I have report that some of my user is having the same problem. I myself can not duplicate the problem but I have instruct him to delete cookie and relogin. Any solution so far?

 
seq

Joined: 2005-10-18
Posts: 7
Posted: Wed, 2006-05-24 11:44

Well it hit me, too. Same problem. One day it worked with firefox, the next not, so i switched to IE (thanks for the tip). That was yesterday. today, even IE get the error message.

I've got a multi-installation on a linux server with 2.1.1a

 
seenxu

Joined: 2006-04-14
Posts: 1
Posted: Fri, 2006-05-26 06:59

get the same errors on pc, but on linux and mac all work just fine.
any ideas of that?

 
iWiLL

Joined: 2006-05-22
Posts: 23
Posted: Sat, 2006-05-27 00:11

I got the same error today, yesterday everything worked fine.

It affects all my different G2 installations and both browsers (firefox and ie) on my PC, so I think it’s a Java-Runtime problem.
I deleted the temporary java files and the problem was gone.

To delete your temporary java files:
1. open the Sun Java Control Panel
2. General - Temporary Internet Files - Delete Files

[img]http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/images/general-3.gif[/img]

Link: Clearing the Java Runtime Environment (JRE) Cache

 
mltownsend

Joined: 2006-05-30
Posts: 2
Posted: Tue, 2006-05-30 19:07

Okay, I've tried everything here and haven't had any luck with the upload applet. I have a fresh install of Gallery 2. I'm using multisite.

Here is the sys info:
Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.3.4 apache
Webserver = Apache-AdvancedExtranetServer/1.3.29 (Mandrakelinux/1.3.100mdk) PHP/4.3.4
Database = mysql 4.0.18, lock.system=database
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux tech-fix.com 2.6.3-25mdkenterprise #1 SMP Fri Jan 14 02:55:56 MST 2005 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

I tried Firefox and IE with no effect. Uploading using the web browser works great. I even tried Gallery Remote and that worked great. It's just the upload applet that seems to have a problem.

Any fixes yet? This has been a problem it seems for over a year.

 
mltownsend

Joined: 2006-05-30
Posts: 2
Posted: Tue, 2006-05-30 20:30

An update...

I just installed jdk1.5.0_07 and the upload applet appears to be working now. The version that I had previously installed was jdk1.5.0_06.

We'll see how long it stays working.. :)

 
imsandli

Joined: 2006-06-21
Posts: 1
Posted: Wed, 2006-06-21 22:34

same problem here since update to Gallery 2.1.1
java version "1.5.0_06"

is there another fix except the java update?

 
Drinyth

Joined: 2004-07-13
Posts: 8
Posted: Tue, 2006-06-27 07:13

I'm seeing the same problem here. Like the others, it's happening with Firefox and XP.

The setup does work sometimes as I've uploaded pictures with this browser/OS combo before. But I just went to upload more pictures to my album and it gave me the same error that other folks are getting.

Just wanted to report that there is still an issue...

EDIT: My java install says that I'm running the latest version and there are no updates. I deleted my gallery cookie and logged in again and it fixed the issue for now. It appears to be cookie related somehow?

 
Mephista

Joined: 2006-06-27
Posts: 1
Posted: Tue, 2006-06-27 20:16

I'm having the same problem...

Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 19'.

Going to try installing that which mltownsend suggested...

 
kevin360

Joined: 2003-09-06
Posts: 50
Posted: Sat, 2006-07-01 13:21

I'm getting the same error. I'm running jre-1_5_0_07-i586-1 and Firefox 1.5.0.4

Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.4.2 apache2handler
Webserver = Apache
Database = mysql 5.0.21-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, Gd
Acceleration = none, none
Operating system = Linux www 2.4.32 #5 Fri Jun 30 07:26:27 EDT 2006 i686
Default theme = clone_g1_albums
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

EDIT: I tried Drinyth's suggestion of clearing out the cookies and it didn't help on my system.

 
karlovac

Joined: 2003-03-07
Posts: 3
Posted: Sun, 2006-07-02 14:44

I just hit the same problem during the first time I used G2.

iWill's suggestion of clearing Java temporary files (as well as logging out, and then back in) worked for me.

-Antun

 
kevin360

Joined: 2003-09-06
Posts: 50
Posted: Mon, 2006-07-03 11:52
 
Lee Bowser

Joined: 2006-07-05
Posts: 8
Posted: Tue, 2006-08-29 15:19

Nice words Kevin ;) Bumping is the way to go.

A friend of my has the same problem though and also didnt fix it yet.. so maybe someone kan fix it?

 
TroyS

Joined: 2006-06-19
Posts: 2
Posted: Fri, 2006-07-14 01:58

I was having much the same problem. I tried cleaning cache in java to no avail. As a last resort I tried re-installing Gallery version = 2.1.1 core 1.1.0.1

Installation would hange on installation where it was trying to clean the cache under

g2data/cache/derivative I had to manually delete directories 0 through 9 and all of their contents. As soon as I did this the re-installation over the top of my previus continued and everything works fine again.

For some reason when the install program would try remove any of the cache files or folers it was getting a permissions error.

If you try this - please make sure you back up before you do it to protect all your hard work.

 
TroyS

Joined: 2006-06-19
Posts: 2
Posted: Sat, 2006-07-15 18:57

Failure - I reverted to the same problem. I can upload from one computer but not on two others.

 
scooby108

Joined: 2006-07-21
Posts: 1
Posted: Fri, 2006-07-21 22:36

I was having the same problem after upgrading. Here what I did that fixed it for me:

Logged out of Gallery.
Cleared cache and cookies in Firefox.
Closed Firefox.
Deleted all session cookies on server (/tmp/sess_*).
Opened Firefox.
Logged in go Gallery.

Problem solved for me.

 
bluster

Joined: 2005-11-11
Posts: 19
Posted: Tue, 2006-08-01 05:43

I have this problem using Gallery Remote. whats difficult is when i select a bunch of photos to be uploaded this way, all will be fine.
Until this error pops up. (which could be anytime) and if i were to logout and login again via gallery remote, it will work again. but this means, i have to reselect the photos.

Is this a registered bug?

 
awed

Joined: 2006-07-18
Posts: 31
Posted: Wed, 2006-08-02 20:42

OK I logged out of Gallery, cleared the cache and authenticated sessions (and browsing history and form information, but I don't think those did anything to help with this problem) in Firefox. I did not clear the cookies. Then I closed Firefox.

You do this in Tools > Clear Private Data.

Then it worked for me.

Thanks scooby. Must be something with the cache or the sessions.

 
forbearer

Joined: 2006-08-18
Posts: 2
Posted: Fri, 2006-08-18 20:46

I encountered the same problem after using the new Gallery version 2.1.1 with the most recent Gallery remote for some time. I just wanted to confirm that the fix from iWill's Sat, 2006-05-27 00:11 post worked. You don't have to clear private data in Firefox if you don't want to lose that.

1. Make sure you log OUT of your gallery from your browser first (otherwise stale session cache remains)
2. Exit your browser (not sure if this step is strictly necessary)
3. Follow iWill's procedure to delete Temporary Internet Files from the Java Control Panel
4. Restart your browser and log back into your gallery to continue your photo upload

 
lavitto

Joined: 2006-07-25
Posts: 3
Posted: Mon, 2006-08-21 12:34

Hello
I have the same problem, but I can't expect any customer to clear the cache or to delete the temporary internet files.

What can I do to FIX this bug (on server-side)?

Greets lavitto

 
peiqinglong

Joined: 2003-11-17
Posts: 55
Posted: Wed, 2006-08-23 16:31

Hrmmm, I was experiencing this problem a few days ago. I was using FireFox and getting "Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 4590'."

I switched to Safari and it works fine...seems to be something with the cache. Cleared the FireFox cache and works fine for me now.

 
roeland

Joined: 2006-10-03
Posts: 1
Posted: Tue, 2006-10-03 13:54

Does anybody know if this problem will be fixed, or is Gallery 2 dead and should we switch to another gallery?

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-10-04 20:32

We have an open bug about this. It's the best place to check for status updates, but I will try and remember to post here when it is resolved.

http://sourceforge.net/tracker/index.php?func=detail&aid=1564288&group_id=7130&atid=107130

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
rl

Joined: 2006-06-05
Posts: 11
Posted: Sat, 2006-12-09 00:42

For what it is worth. I could not get the upload applet to work on my machine running FireFox. It does work on the same machine running IE7. iWill's solution did not fix it for me.

Rich

 
btrippy

Joined: 2004-06-28
Posts: 17
Posted: Thu, 2006-12-14 17:22

I have a few users with the same problem. I've done a migration from 1.5 to 2.1.2. I know of 2 users who can upload using the applet, and 2 that can't. All can upload via the "From Web Browser"

I'd be happy to help out in any way I can..

Brian

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.1.6 apache2handler
Webserver = Apache/2.0.55 (Ubuntu) PHP/5.1.6
Database = mysql 5.0.24a-Debian_9-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, ImageMagick, NetPBM
Acceleration = none, none
Operating system = Linux ubuntulamp 2.6.17-10-server #2 SMP Fri Oct 13 18:47:26 UTC 2006 i686
Default theme = classic
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

 
Jayh

Joined: 2006-02-21
Posts: 21
Posted: Thu, 2006-12-14 22:54

I never had this problem before until today I installed a new multisite. Several photos were successfully uploaded using applelet, then the rest weren't: "Upload error: Upload failed: 'user id: 5 doesn't have permission: core.addDataItem for item id: 22'." I updated Java Platform, clear temp files, still not working. Finally I logged out/in, then it worked!

Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.3.11 cgi-fcgi
Webserver = Apache
Database = mysql 4.0.27-max-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2007-02-01 05:02

Hi, all. I'm trying to reproduce and fix this bug, but currently I'm unable to reproduce it. If anybody on this thread can still reproduce the problem can you let me know? I'd really like to see all the traffic between your browser and your Gallery2 install so that I can figure out if the applet is sending the wrong authentication information. Thanks!
--------------
Enter Gallery 2 Theme Contest today! $3K in cash prizes!

 
coenvdz

Joined: 2005-04-22
Posts: 2
Posted: Sat, 2007-02-10 15:29

I have the same problem, but only with the upload appled. When I upload any other way it works. I have this problem on a XP machine with both IE and FireFox.
I had the problem several times before. After I get the error I went to the 'from Web Browser' tab and uploaded 1 picture. After the upload I switched back to the 'upload applet' and it works again. But now this don't work anymore.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-02-10 16:34

coenvdz

can you reproduce the problem when using G2.2 RC-1 (or the latest nightly snapshot)?
(don't forget to upgrade your g2 modules (remote, uploadapplet) as well and clear your cookie cache.

thanks

--------------
Enter the Gallery 2 Theme Contest today!

 
forbearer

Joined: 2006-08-18
Posts: 2
Posted: Sat, 2007-02-10 17:07

I've encountered this problem a few times before, and I've done the browser cache clearing method, but it hasn't always worked for me. I realized the fairly obvious step that I may be missing (from the times when it did work for me):

- Log out of Gallery
- (close firefox if you want)
- Log back in
- Try upload again

Hope this helps!

---Here's my sys info:---
Gallery version = 2.1.2 core 1.1.0.2
PHP version = 5.0.4 apache2handler
Webserver = Apache/2.0.54 (Fedora)
Database = mysql 4.1.11, lock.system=flock
Toolkits = ArchiveUpload, Exif, NetPBM, Ffmpeg, ImageMagick, Thumbnail, Gd
Acceleration = none/900, partial/900
Operating system = Linux gandolf.tofudo.com 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2007-02-10 22:51

In order to figure this out, I think I need to see the HTTP traffic between client and server when the problem is happening. I can probably figure this out from a tcpdump or tcpflow trace, if anybody can provide that. Or if you can give me direct (shell) access to your Gallery while the problem is happening I can instrument the Gallery code to see what's going on. If anybody can help out with that, I can probably nail this one down. Thanks!

--------------
Enter Gallery 2 Theme Contest today! $3K in cash prizes!