EDIT: I managed to somehow fix all the errors by simply re-creating the folder EDIT in /albums. But again today somehow it got deleted and my users are getting errors when trying to upload their picture.
---DISREGARD BELOW---
I don't know how this may have happened. A user simply notified of them having problems uploading a file.
But first of all, when I click on Upload file I get an error message on top saying:
Warning: opendir(./albums/edit): failed to open dir: No such file or directory in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 409
Then after trying to upload a file, it doesn't work and I get the error message:
Warning: move_uploaded_file(./albums/edit/mHTTP_temp_37c04602.jpg): failed to open stream: No such file or directory in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 1197
Warning: move_uploaded_file(): Unable to move '/var/tmp/phpMCApDh' to './albums/edit/mHTTP_temp_37c04602.jpg' in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 1197
Notice: Undefined variable: escrow_array in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 1939
Notice: Undefined variable: URI_failure_array in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 1941
Notice: Undefined variable: zip_failure_array in /usr/home/sites/www.lmtchatonline.com/web/gallery/upload.php on line 1942
It says below that Error message: impossible to move.
Then I went to admin and clicked on Update database, then even more errors:
Notice: Undefined index: cat_thumb in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1124
Notice: Undefined index: cat_albums in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1126
(these appear right above the categories table)
Then when I click into a picture on top of the page I get:
Notice: Undefined variable: meta_keywords in /usr/home/sites/www.lmtchatonline.com/web/gallery/displayimage.php on line 632
then below that:
Notice: Undefined variable: header in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1404
Notice: Undefined variable: template_tab_display in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1407
Notice: Undefined variable: lang_thumb_view in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1409
Notice: Undefined index: inactive_tab in /usr/home/sites/www.lmtchatonline.com/web/gallery/themes/default/theme.php on line 1410
Here's the debug mode message:
USER:
------------------
Array
(
[ID] => 48e59300205bc656eef4722a0d78f4a3
[am] => 1
[liv] => Array
(
[0] => 284
[1] => 288
[2] => 297
[3] => 204
[4] => 232
)
[sort] => ta
)
==========================
USER DATA:
------------------
Array
(
[0] => 16
[user_id] => 16
[1] => erroneus
[user_name] => erroneus
[2] => 1
[user_level] => 1
[groups] => Array
(
[0] => 1
[1] => 2
[2] => 10
[3] => 173
[4] => 174
)
[group_quota] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[upload_form_config] => 3
[num_file_upload] => 10
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 1000
[disk_min] => 0
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 1
[group_name] => Admin
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content FROM cpg130_filetypes;
[1] => SELECT user_id, username as user_name, user_level FROM `lmt`.phpbb_sessions INNER JOIN `lmt`.phpbb_users ON session_user_id = user_id WHERE session_id='6a593351fcd30a28d87846db21a6a686' AND session_user_id ='16' AND user_active='1'
[2] => SELECT (ug.group_id + 5) as group_id FROM `lmt`.phpbb_user_group as ug LEFT JOIN `lmt`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 16 AND user_pending = 0 AND group_single_user = 0
[3] => 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 cpg130_usergroups WHERE group_id in (1,2,10,173,174)
[4] => SELECT group_name FROM cpg130_usergroups WHERE group_id= 1
[5] => DELETE FROM cpg130_banned WHERE expiry < 1090383102
[6] => SELECT * FROM cpg130_banned WHERE ip_addr='66.136.49.184' OR ip_addr='66.136.49.184' OR user_id=16
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 3.23.53
------------------
Coppermine version: 1.3.1
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 compatible)
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
XBM Support enabled
JIS-mapped Japanese Font Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 2
Active Links 3
Client API version 3.23.53
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
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 | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/share/pear | .:/usr/local/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.114 seconds - 7 queries in 0.009 seconds - Album set :