Error on installing. Error on installing.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Error on installing.

Started by tobyc, October 02, 2005, 02:32:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tobyc

PHP Version :  5.0.4
MySQL Version : 5-04 Beta
OS: Windows XP SP2

When installing coppermine 1.4 on the above platform I get the following error message, I pressume it has something to do with the part in red any ideas?:

mySQL Error: Invalid default value for 'mtime' on query '

CREATE TABLE cpg140_pictures ( pid int(11) NOT NULL auto_increment, aid int(11) NOT NULL default '0', filepath varchar(255) NOT NULL default '', filename varchar(255) NOT NULL default '', filesize int(11) NOT NULL default '0', total_filesize int(11) NOT NULL default '0', pwidth smallint(6) NOT NULL default '0', pheight smallint(6) NOT NULL default '0', hits int(10) NOT NULL default '0', mtime datetime NULL default '', ctime int(11) NOT NULL default '0', owner_id int(11) NOT NULL default '0', owner_name varchar(40) NOT NULL default '', pic_rating int(11) NOT NULL default '0', votes int(11) NOT NULL default '0', title varchar(255) NOT NULL default '', caption text NOT NULL, keywords varchar(255) NOT NULL default '', approved enum('YES','NO') NOT NULL default 'NO', galleryicon int(11) NOT NULL default '0', user1 varchar(255) NOT NULL default '', user2 varchar(255) NOT NULL default '', user3 varchar(255) NOT NULL default '', user4 varchar(255) NOT NULL default '', url_prefix tinyint(4) NOT NULL default '0', randpos int(11) NOT NULL default '0', pic_raw_ip tinytext, pic_hdr_ip tinytext, lasthit_ip tinytext, PRIMARY KEY (pid), KEY owner_id (owner_id), KEY pic_hits (hits), KEY pic_rate (pic_rating), KEY aid_approved (aid,approved), KEY randpos (randpos), KEY pic_aid (aid), position INT(11) NOT NULL default '0', FULLTEXT KEY search (title,caption,keywords,filename) ) TYPE=MyISAM'

kegobeer

There is no support for the beta version.  There are no known problems when installing 1.4.x, so I don't think this is a valid bug report.

If you want support, please use the stable (1.3.5) version.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

tobyc

I would say its a valid bug, downgraded mysql to 4.1 and it works fine...

artistsinhawaii

Quote from: tobyc on October 03, 2005, 11:19:29 AM
I would say its a valid bug, downgraded mysql to 4.1 and it works fine...

Ah, but a bug with which? Beta Mysql? or Beta Cpg1.4.x?

I think it was Confusius who said, "Mo' beta to avoid judgin' beta on a beta."

Sounds more like backward compatibiity issues with mysql5.x, maybe a register_long_arrays = On type error?  <shrug>  Seems to be a lot of that going on even with 1.3.x.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

DJMaze

I thought there was a rule as well to only report bugs on the latest beta, MySQL is at version 5.0.13 :P
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Joachim Müller

Using mysql beta versions is not recommended at all unless you really, really know your way around in mysql extremely well. Posting a bug report on the coppermine forums is completely invalid. Report your bug @ mysql if you like.

Andi

Hi :)

a Betatester of our pragmaMx-Port has the same Problem.
He uses MySQL-Version: 5.0.6.

Here is the fast and easy solution:
Edit file sql/schema.sql at line #118
change   mtime datetime NULL default '',

to:  mtime datetime NULL default NULL,


the complete sql-statement is then:
QuoteCREATE TABLE CPG_pictures (
  pid int(11) NOT NULL auto_increment,
  aid int(11) NOT NULL default '0',
  filepath varchar(255) NOT NULL default '',
  filename varchar(255) NOT NULL default '',
  filesize int(11) NOT NULL default '0',
  total_filesize int(11) NOT NULL default '0',
  pwidth smallint(6) NOT NULL default '0',
  pheight smallint(6) NOT NULL default '0',
  hits int(10) NOT NULL default '0',
  mtime datetime NULL default NULL,
  ctime int(11) NOT NULL default '0',
  owner_id int(11) NOT NULL default '0',
  owner_name varchar(40) NOT NULL default '',
  pic_rating int(11) NOT NULL default '0',
  votes int(11) NOT NULL default '0',
  title varchar(255) NOT NULL default '',
  caption text NOT NULL,
  keywords varchar(255) NOT NULL default '',
  approved enum('YES','NO') NOT NULL default 'NO',
  galleryicon int(11) NOT NULL default '0',
  user1 varchar(255) NOT NULL default '',
  user2 varchar(255) NOT NULL default '',
  user3 varchar(255) NOT NULL default '',
  user4 varchar(255) NOT NULL default '',
  url_prefix tinyint(4) NOT NULL default '0',
#  randpos int(11) NOT NULL default '0',
  pic_raw_ip tinytext,
  pic_hdr_ip tinytext,
  lasthit_ip tinytext,
  PRIMARY KEY  (pid),
  KEY owner_id (owner_id),
  KEY pic_hits (hits),
  KEY pic_rate (pic_rating),
  KEY aid_approved (aid,approved),
#  KEY randpos (randpos),
  KEY pic_aid (aid),
  position INT(11) NOT NULL default '0',
  FULLTEXT KEY search (title,caption,keywords,filename)
) TYPE=MyISAM;
hope, I could help you... :)