Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 12:42 am EST

Geeklog Forums

MySQL error with blocks, no error without blocks


Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
After trying to installing a php block i got this error:

do 15 sep 11:00:07 2005 - 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 'LIMIT 0,' at line 1. SQL in question: SELECT lid,url,title FROM wsp_links WHERE category = '' ORDER BY LIMIT 0,


It was the GL Links block from Squatty.com which lists the link categories in a block.

This did not work out very well...I deleted the code from lib-custom again, disabled and deleted the new block with PHPMyAdmin and still got the error after logging in.

I set my privileges to 'no block's with PHPMyAdmin and now i am able to log in, but I would like to see the blocks again, if I switch them on I stll get the error...help!
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sounds like that block's code is still executed. At least the SQL request you quoted isn't one used in Geeklog. Double-check your lib-custom.php

bye, Dirk
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I double checked my lib-custom.php, and it is OK, I uploaded a backup from the file.

But I just found a (very lucky) way to solve it: I made a second root account, logged in with another browser with that second root account, disabled the Root and Block Admin privileges from the original Root user, enabled the blocks for the original Root user, enabled the Root and Block Admin privileges again and it's OK...

Must be my lucky day I guess...
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

All times are EST. The time is now 12:42 am.

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