Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 11-12-2004, 01:25 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Error message

I'm getting the error message "Error: You have an error in your SQL syntax near '; ' at line 13" after I fill in the "set password" form, before setting up the database. I've tried to tweak the code, but I'm pretty clueless. Any ideas?
Reply With Quote
  #2  
Old 11-12-2004, 02:28 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
It's a fault in the syntax which reacts to older mysql installs.
For now you need to setup the table yourself via phpmyadmin or the likes.
I am really sorry about that, I am working to fix that problem as it is the number one issue when installing.

// punk
__________________
icq: 66760929
Reply With Quote
  #3  
Old 11-13-2004, 06:52 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
I am getting that error as well. Could you post the SQL query to run to set up the tables manually? It would be a big help to me

Thanks
Reply With Quote
  #4  
Old 11-13-2004, 08:44 PM
Connie
Guest
 
Posts: n/a
hi, I extracted the SQL fromt he installscript:

Code:
CREATE TABLE pixelpost_config (
  admin varchar(20) NOT NULL default '',
  password varchar(90) NOT NULL default '',
  template varchar(150) NOT NULL default '',
  imagepath varchar(150) NOT NULL default '',
  siteurl varchar(100) NOT NULL default '',
  sitetitle varchar(100) NOT NULL default '',
  calendar varchar(30) NOT NULL default '',
  thumbwidth int(11) NOT NULL,
  thumbheight int(11) NOT NULL,
  compression int(11) NOT NULL
) TYPE=MyISAM;

CREATE TABLE pixelpost_categories (
  id int(11) NOT NULL auto_increment,
  name varchar(100) NOT NULL default '',
  KEY id (id)
) TYPE=MyISAM;

CREATE TABLE pixelpost_pixelpost (
  id int(11) NOT NULL auto_increment,
  datetime datetime NOT NULL default '0000-00-00 00:00:00',
  headline varchar(150) NOT NULL default '',
  body text NOT NULL,
  image text NOT NULL,
  category varchar(150) NOT NULL default '',
  KEY id (id)
) TYPE=MyISAM;


CREATE TABLE pixelpost_comments (
  id int(11) NOT NULL auto_increment,
  parent_id int(11) NOT NULL default '0',
  datetime datetime NOT NULL default '0000-00-00 00:00:00',
  ip varchar(20) NOT NULL default '',
  message text NOT NULL,
  name varchar(20) NOT NULL default '',
  url varchar(40) NOT NULL default '',
  KEY id (id)
) TYPE=MyISAM;

CREATE TABLE pixelpost_visitors (
  id int(11) NOT NULL auto_increment,
  datetime datetime NOT NULL default '0000-00-00 00:00:00',
  host varchar(100) NOT NULL default '',
  referer varchar(255) NOT NULL default '',
  ua varchar(255) NOT NULL default '',
  ip varchar(255) NOT NULL default '',
  ruri varchar(150) NOT NULL default '',
  PRIMARY KEY  (id)
) TYPE=MyISAM;
I just run it to test it and all tables were created

hope that helps,
Connie
Reply With Quote
  #5  
Old 11-13-2004, 09:58 PM
Rick Offline
forum loafer
 
Join Date: Nov 2004
Posts: 14
Thanks a lot for your time Connie
Reply With Quote
  #6  
Old 11-14-2004, 07:51 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
You also need to populate the pixelpost_config table, insert a row with relevant features. Bare in mind the password must be base64 encoded so leave that alone and login with a blank password.

I can give more help tomorrow on this

// punk
__________________
icq: 66760929
Reply With Quote
  #7  
Old 11-14-2004, 08:23 PM
Rick Offline
forum loafer
 
Join Date: Nov 2004
Posts: 14
I did remove the password from the database table and I can login , but it won't upload any images, and I have check that the permissions are correct
Reply With Quote
  #8  
Old 11-15-2004, 05:44 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Error when installing

You have an error in your SQL syntax near '; ' at line 13
Reply With Quote
  #9  
Old 11-15-2004, 06:48 AM
jmwicks Offline
forum loafer
 
Join Date: Nov 2004
Posts: 1
The install.php code can be modified to get around this error by removing the ending ";" character in all of the mysql query strings. This will enable it to work (I think) on all versions of mysql. Example from line 76:
Code:
CREATE TABLE pixelpost_config (
  admin varchar(20) NOT NULL default '',
  password varchar(90) NOT NULL default '',
  template varchar(150) NOT NULL default '',
  imagepath varchar(150) NOT NULL default '',
  siteurl varchar(100) NOT NULL default '',
  sitetitle varchar(100) NOT NULL default '',
  calendar varchar(30) NOT NULL default '',
  thumbwidth int(11) NOT NULL,
  thumbheight int(11) NOT NULL,
  compression int(11) NOT NULL
) TYPE=MyISAM; <-- remove the ;
fixed version:
Code:
CREATE TABLE pixelpost_config (
  admin varchar(20) NOT NULL default '',
  password varchar(90) NOT NULL default '',
  template varchar(150) NOT NULL default '',
  imagepath varchar(150) NOT NULL default '',
  siteurl varchar(100) NOT NULL default '',
  sitetitle varchar(100) NOT NULL default '',
  calendar varchar(30) NOT NULL default '',
  thumbwidth int(11) NOT NULL,
  thumbheight int(11) NOT NULL,
  compression int(11) NOT NULL
) TYPE=MyISAM
Reply With Quote
  #10  
Old 11-15-2004, 06:50 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Thanks jmwicks, I did a few checks a couple of days ago and find out that was the trouble. Next version should install better on old mysql installs.

// punk
__________________
icq: 66760929
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:31 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs