Announcement

#1 2017-05-18 22:37:39

mrcolj
Member
2015-05-22
20

SQL syntax error in functions_mysqli.inc.php after upgrade to 2.9

Hello/Hi/Greetings,

(Here your message)

Piwigo version: 2.9
PHP version: 4.6.6
MySQL version: 5.6.3
Piwigo URL: http://www.colinandbethany.com/photos/


I just upgraded to 2.9, upgraded my plugins, deactivated the one that wasn't compatible, activated the others, and after a few minutes (still into the tour), the admin pages started giving me this error:



Warning:  [mysql error 1064] 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
'12789,12854,12816,12845,12815,12844,12792,12857,9441,9442,9443,9444,9445)
    AN' at line 5

SELECT
    DISTINCT(category_id) AS id
  FROM db5k_image_category AS ic
    JOIN db5k_images AS i ON i.id = ic.image_id
  WHERE ic.image_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,1 in /home/username/public_html/photos/include/dblayer/functions_mysqli.inc.php on line 845


Fatal error: Call to a member function fetch_assoc() on boolean in /home/username/public_html/photos/include/dblayer/functions_mysqli.inc.php on line 893


The publicly facing pages still seem to work (unless that's just a cache that's still yet to bite me...)

Thank you.  Love your product.

Offline

 

#2 2017-05-18 22:54:07

mrcolj
Member
2015-05-22
20

Re: SQL syntax error in functions_mysqli.inc.php after upgrade to 2.9

UPDATE: I notice now that when I go to http://www.colinandbethany.com/photos/admin.php it redirects to http://www.colinandbethany.com/photos/a … -checksum.  I'm not sure if that's the page I was on when it broke, or if that's the broken page.

UPDATE2: Yes, it's doing it on the public pages too.  (So despite my obfuscations above, they can see my database name and hosting-username.)

Last edited by mrcolj (2017-05-18 23:03:03)

Offline

 

#3 2017-05-19 10:48:01

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: SQL syntax error in functions_mysqli.inc.php after upgrade to 2.9

Problem fixed in the upcoming version 2.9.1, see details on [Github] Piwigo issue #663

For now, go in your database manager (phpmyadmin for example) and deactivate plugin Take a Tour:

Code:

update db5k_plugins set state='inactive' where id='TakeATour';

Offline

 

#4 2017-05-19 18:38:18

mrcolj
Member
2015-05-22
20

Re: SQL syntax error in functions_mysqli.inc.php after upgrade to 2.9

Thank you.  Did the trick!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact