|
View previous topic :: View next topic |
| Author |
Message |
xkorex Newbie


Offline Joined: Jul 23, 2004 Posts: 20
|
Posted: Fri Dec 22, 2006 11:32 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
Woops. Thanks a lot.
I'm going to try it now.
Regards
xkorex's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 4.1.1
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Mon Nov 24, 2008 10:27 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
Hi,
i've got Dragonfly 9.2.1 with functions.inc 9.46 but i recive every day mails like that:
| Quote:: |
On /index.php?name=coppermine&file=displayimage&meta=random&album=32&pid=601&slideshow=5000
While executing query "SELECT pid, filepath, filename, p.title, keywords, url_prefix, filesize, pwidth, pheight, ctime, p.aid, p.aid FROM cms_cpg_pictures AS p INNER JOIN cms_cpg_albums AS a ON (p.aid = a.aid AND visibility IN (0,3) AND a.aid = 32) WHERE approved='YES' GROUP BY p.pid ORDER BY RAND() LIMIT -1"
the following error occured: 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 '-1' at line 1
In: /membri2/distrutti/includes/coppermine/functions.inc on line: 563
Guest information:
User id: 1
Username: Anonimo
Admin: No
IP: 66.249.71.85
Host: crawl-66-249-71-85.googlebot.com |
What may I do? Thank You.
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Mon Nov 24, 2008 11:36 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
You don't have an original 9.46 for sure. If you believe you really have 9.46 please download it again.
As far I can tell you are using a version number equal or lower then 9.21
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Mon Nov 24, 2008 10:43 pm Post subject: Re: SQL Error - functions.inc on line: 563 |
|
I have put "new" functions.inc in my includes/coppermine/ directory, i have deleted files in my cache directory but nothing has changed...
| Quote:: |
On /index.php?name=coppermine&file=displayimage&meta=random&album=22&pid=352&slideshow=5000
While executing query "SELECT pid, filepath, filename, p.title, keywords, url_prefix, filesize, pwidth, pheight, ctime, p.aid, p.aid FROM cms_cpg_pictures AS p INNER JOIN cms_cpg_albums AS a ON (p.aid = a.aid AND visibility IN (0,3) AND a.aid = 22) WHERE approved='YES' GROUP BY p.pid ORDER BY RAND() LIMIT -1"
the following error occured: 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 '-1' at line 1
In: /membri2/distrutti/includes/coppermine/functions.inc on line: 563
Guest information:
User id: 1
Username: Anonimo
Admin: No
IP: 66.249.71.83
Host: crawl-66-249-71-83.googlebot.com |
What i may do?
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Tue Nov 25, 2008 2:43 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
Contact your system administrator and ask them if they are using any PHP accelerator.
If so tell them that the accelerator is failing to stat the new file.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Sun Nov 30, 2008 11:30 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
My problem persist because i have contacted my hosting service but they told me that they aren't use any PHP accelerator.
Any other idea?
Thankyou
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Sun Nov 30, 2008 12:06 pm Post subject: Re: SQL Error - functions.inc on line: 563 |
|
Now i have done oneother control about
www.distrutti.it//inde...eshow=5000
directly with phpmyadmin and i have seen that there isn't any image with
aid=33 and pid=788
this should be the answer of the problem?
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Tue Dec 02, 2008 8:49 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
| NanoCaiordo wrote: |
You don't have an original 9.46 for sure. If you believe you really have 9.46 please download it again.
As far I can tell you are using a version number equal or lower then 9.21 |
And as far i can tell you are using a mix of 9.0.6 and 9.1.x files ... no one single error you reported tell me you using 9.2.x
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Tue Dec 02, 2008 11:46 pm Post subject: Re: SQL Error - functions.inc on line: 563 |
|
Ok,
now i have re-download Dragonfly9.2.1.zip un-compressed it.
Deleted:
/includes/coppermine/*.*
/modules/coppermine/*.*
Pasted from compressed file:
/includes/coppermine/*.*
/modules/coppermine/*.*
and than updated /includes/coppermine/functions.inc to 9.46 version.
Now I'm waiting.
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Wed Dec 03, 2008 12:23 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
DragonflyCMS 9.2.1 is already shipped with includes/coppermine/function.inc v9.46
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Mon Dec 08, 2008 10:38 pm Post subject: Re: SQL Error - functions.inc on line: 563 |
|
I have also now the same 563 problem...
Any suggestion?
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
profago Translator


Offline Joined: Jan 23, 2005 Posts: 38 Location: Italia
|
Posted: Mon Dec 22, 2008 8:26 am Post subject: Re: SQL Error - functions.inc on line: 563 |
|
108 more problems...
profago's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian 4.0 / --- / MySql 5.0.32-Debian_7etch6 / PHP 5.2.0-8+etch11 / 9.2.1
|
|
| Back to top |
|
 |
|
|