Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Critical error (Facebook plugin or not?)  (Read 6288 times)

0 Members and 1 Guest are viewing this topic.

kamikaze cow

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 12
Critical error (Facebook plugin or not?)
« on: January 25, 2011, 09:52:23 pm »

I tried to save an album description but I was given an error message:

While executing query 'SELECT filepath, filename, url_prefix FROM gal15_pictures WHERE pid = ' in plugins/facebook/codebase.php on line 52
mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

My first idea was that the plugin was wrong, but I remember, I added pictures to this album in two parts because the process was aborted near the 170th picture. After the abortion I ran the batch process again from the 170th pictures (fortunately Coppermine knew what picture was the last image). Is it possible that the engine made the resized images (eg. thumbnail) but didn't write the picture data to the database?

Then I tried to open images and I was given the same error message with this url:
http://www.salsafuerte.hu/gallery/displayimage.php?album=81&pos=177
(I will switch off the plugin in the morning because of visitors)

Thank you for any answers.
Logged

TeknoSounds

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 83
    • TeknoSounds
Re: Critical error (Facebook plugin or not?)
« Reply #1 on: January 26, 2011, 07:11:05 am »

Verified.  Same issue here:
Code: [Select]
While executing query 'SELECT filepath, filename, url_prefix FROM cpg132_pictures WHERE pid = ' in plugins/facebook/codebase.php on line 47

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Posting this over in the Facebook Share thread.

s2sinner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Critical error (Facebook plugin or not?)
« Reply #2 on: January 26, 2011, 09:29:15 am »

I have this problem also....When I Unistall the facebook plugin all is back to normal.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Critical error (Facebook plugin or not?)
« Reply #3 on: January 26, 2011, 04:33:19 pm »

What is your plugin version?
Logged

s2sinner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Critical error (Facebook plugin or not?)
« Reply #4 on: January 27, 2011, 10:50:23 pm »

Hi sorry for the delay...

Is 1.6
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Critical error (Facebook plugin or not?)
« Reply #5 on: January 28, 2011, 03:31:23 am »

If you are using the latest version of this plugin (v.1.6), then it means that DISPLAYIMAGE_PHP is also defined somewhere else than in displayimage.php.
I'll see the use of DISPLAYIMAGE_PHP in CPG's core files. If it's used somewhere in addition to displayimage.php, I'll try to make that file's load detection more reliable.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Critical error (Facebook plugin or not?)
« Reply #6 on: January 28, 2011, 02:44:41 pm »

I'll see the use of DISPLAYIMAGE_PHP in CPG's core files. If it's used somewhere in addition to displayimage.php, I'll try to make that file's load detection more reliable.
That constant is also defined in dbinput.php. Please try and report if replacing

Code: [Select]
if (defined('DISPLAYIMAGE_PHP')) { //is displayimage.php loaded?in codebase.php, at line 43, by
Code: [Select]
if (defined('DISPLAYIMAGE_PHP') && ($superCage->get->keyExists('pid') == TRUE)) { //is displayimage.php loaded?fixes the error message issue?
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: Critical error (Facebook plugin or not?)
« Reply #7 on: January 31, 2011, 07:13:39 pm »

This issue has been fixed in v.1.7 of the FB sharer plugin.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.