Problems with uploading / batch add files Problems with uploading / batch add files
 

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

Problems with uploading / batch add files

Started by wormie_dk, May 11, 2004, 07:55:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wormie_dk

When I try to upload I get the following error:
While executing query "SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM cpg11d_albums AS a INNER JOIN cpg11d_users AS u ON category = (10000 + user_id) ORDER BY title" on 0

mySQL error: Can't create/write to file '/tmp/#sql_157_0.MYI' (Errcode: 13)

I guess the problem is some configuration thing with my host, but as far as I can see in phpinfo everything is ok...

Can anybody see something that is not "coppermine friendly" in the phpinfo below?


USER:
------------------
Array
(
    [ID] => 4109a36b7f7c937e7d02b19367386bdb
    [am] => 1
    [liv] => Array
        (
            [0] => 919
            [1] => 834
        )

    [sort] => na
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [0] => 1
    [user_id] => 1
    [1] => 1
    [user_group] => 1
    [2] => YES
    [user_active] => YES
    [3] => *******
    [user_name] => *******
    [4] => ***********
    [user_password] => ********
    [5] => 2004-05-11 07:46:38
    [user_lastvisit] => 2004-05-11 07:46:38
    [6] => 2003-05-03 07:56:15
    [user_regdate] => 2003-05-03 07:56:15
    [7] =>
    [user_lang] =>
    [8] =>
    [user_email] =>
    [9] =>
    [user_website] =>
    [10] =>
    [user_location] =>
    [11] =>
    [user_interests] =>
    [12] =>
    [user_occupation] =>
    [13] =>
    [user_actkey] =>
    [14] => 1
    [group_id] => 1
    [15] => Administrators
    [group_name] => Administrators
    [16] => 0
    [group_quota] => 0
    [17] => 1
    [has_admin_access] => 1
    [18] => 1
    [can_rate_pictures] => 1
    [19] => 1
    [can_send_ecards] => 1
    [20] => 1
    [can_post_comments] => 1
    [21] => 1
    [can_upload_pictures] => 1
    [22] => 1
    [can_create_albums] => 1
    [23] => 0
    [pub_upl_need_approval] => 0
    [24] => 0
    [priv_upl_need_approval] => 0
    [25] => 0
    [upload_form_config] => 0
    [26] => 0
    [custom_user_upload] => 0
    [27] => 5
    [num_file_upload] => 5
    [28] => 3
    [num_URI_upload] => 3
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg11d_filetypes;
    [1] => SELECT * FROM cpg11d_users, cpg11d_usergroups WHERE user_group = group_id AND user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '1f1de29b4e7d103444bf09c1db815dfd'
    [2] => DELETE FROM cpg11d_banned WHERE expiry < 1084254709
    [3] => SELECT * FROM cpg11d_banned WHERE ip_addr='130.226.172.129' OR ip_addr='130.226.172.129' OR user_id=1
    [4] => SELECT filepath, filename FROM cpg11d_pictures WHERE filepath LIKE '080504_Sanne%'
    [5] => SELECT aid, title FROM cpg11d_albums WHERE category = 0 ORDER BY title
    [6] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg11d_albums as a, cpg11d_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
    [7] => SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM cpg11d_albums AS a INNER JOIN cpg11d_users AS u ON category = (10000 + user_id) ORDER BY title
)

==========================
GET :
------------------
Array
(
    [startdir] => 080504_Sanne
    [lang] => english
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.4 - OK
------------------
mySQL version: 4.0.18-log
==========================
Module: gd
------------------
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.56
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /var/www/virtual/alberg/alberg.dk/ | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /var/www/virtual/alberg/alberg.dk/ | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
open_basedir | /var/www/virtual/alberg/alberg.dk/public_html/:/tmp/ | 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 | 8M | 8M
==========================
Page generated in 0.14 seconds - 8 queries in 0.002 seconds - Album set :

Joachim Müller

your mySQL table is probably broken, use mySQL's built-in repair functions, either on the console if you're familiar with it, or with phpMyAdmin (check the tables and choose from the dropdown at the bottom "repair").

GauGau

wormie_dk

I tried reparing the table with phpmyadmin (i do not have shell acess to the server) but it did not help  :(

I still get this error:

While executing query "SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM cpg11d_albums AS a INNER JOIN cpg11d_users AS u ON category = (10000 + user_id) ORDER BY title" on 0

mySQL error: Can't create/write to file '/tmp/#sql_157_0.MYI' (Errcode: 13)


I also tried uploading just one file and got this error:

No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php - Line: 222

Notice: Undefined index: lang in /var/www/virtual/alberg/alberg.dk/public_html/foto/include/functions.inc.php on line 1458

Notice: Undefined index: user1 in /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php on line 203

Notice: Undefined index: user2 in /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php on line 204

Notice: Undefined index: user3 in /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php on line 205

Notice: Undefined index: user4 in /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php on line 206

Notice: Undefined index: userpicture in /var/www/virtual/alberg/alberg.dk/public_html/foto/db_input.php on line 222


I will try to install coppermine in another directory and see if the error is the same... Could the error be caused by lacking permissions for /tmp/ ?

hyperion

Okay, the first error occurs when MySQL is trying to create a temporary file to store the query results.  This could be due to improper MySQL configuration, or it could be due to a specialized server configuration. 

The second error is caused by the file either being too large or by the aforementioned specialized server config.   

First try adding a /temp or /tmp directory to your webroot.  Ex. www.mywebsite.com/tmp



&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

wormie_dk

Ok I will have to contact my web host then... The strange thing is that I uploaded a new copy of coppermine and made new tables in the sql db for it... It worked for about 20 mins and since it has not worked... Today I tried deleting the tables and installing again but it gave  the same problem...