Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
mysql error, can someone help? 
Posted: 01 October 2007 05:32 PM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  2006-01-07

Recently, my web host upgraded to MySQL to 5.0.27 from 4.0 series. Since then i’m unable to edit or add events to the events calendar. I get an error message like this:

MySQL Error: 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 ‘repeat,t_stamp,year,month,day,show_time,title,description) values (’’,’70969935’ at line 1
Query: insert into pm_events

I’m very unfaniliar with all this scripting mumbo-jumbo. Is there anyone who would be able to help me fix this problem? I love pmachine pro and would hate to have to give it up.

Thanks!

Profile
 
 
Posted: 06 November 2007 12:46 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  1
Joined  2004-02-04

Hey AnnMath,

This is because your version of MySQL was probably updated from V4 to V5.

“repeat”, which is used in the insert is now a reserved word. You cannot use it as a field name.

What you have to do is go to /pm/cp/events.cp.php and search for repeat, until you find the line that is the insert. It will look like your error message query.

Just put back ticks -"`" around the repeat, save the file, upload it to the same place and overwrite the existing file and you should be set.  On my keyboard, the back tick is uderneath the tilda - “~” repeat should now look like - `repeat`

At least it just worked for me.

Good luck,

Lyman

Profile
 
 
Posted: 06 November 2007 09:55 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  2
Joined  2006-01-07

Thanks so much—i’ll give that a try!!

Profile
 
 
Posted: 18 August 2008 10:38 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  2
Joined  2008-08-18

I just ran into this on our site <a href="http://www.shoobedoo.com">http://www.shoobedoo.com</a>.  Thanks for this resource!

Profile
 
 
Posted: 18 August 2008 01:17 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  2
Joined  2008-08-18

Sorry - I screwed up the link

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 60703 Total Logged-in Users: 0
Total Topics: 73142 Total Anonymous Users: 0
Total Replies: 394491 Total Guests: 40
Total Posts: 467633    
Members ( View Memberlist )
Active Members: