Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 12:38 AM EDT


 Forum Index > Support > Plugin Support New Topic Post Reply
 odd News Block issue
   
ScurvyDawg
 07/11/03 09:51PM (Read 1967 times)  
+++++
Full Member
embarrassed

Status: offline


Registered: 11/06/02
Posts: 523
I upgraded to 1.3.8. RC1 and now I get this error in the news block.

I want to understand what went wrong here before I upgrade any further.

The error is

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 \'where provider=\'Cool sites\'\' at line 1

Please any assistance is most welcome.

 
Profile Email Website
 Quote
Dirk
 07/12/03 04:16AM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Standard reply: Open your error.log file and look for the corresponding entry there. It will have the complete SQL request that caused the problem. This will usually make it a lot easier to pin down the problem ...

bye, Dirk

 
Profile Email Website
 Quote
ScurvyDawg
 07/12/03 01:12PM  
+++++
Full Member
confused

Status: offline


Registered: 11/06/02
Posts: 523
Ok ... I am sorry I got the standard answer Dirk. Sorry for being such a newb sometimes. Would you share your insights about these error as I seem to have many of these and I can not see that they relate to the news plugin at all but the menu. My error log is filled with gobs of these.

Sat Jul 12 12:59:47 2003 - SELECT * FROM mnu_index WHERE ((perm_anon >= 3) OR (perm_members >= 2) OR ((group_id = 2) AND (perm_group >= 2)) OR ((group_id = 4) AND (perm_group >= 2)) OR ((group_id = 7) AND (perm_group >= 2)) OR ((group_id = 11) AND (perm_group >= 2)) OR ((group_id = 5) AND (perm_group >= 2)) OR ((group_id = 13) AND (perm_group >= 2)) OR ((group_id = 12) AND (perm_group >= 2)) OR ((group_id = 52) AND (perm_group >= 2)) OR ((group_id = 51) AND (perm_group >= 2)) OR ((group_id = 10) AND (perm_group >= 2)) OR ((group_id = 8) AND (perm_group >= 2)) OR ((group_id = 1) AND (perm_group >= 2)) OR ((group_id = 14) AND (perm_group >= 2)) OR ((group_id = 3) AND (perm_group >= 2)) OR ((group_id = 6) AND (perm_group >= 2)) OR ((group_id = 9) AND (perm_group >= 2)) OR ((group_id = 50) AND (perm_group >= 2)) OR ((group_id = 53) AND (perm_group >= 2)) OR ((owner_id = 7) AND (perm_owner >= 2))) AND (lang = \'english\') ORDER BY m_pos ASC

Sat Jul 12 12:59:47 2003 - nrows = 16 language = english



 
Profile Email Website
 Quote
Dirk
 07/12/03 01:36PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
That doesn\'t look like an error at all. More like some debug output that the author of the menu plugin forgot to deactivate ...

And, as you noticed, it doesn\'t have anything to do with the above-mentioned error. The error message in your first post includes the words \"Cool sites\" - try searching your error.log for these words to find the actual error message.

bye, Dirk

 
Profile Email Website
 Quote
ScurvyDawg
 07/12/03 01:55PM  
+++++
Full Member
confused

Status: offline


Registered: 11/06/02
Posts: 523
Here it is I found the offending line. Any insights? Has anyone else had this issue I do not know what I missed but I must have missed something.

Tue Jul 1 00:32:02 2003 - 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 \'where provider=\'Cool sites\'\' at line 1 SQL in question: select newsid, rdfurl, rdfupdated, provider, category from where provider=\'Cool sites\'

 
Profile Email Website
 Quote
Dirk
 07/12/03 02:22PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
Quote by ScurvyDawg:SQL in question: select newsid, rdfurl, rdfupdated, provider, category from where provider=\'Cool sites\'


I\'m not familiar with that block, but the SQL request is missing the table name between the \"from\" and the \"where\".

bye, Dirk

 
Profile Email Website
 Quote
squatty
 07/12/03 02:38PM  
+++++
Full Member

Status: offline


Registered: 01/21/02
Posts: 269
Did you recently do an upgrade? If so, make sure the lib-database.php file has the table entry for the news block.

In a world without walls and fences, who needs Windows and Gates?
 
Profile Email Website
 Quote
ScurvyDawg
 07/12/03 02:43PM  
+++++
Full Member
hopeful

Status: offline


Registered: 11/06/02
Posts: 523
Aha that must be it.

THanks Squatty. I will see if I can find the table entry within the documentation I have.

Thanks to you both for your time.

Thank you.

 
Profile Email Website
 Quote
Content generated in: 1.64 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content