coppermine-gallery.com/forum

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 JUpload by etienne_sf => Topic started by: LSD on November 25, 2009, 01:00:39 AM

Title: After JUpload I get: There was an error while processing a database query
Post by: LSD on November 25, 2009, 01:00:39 AM
Hi Etienne,

Not sure if this is related to JUpload although I only get this error when using JUpload

So after Jupload uploads, and the confirmation screen comes up, when I click ok, I get this error:


There was an error while processing a database query.

With debug enabled I get:

While executing query "SELECT p.*,a.category FROM cpg_pictures as p INNER JOIN cpg_albums as a ON a.aid=p.aid WHERE  p.aid = -1 and p.owner_id = 0  ORDER BY p.ctime LIMIT -1, 25" on 0

mySQL error:


Also it seems to logout while doing that query.

I have full debug info if required:

If not related can you point me into the right direction please: I use Coppermine Photo Gallery 1.4.25 (stable) + SMF SMF 1.1.10: Bridged.


Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on November 25, 2009, 05:36:29 PM
Hi,

  Yes I need the full debug, for analysis. At least, I need the MySql error...

A question, as you talked about being logged out: was this upload a big one (lots of pictures, or long upload) ?


Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on November 26, 2009, 11:31:49 PM
Hey i've tried 1 pic to -20 pic same effect.

Full Debug:
USER:
------------------
Array
(
    [ID] => 799b531cafa6f52068856c7b84378122
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on November 27, 2009, 12:52:07 PM
Hi,

  The debug output I need is the JUpload one.

Please read this page for details: http://forum.coppermine-gallery.net/index.php/topic,53168.0.html (http://forum.coppermine-gallery.net/index.php/topic,53168.0.html)
(search for 'How to get the debug output ?')

Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on December 07, 2009, 03:36:37 AM
Hey Etienne,

the full debug message doesn't fit in here, was a specific part you were after in the message?
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on December 07, 2009, 12:07:00 PM
hi,

  You can't attach it as a text file ?


If it's the case, I'll PM you my mail, so that you send it to me this way.

Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on December 08, 2009, 03:07:13 AM
here it is, cheers
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on December 08, 2009, 10:37:24 AM
Hi,

 This one is a success. Does it mean that the problem is solved ?

Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on December 10, 2009, 12:08:13 AM
Hi,

Nope not done, when i enable the debug, JUpload doesn't got through the step to review uploaded pics. So that's why it's probably works.

But without debug on it goes all the way till it brakes.
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on December 10, 2009, 09:31:48 AM
Hi,


Quote from: LSD on December 10, 2009, 12:08:13 AM
But without debug on it goes all the way till it brakes.

  Hum, won't be easy, if I can't know what's happening... :-\

Quote from: LSD on November 25, 2009, 01:00:39 AM
While executing query "SELECT p.*,a.category FROM cpg_pictures as p INNER JOIN cpg_albums as a ON a.aid=p.aid WHERE  p.aid = -1 and p.owner_id = 0  ORDER BY p.ctime LIMIT -1, 25" on 0

This query is processed when displaying the uploaded pictures. So, I guess, pictures are uploaded correctly, but you can't update their properties.

1- Right ?

You say it seems to be deconnected:
2- Are you sure ? It's very strange, as other queries are executed before this one !  And it's confirmed by what you pasted, here above ... if the message posted on  26-11-2009, 22:31:49 is based on a upload that didn't work. (can you confirm this upload did not work).

Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on December 10, 2009, 01:17:32 PM
Hey,

Upload works just the properties page after doesn't display and it LOGs OUT.

The pictures are still there, although I have to relogin after upload and manually go to Properties page.
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: etienne_sf on December 11, 2009, 09:27:52 AM
Hum, hum,

1) Do you know the MySql error that occurs ?

2) Is there any specific parameter on the URL, that could be lost ?
(for instance ... a session ID)

3) Can you check that the domain name in the URL is the same on the upload page, and then on the 'edit uploaded picture page'. If not exactly the same, some cookies may be lost, which makes you unrecognized from the server.

4) If all these are wrong, can you give an access (at least upload right with JUpload, to begin with) on your system ?
I'll then send you a PM, with my mail.

Etienne
Title: Re: After JUpload I get: There was an error while processing a database query
Post by: LSD on December 14, 2009, 01:28:53 AM
Quote from: etienne_sf on December 11, 2009, 09:27:52 AM
Hum, hum,



2) Is there any specific parameter on the URL, that could be lost ?
(for instance ... a session ID)

3) Can you check that the domain name in the URL is the same on the upload page, and then on the 'edit uploaded picture page'. If not exactly the same, some cookies may be lost, which makes you unrecognized from the server.

4) If all these are wrong, can you give an access (at least upload right with JUpload, to begin with) on your system ?
I'll then send you a PM, with my mail.

Etienne

Hi Etienne number 3 was different in gallery, so after I made forum and Gallery come off the same URL all started working correctly.

Thank you HEAPS as always wicked help