Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine ⇒ SQL Error - functions.inc on line: 563


SQL Error - functions.inc on line: 563
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Go to page Previous  1, 2, 3
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine

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

Offline Offline
Joined: Jul 23, 2004
Posts: 20

PostPosted: 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
View user's profile Visit poster's website
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: Tue Dec 02, 2008 7:24 am
Post subject: Re: SQL Error - functions.inc on line: 563

The final answer is no...
i have lot of error notification also for existing pictures as

www.distrutti.it/index...33&pid=609

www.distrutti.it/index...13&pid=170

www.distrutti.it/index...16&pid=325

and so on...
Any suggestion?
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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
profago
Translator
Translator

Offline Offline
Joined: Jan 23, 2005
Posts: 38
Location: Italia
PostPosted: 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
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine
Page 3 of 3
All times are GMT
Go to page Previous  1, 2, 3



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

閱讀詳細內容...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy