Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Unable to create Albums  (Read 8895 times)

0 Members and 1 Guest are viewing this topic.

chakoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Unable to create Albums
« on: December 14, 2005, 11:57:54 am »

Hi @ll,

i just started to install a web Server with the following configuration:

Windows 2003 Standard Server
Apache 2.0.55
PHP 5.1.1
MySQL 5.0.16
PHPMyAdmin 2.7.0pl1

Everthing works fine.
I am able to Setup my coppermine Gallery,the message, that coppermine was succesfully configured, appears.
But when I try to creat an Album, the following errormessage appears:

( It is translated from German)

There was error executing a database-query....

Can anyone help me????

Thanks in advance


« Last Edit: December 14, 2005, 03:55:52 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Unable to create Albums
« Reply #1 on: December 14, 2005, 02:23:51 pm »

enable debug-mode in coppermine's config, then reproduce the error and post the actual error message you get (not the debug output). A link and non-admin test user account might help as well.
Logged

chakoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Unable to create Albums
« Reply #2 on: December 14, 2005, 03:26:47 pm »

Hi,

i switched to debug mode an reproduced the error.

The following appeared:

While executing query "INSERT INTO cpg140_albums (category, title, uploads, pos) VALUES ('0', 'neues', 'NO',  '1')" on 0

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

In file: .....htdocs\coppermine\include\functions.inc.php - Row: 248
Logged

Nibbler

  • Guest
Re: Unable to create Albums
« Reply #3 on: December 14, 2005, 03:37:41 pm »

It's a MySQL 5 issue, run the following query on your database

Code: [Select]
ALTER TABLE `cpg140_albums` CHANGE `description` `description` TEXT NOT NULL default '';
Logged

chakoe

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Unable to create Albums
« Reply #4 on: December 14, 2005, 03:47:18 pm »

Hi,

thanks!! That works fine!
Logged

Bifrost

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
Re: Unable to create Albums
« Reply #5 on: December 19, 2005, 02:12:00 am »

I try to alter the field configuration and get this error message:

Mysql Error Number 1101
TEXT/BLOB column 'description' can not have a default value


I have 5.0.15 mySQL

I notice that on the redefinition the type of text is defined as:
CHARACTER SET latin1 COLLATE latin1_swedish_ci  ???

Any sugestions greatly appreciated.

To make by, I set it as allow null, which seems to work. But I ignore if it may bring some consecuences...
Please confirm if this is an aceptable workaround. :)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.