Advanced search  

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]

Pages: [1]   Go Down

Author Topic: New Album gives: mySQL error: Field 'description' doesn't have a default value  (Read 4344 times)

0 Members and 1 Guest are viewing this topic.

loupgarou

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

I'm doing  a first time setup.

Apache 2.0.55
mysql 5.0.15
php 4.4.1
--
when creating an album, it gives me:

While executing query "INSERT INTO cpg135_albums (category, title, uploads, pos) VALUES ('0', 'New album', 'NO',  '1')" on 0

mySQL error: Field 'description' doesn't have a default value

--
in the database
mysql> desc cpg135_albums;
+---------------+------------------+------+
-------+
| Field         | Type             | Null |
       |
+---------------+------------------+------+
-------+
| aid           | int(11)          | NO   |
rement |
| title         | varchar(255)     | NO   |
       |
| description   | text             | NO   |
       |
| visibility    | int(11)          | NO   |
       |
| uploads       | enum('YES','NO') | NO   |
       |
| comments      | enum('YES','NO') | NO   |
       |
| votes         | enum('YES','NO') | NO   |
       |
| pos           | int(11)          | NO   |
       |
| category      | int(11)          | NO   |
       |
| pic_count     | int(11)          | NO   |
       |
| thumb         | int(11)          | NO   |
       |
| last_addition | datetime         | NO   |
       |
| stat_uptodate | enum('YES','NO') | NO   |
       |
| keyword       | varchar(50)      | YES  |
       |
+---------------+------------------+------+

so its quite obvious it seems to be scripting bug or something.. description is a mandatory field.

can't seem to find any solutions.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

cpg1.3.5 currently isn't fully compatible with mySQL5.x
Logged

heman

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

so what options do we have for compatibility with mySQL 5?
do previous version so coppermine work with it? or is there a fix out?
Logged

Nibbler

  • Guest

You can use MySQL 5 with CPG 1.4 or use MySQL 4.x with CPG 1.3. There's no fix posted for 1.3 afaik.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.