problem with an explanation problem with an explanation
 

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

Main Menu

problem with an explanation

Started by virginie, May 11, 2006, 06:53:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

virginie

When I arrive on my Photo Gallery I get this message :
There was an error while processing a database query.



I tried to do what is explain :
¤ Go to your coppermine page and log in as admin
¤ Go to the config screen
¤ Scroll to the bottom of the page
¤ Expand the "Maintenance settings" section by clicking on it
¤ Enable debug mode for everyone
¤ Leave display of notices switched off
¤ Save the new settings by clicking on "Save new configuration"
¤ Go to the "groups" panel
¤ Set the upload form configuration for all groups to "Single file uploads only"  : set File upload boxes to "1"


But I can't  URI upload boxes to "0" and what do you mean with No. of boxes to "fixed" ?! :-\ (what is the equivalent in the french version of the photo gallery ?)


And below I can see :
While executing query "SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000" on 0

mySQL error: Table './francishuster1947/cpg132_pictures' is marked as crashed and should be repaired

Fichier: cpg132/include/functions.inc.php - Ligne: 105



and :

USER:
------------------
Array
(
    [ID] => 31698654da9e27fa7f6a1197443aa65f
    [am] => 1
    [sort] => dd
    [liv] => Array
        (
            [0] => 4232
            [1] => 4239
            [2] => 4238
            [3] => 4246
            [4] => 1147
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => virginie
    [user_password] => ********
    [user_lastvisit] => 2006-05-11 18:21:21
    [user_regdate] => 2005-03-18 20:09:24
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrateur
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg132_filetypes;
    [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'da4173439c85c8e128da1dbf3f9d4910'
    [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg132_banned WHERE expiry < 1147365334
    [5] => SELECT * FROM cpg132_banned WHERE ip_addr='81.49.210.118' OR ip_addr='81.49.210.118' OR user_id=1
    [6] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
    [7] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
    [8] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.3-dev - OK
------------------
mySQL version: 5.0.22-nightly-20060504
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 5.0.22-nightly-20060504
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/mysql/include/mysql
MYSQL_LIBS -L/usr/mysql/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | On | On
disable_functions | no value | no value
file_uploads | On | On
include_path | /mnt/106/sdc/6/1/francishuster1947/include:.:/usr/php4/lib/php | .:/usr/php4/lib/php/
open_basedir | /mnt/106/sdc/6/1/francishuster1947 | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 2M | 2M
==========================
Page generated in 2.834 seconds - 9 queries in 1.631 seconds - Album set :

Paver

Your problem doesn't seem to be an upload problem.  Looking at this line:
mySQL error: Table './francishuster1947/cpg132_pictures' is marked as crashed and should be repaired
this is a MySQL error and not an error in Coppermine.  Coppermine merely relays this MySQL error message to help you figure out what is wrong.

MySQL tables sometimes go "bad" and need to be repaired.  Often this doesn't affect your data in the tables, it has to do with how the table is stored and something goes wrong.  In phpMyAdmin, you'll find "repair table" under "Operations" (after selecting your table).  Here's the MySQL doc.