Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Не удается загрузить фото  (Read 11241 times)

0 Members and 1 Guest are viewing this topic.

bagfinder

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Не удается загрузить фото
« on: October 20, 2009, 04:55:03 pm »

Coppermine Photo Gallery 1.4.24 + Пак от Stramm

Не удается с помощью "Загрузить файл" загрузить фотографию.
Выдает: Удачных загрузок: 0.
В чем может быть проблема?

Лог:

Code: [Select]
/include/themes.inc.php

    * Notice line 226: Undefined variable: USER_ID
    * Notice line 823: Undefined variable: pm_link

/upload.php

    * Notice line 1053: Undefined variable: _FILES
    * Notice line 1306: Undefined index: URI_array
    * Notice line 1978: Undefined variable: escrow_array
    * Notice line 1979: Undefined variable: file_failure_array
    * Notice line 1980: Undefined variable: URI_failure_array
    * Notice line 1981: Undefined variable: zip_failure_array

Отладочная информация:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 90659dea8b376cb683ed6d349586ecfd
    [am] => 1
    [lang] => russian
    [liv] => Array
        (
        )

    [theme] => classic
)

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

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
    [1] => select * from cpg14x_plugins order by priority asc; (0s)
    [2] => delete from `wwwendeffectru_asmo_gallery`.cpg14x_sessions where time<1256046545 and remember=0; (0s)
    [3] => delete from `wwwendeffectru_asmo_gallery`.cpg14x_sessions where time<1254840545; (0s)
    [4] => select user_id from `wwwendeffectru_asmo_gallery`.cpg14x_sessions where session_id = 'a499cdd04779eae35c929dadd7369973' (0.001s)
    [5] => select user_id as id, user_password as password from `wwwendeffectru_asmo_gallery`.cpg14x_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `wwwendeffectru_asmo_gallery`.cpg14x_users AS u INNER JOIN `wwwendeffectru_asmo_gallery`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `wwwendeffectru_asmo_gallery`.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) (0s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
    [10] => update `wwwendeffectru_asmo_gallery`.cpg14x_sessions set time='1256050145' where session_id = 'a499cdd04779eae35c929dadd7369973' (0s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
    [12] => SELECT count(*) FROM  cpg14x_pms WHERE owner=1 (0s)
    [13] => SELECT count(*) FROM  cpg14x_pms WHERE owner=1 AND showed='0' (0s)
    [14] => SELECT count(*) FROM  cpg14x_buddy WHERE user_id=1 (0s)
    [15] => SELECT count(*) FROM  cpg14x_buddy_req WHERE buddy_to=1 (0s)
    [16] => DELETE FROM cpg14x_banned WHERE expiry < '2009-10-20 18:49:05' (0s)
    [17] => SELECT * FROM cpg14x_banned WHERE (ip_addr='95.161.129.78' OR ip_addr='95.161.129.78' OR user_id=1) AND brute_force=0 (0s)
    [18] => SELECT aid, title FROM cpg14x_albums WHERE category < 10000 ORDER BY title (0s)
    [19] => SELECT aid, title FROM cpg14x_albums WHERE category='10001' ORDER BY title (0s)
    [20] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.9 - OK
------------------
mySQL version: 4.1.25-log
------------------
Coppermine version: 1.4.24(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
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.2.3
Linked Version 1.2.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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
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 | -1 | -1
upload_max_filesize | 6M | 6M
post_max_size | 55M | 55M
==========================
Page generated in 1256050145.688 seconds - 21 queries in 0.001 seconds - Album set : ; Meta set: ;
Logged

bagfinder

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Не удается загрузить фото
« Reply #1 on: October 20, 2009, 05:33:58 pm »

Переустановил галерею полностью. Та-же проблема.
Не загружаются фотографии.
Но загрузка через ссылку работает.
include, albums (и все папки внутри)  -  777
Logged

Makc666

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: Не удается загрузить фото
« Reply #2 on: November 10, 2009, 10:36:35 am »

Всего скорее проблема может быть в папке tmp (temp).
Это или папка по умолчанию /tmp или /temp
Или та папка, которая указана в настройках php.ini
Code: [Select]
upload_tmp_dir =
Logged

inox

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Клипарт - фотографии высокого разшения
Re: Не удается загрузить фото
« Reply #3 on: December 02, 2009, 08:52:28 pm »

Фотографии загружаются, но при размещении в альбомы периодически получаю страницу следующего вида:
Quote
Template error
Failed to find block 'output_buffer'(#(<!-- BEGIN output_buffer -->)(.*?)(<!-- END output_buffer -->)#s) in :
        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>{MESSAGE}</b></font>
<!-- BEGIN file_line -->
                        <br />
                        <br />
                        {FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->

                        <br /><br />
                </td>
        </tr>
в чем может быть проблема?
Logged

inox

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
    • Клипарт - фотографии высокого разшения
Re: Не удается загрузить фото
« Reply #4 on: December 06, 2009, 01:44:43 pm »

Кроме того, в результате неудачных загрузок папка USERPICS наполняется несвязанными файлами, т.е. изображениями не использующимися в галерее. Можно ли как-то автоматически удалить несвязанные файлы или нужно делать это вручную?
Logged

Makc666

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: Не удается загрузить фото
« Reply #5 on: February 01, 2010, 08:54:01 pm »

Фотографии загружаются, но при размещении в альбомы периодически получаю страницу следующего вида:в чем может быть проблема?
Указанный блок кода отсутствует в вашей теме, т.е. в теме которую вы используете.
Logged

Makc666

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: Не удается загрузить фото
« Reply #6 on: February 01, 2010, 08:54:13 pm »

Кроме того, в результате неудачных загрузок папка USERPICS наполняется несвязанными файлами, т.е. изображениями не использующимися в галерее. Можно ли как-то автоматически удалить несвязанные файлы или нужно делать это вручную?
Делать вручную.
Logged

olaike

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
    • О лайке и охоте с ней
Re: Не удается загрузить фото
« Reply #7 on: February 19, 2010, 11:35:24 am »

Похожая проблема, а может точно такая...Установил галерею, попробовал добавить фото, все получилось, интегрировал в форум SMF и фото перестали добавляться...Подскажите как можно починить? Я в этом деле новичок, если можно то поподробнее, где и что смотреть и править?
Logged

Makc666

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: Не удается загрузить фото
« Reply #8 on: February 19, 2010, 11:23:49 pm »

и фото перестали добавляться...
Это такое широкое описание проблемы, что на неё нет ответа.

Детальное описание конфигурации, выдаваемой ошибки и т.п. возможно поможет дать ответ.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.