I keep receiving this error from one of the modules. I've tried changing the settings ona couple of areas to try to determine which one but I guess I am too new to Drupal to figure it out.
I only get this one on the front page. Is it something that I have set wrong or a bug in an add-on module. I've installed most if not all modules testing and evaluating them. Maybe I got too carried away?? LOL
view details
Type error
Date Saturday, October 23, 2004 - 05:48
User Anonymous
Location /drupal-4.5.0/index.php
Message user error: 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 '%s <> '0' ORDER BY %s DESC LIMIT s.daycount, 2' at line 1 query: SELECT s.tid, t.name AS title FROM term_counter s INNER JOIN term_data t ON s.tid = t.tid WHERE %s <> '0' ORDER BY %s DESC LIMIT s.daycount, 2 in E:\ApacheGroup\Apache2\html\drupal-4.5.0\includes\database.mysql.inc on line 125.
Hostname 127.0.0.1
Thanks for the help.
Mike
Comments
Same Error Notice: error in SQL syntax:
All of a sudden, I get an identical error on the front page of my new drupal institution. I'd sure appeciate any guesses. I'll start turning off modules to see if I can find offenders, but sure would appreciate any help, and will post back if I find out the possible problem:
==
user error: 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 '%s <> '0' ORDER BY %s DESC LIMIT s.daycount, 4' at line 1
query: SELECT s.tid, t.name AS title FROM term_counter s INNER JOIN term_data t ON s.tid = t.tid WHERE %s <> '0' ORDER BY %s DESC LIMIT s.daycount, 4 in /home/www/obinc.us/html/drupal/includes/database.mysql.inc on line 125.
user error: 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 '%s <> '0' ORDER BY %s DESC LIMIT s.timestamp, 4' at line 1
query: SELECT s.tid, t.name AS title FROM term_counter s INNER JOIN term_data t ON s.tid = t.tid WHERE %s <> '0' ORDER BY %s DESC LIMIT s.timestamp, 4 in /home/www/obinc.us/html/drupal/includes/database.mysql.inc on line 125.
we maintain the current frontpage.module
Hiya guys,
We maintain the current frontpage.module...can we be of any help?
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
Dunno if you can or not. The
Dunno if you can or not. The same problem just appeared very suddenly on my 4.5.1 installation. Just on the front page I get:
Immediately before I had been having another problem, also of indeterminate origin -- I'd try to go to any page and get a MySQL error, something about too many open connections. Conceivably all this might have happened because my ISP fiddled with the MySQL installation but they aren't saying.
I get the impression the problem must go away because if you do a google search a lot of pages come up that had the problem the last time they were spidered but when I look the problem isn't there any more. Or maybe everybody knows the solution except me.
Any thoughts though on what I should do?
check your aggregator module..
Thats a MYSQL error that's showing...I notice that there's a reference to "aggregater_item" in the error...which sounds like it has something to do with the aggregator module.
Apart from that, there is nothing obvious to suggest otherwise.
Hope that helps
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
I fixed the problem by going
I fixed the problem by going back to an earlier version of the database (I have it backed up automatically 4 times a day).
how did you do the automatic backup?
Hiya HR..
Curious to how you do the automatic backup..is it simple to setup and determine how frequent a backup is made?
Dub
DUBLIN DRUPALLER
___________________________________________________
A drupal user by chance and a dubliner by sheer luck.
Using Drupal to help build Artist & Band web communities.
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
First, I'd like to note that
First, I'd like to note that I was also able to make the problem go away by first deactivating all the aggregator blocks appearing on the front page and then reactivating them. Don't ask me why it worked.
On the auto backups, if you run Drupal on a linux server and you have shell access you can go through the following Rube Goldberg procedure:
1. Run a script that backs it up periodically via cron (a couple of incidents made me paranoid so I run it every 6 hours) and keeps a series of backups:
#!/bin/sh
mv /home/jkalb/db_bak.zip.olderyet /home/jkalb/db_bak.zip.stillolderyet
mv /home/jkalb/db_bak.zip.older /home/jkalb/db_bak.zip.olderyet
mv /home/jkalb/db_bak.zip.old /home/jkalb/db_bak.zip.older
mv /home/jkalb/db_bak.zip /home/jkalb/db_bak.zip.old
mysqldump -u username -ppassword jkalb_db > /home/jkalb/db_bak.sql
zip /home/jkalb/db_bak /home/jkalb/db_bak.sql
rm /home/jkalb/db_bak.sql
2. Have another script on your home computer, if you have linux there, that downloads the latest backup periodically (in my case, once a day) and keeps another series of backups:
#!/bin/sh
mv /home/jkalb/db_bak.zip.olderyet /home/jkalb/db_bak.zip.stillolderyet
mv /home/jkalb/db_bak.zip.older /home/jkalb/db_bak.zip.olderyet
mv /home/jkalb/db_bak.zip.old /home/jkalb/db_bak.zip.older
mv /home/jkalb/db_bak.zip /home/jkalb/db_bak.zip.old
scp jkalb@myhostingprovider.net:/home/jkalb/db_bak.zip /home/jkalb
Then I have still another script that emails the most recent backup to me every few days:
#!/bin/sh
mail -s "backup" jkalb < ~/db_bak.zip
It then gets sorted automatically into a "backup" folder, so I end up with 6-hourly backups for the past day, daily backups for the past 4 days, and 4-daily backups before that (which I of course delete periodically).
I'm sure there are less kludgey ways to do it but this works and I'm not much of a techie. I'm told that in general simply mailing a binary file is likely to lead to a corrupted file but this seems to work, I suppose because the message doesn't get forwarded from machine to machine.
MySQL Automated Back-Up
While this isn't totally on topic.... I do this myself. It's pretty easy using mysqldump and cron on most Unixes. Here's a shell script I use:
backup.conf has your password for the account, as so:
On Linux, I jjust set this up to run under cron, as often as I think I need to. The shell script makes sure that one backup doesn't clobber the previous.
You'd probably want to add another cron script to cull old back-up files, but like they say, that's an exercise for the reader.
Cheers, and a Happy St. Patrick's Day to the Dubliners,
Rob
Torenware Networks
Rob Thorne
Torenware Networks