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: Photo not in database  (Read 3330 times)

0 Members and 2 Guests are viewing this topic.

Gokkie

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Photo not in database
« on: June 12, 2008, 08:57:20 pm »

Hello,
I have a nasty problem.
When i upload a photo everything goes fine but when te script comes to the part to add the photo to the database it doesn't do that.
The error: "The last file couldn't be places" the line below it says: 'Succesfully places all files'.  ???
I'am confused. When i look with ftp the photo is on the server but it is not in the database.
I have tried to put on logging, nothing shows up.
I just updated to the newest stable version but that also doesn't work.
The site worked for a long time!

Who can help me find the problem, i can't find the problem :s
Server info:
Mysql: MySQL 5.0.38
PHP: 5.2.3-1
Apache 2
Host: www.pcextreme.nl

Gerrit Jan
The netherlands
Logged

Gokkie

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Photo not in database
« Reply #2 on: June 12, 2008, 10:09:31 pm »

I have a better error message, Unable to create thumbnail or reduced size image.
Everything looks fine, checked the docs, tried google, checked the permissions, nothing helps :s
Please Help:
Here is de output from de debug:
Code: [Select]
USER:
------------------
Array
(
    [ID] => 2c4d94c7135c73c75c5bd0cb74aadc21
    [am] => 1
    [lang] => dutch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => maaike
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.047s)
    [1] => select * from cpg14x_plugins order by priority asc; (0.21s)
    [2] => delete from `20531cop`.cpg14x_sessions where time<1213297097 and remember=0; (0.002s)
    [3] => delete from `****`.cpg14x_sessions where time<1212091097; (0.002s)
    [4] => select user_id from `****`.cpg14x_sessions where session_id = '****' (0.008s)
    [5] => select user_id as id, user_password as password from `****`.cpg14x_users where user_id=1 (0.003s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `****`.cpg14x_users AS u INNER JOIN `****`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `20531cop`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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 cpg14x_usergroups WHERE group_id in (1) (0.014s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0.014s)
    [10] => update `20531cop`.cpg14x_sessions set time='1213300697' where session_id = '****' (0.006s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg14x_banned WHERE expiry < '2008-06-12 20:58:17' (0.001s)
    [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='****' OR ip_addr='****' OR user_id=1) AND brute_force=0 (0.018s)
    [14] => SELECT category FROM cpg14x_albums WHERE aid='9' (0.001s)
    [15] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.009s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 9
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.3-1ubuntu6.3 - OK
------------------
mySQL version: 5.0.38-Ubuntu_0ubuntu1.4-log
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support:
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.45
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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.1
Linked Version 1.2.3.3
==========================
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/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
open_basedir | no value | 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 3.319 seconds - 16 queries in 0.336 seconds - Album set : ; Meta set: ;
Logged

Nibbler

  • Guest
Re: Photo not in database
« Reply #3 on: June 12, 2008, 10:16:13 pm »

I can't help you unless you read the docs and do exactly as suggested.
Logged

Gokkie

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Photo not in database
« Reply #4 on: June 13, 2008, 06:11:26 pm »

I did what was on the the pages you gave.
This doesn't help
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Photo not in database
« Reply #5 on: June 13, 2008, 06:17:07 pm »

I did what was on the the pages you gave.
Really? From the page that you're suppossed to read:
Quote
Asking for support on upload issues

When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested. If you want fast results, you should disable admin approval for the group the test user is in, so supporters can tell instantly what is wrong without needing to double-check.

When people have issues with uploading and decide to post their question on the Coppermine support board, they usually are told to read this upload troubleshooting section. Many of them fail to do so properly, which results in frustration both for users as well as supporters. To make this absolutely clear: the above mentioned steps are absolutely mandatory, no matter what skill level you have, no matter what upload method you have troubles with. Failing to do exactly as suggested will result in your request for help being ignored. Yes, this applies to you. We mean it!
Can't spot the test user account. Behaving like a jerk and not doing as suggested even though Nibbler clearly told you what to do won't win you friends here and make it less likely that a supporter will actually look into your issues.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.