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: Only some pics uploaded, no errors to be found  (Read 725 times)

0 Members and 1 Guest are viewing this topic.

axial63

  • Coppermine newbie
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 12
Only some pics uploaded, no errors to be found
« on: December 18, 2018, 01:25:01 pm »

Hi,
I try to upload 24 pics (sizes between 2.610kb and 5.122kb) via Upload, Multiple Files HTML5 (recommended)

Only 4 pics are accepted and visual in the map, the other 20 are not visible and not viuable in the album. After a re-upload only the same pictures are added again.

No where i can find a log or an error...

When i try to upload via: 'Upload, simple, one file at the time' also some pics are recognized and placed in the album of choice

first i upgraded from a good working 1.5.46 => 1.6.4 but got a lot of errors in the log files
so i spend whole weekend of new installing from scrach cpg1.6.4
(and yes, i did run: update database en check versions)  8)

HELP!

cpg1.6.4
php7.2.7


Logged

axial63

  • Coppermine newbie
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: Only some pics uploaded, no errors to be found
« Reply #1 on: December 18, 2018, 01:38:56 pm »

reaction after upload:
Quote
Informatie
Album is leeg

Bestand: /home/sites/site48381/subdomains/foto/editpics.php - Regel: 786

DEBUG OUTPUT:
Quote
USER:
------------------
Array
(
    [ID] => bcd3022954895515f1aa608778fd3b89
    [am] => 1
    [lang] => dutch
    [liv] => Array
        (
           
  • => 19924
  • [1] => 19923
                [2] => 19932
                [3] => 19931
                [4] => 19930
            )

       
[liv_a] => Array
        (
           
  • => 505
  • [1] => 466
                [2] => 225
                [3] => 218
                [4] => 255
            )

       
[upload_method] => upload_h5a
)

==========================
USER DATA:
------------------
Array
(
    [user_id]       => 1
    [user_name] => admin
    [groups]       => Array
        (
           
  •       => 1

        )

    [disk_max]                   => 0
    [disk_min]                    => 0
    [can_rate_pictures]       => 1
    [can_send_ecards]        => 1
    [can_post_comments]   => 1
    [can_upload_pictures]   => 1
    [can_create_albums]     => 1
    [has_admin_access]      => 1
    [access_level]               => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name]              => Administrators
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT name, value FROM cpg16x_config [include/init.inc.php:180] (4.2 ms)
  • [1] => SELECT * FROM cpg16x_plugins ORDER BY priority
[include/plugin_api.inc.php:51] (2.44 ms)
    [2] => SELECT user_id, time FROM `CN20040205_fotobase`.cpg16x_sessions WHERE session_id = '49802265ee13693fb1e9ecebbd1b634f' [bridge/coppermine.inc.php:237] (3.41 ms)
    [3] => SELECT user_id, user_password FROM `CN20040205_fotobase`.cpg16x_users WHERE user_id = 1 [bridge/udb_base.inc.php:57] (3.67 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `CN20040205_fotobase`.cpg16x_users AS u LEFT JOIN `CN20040205_fotobase`.cpg16x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:57] (1.82 ms)
    [5] => SELECT user_group_list FROM `CN20040205_fotobase`.cpg16x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/udb_base.inc.php:57] (0.31 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS    priv_upl_need_approval FROM cpg16x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:353] (0.13 ms)
    [7] => SELECT group_name FROM cpg16x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:358] (0.14 ms)
    [8] => SELECT COUNT(*) FROM cpg16x_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:371] (0.13 ms)
    [9] => SELECT lang_id FROM cpg16x_languages WHERE enabled='YES' [include/init.inc.php:336] (7.19 ms)
    [10] => SELECT user_favpics FROM cpg16x_favpics WHERE user_id = 1 [include/init.inc.php:394] (5.46 ms)
    [11] => DELETE FROM cpg16x_banned WHERE expiry < '2018-12-18 13:35:28' [include/init.inc.php:449] (0.38 ms)
    [12] => SELECT null FROM cpg16x_banned WHERE (user_id=1 OR '217.122.62.190' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:465] (0.15 ms)
    [13] => UPDATE cpg16x_pictures SET guest_token = '' WHERE ctime < 1545136528 - 18000 [editpics.php:95] (634.69 ms)
    [14] => UPDATE cpg16x_config SET value = 1545136529 WHERE name = 'guest_token_cleanup' [editpics.php:96] (15.87 ms)
    [15] => SELECT title, category, keyword FROM cpg16x_albums  WHERE aid = '587' [editpics.php:102] (0.18 ms)
    [16] => SELECT COUNT(*) FROM cpg16x_pictures WHERE aid = '587' [editpics.php:745] (0.44 ms)
    [17] => SELECT p.*,a.category FROM cpg16x_pictures as p  INNER JOIN cpg16x_albums as a  ON a.aid = p.aid  WHERE p.aid = '587'  ORDER BY p.pid DESC LIMIT 0, 25 [editpics.php:755] (0.45 ms)
    [18] => SELECT COUNT(*) FROM cpg16x_pictures WHERE approved = 'NO' [include/functions.inc.php:2524] (12.17 ms)
    [19] => SELECT lang_id, abbr FROM cpg16x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2287] (0.23 ms)
)

==========================
GET :
------------------
Array
(
    [album] => 587
    [newer_than] => 1545136496
)

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

==========================
COOKIE :
------------------
Array
(
    [0a268909a841da354edfc5e4d6e50709] => d9e666a7ec0f59d0631120f2368d64c8
    [cpg16x_data] => YTo2OntzOjI6IklEIjtzOjMyOiJiY2QzMDIyOTU0ODk1NTE1ZjFhYTYwODc3OGZkM2I4OSI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo1OiJkdXRjaCI7czozOiJsaXYiO2E6NTp7aTowO3M6NToiMTk5MjQiO2k6MTtzOjU6IjE5OTIzIjtpOjI7czo1OiIxOTkzMiI7aTozO3M6NToiMTk5MzEiO2k6NDtzOjU6IjE5OTMwIjt9czo1OiJsaXZfYSI7YTo1OntpOjA7aTo1MDU7aToxO2k6NDY2O2k6MjtpOjIyNTtpOjM7aToyMTg7aTo0O2k6MjU1O31zOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjEwOiJ1cGxvYWRfaDVhIjt9
    [cpg132_data] => YTo2OntzOjI6IklEIjtzOjMyOiJlMDZmN2VjYTY0OGEyYmNmYjMwZWFiMmRjYmU0MjEyMyI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo1OiJkdXRjaCI7czo1OiJsaXZfYSI7YToyOntpOjA7aTo1ODY7aToxO2k6NTg3O31zOjM6ImxpdiI7YTo1OntpOjA7czo1OiIzNDU5NyI7aToxO3M6NToiMzQ1OTYiO2k6MjtzOjU6IjM0NTk1IjtpOjM7czo1OiIzNDU5NCI7aTo0O3M6NToiMzQ1OTMiO31zOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjEwOiJ1cGxvYWRfaDVhIjt9
)

==========================
VERSION INFO :
------------------
PHP version        7.2.7          OK   
MySQL version      5.5.62-MariaDB OK   
Coppermine version 1.6.04         stable

==========================
Module: GD
------------------
Exact version                    2.1.0                     
GD Version                       bundled (2.1.0 compatible)
FreeType Support                 1                         
FreeType Linkage                 with freetype             
GIF Read Support                 1                         
GIF Create Support               1                         
JPEG Support                     1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                                               
XBM Support                      1                         
WebP Support                                               
BMP Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://foto.destormvogels.nl/
charset              utf-8                       
allow_private_albums 1                           
cookie_name          cpg16x                       
cookie_path          /                           
impath               /usr/bin/                   
lang                 dutch                       
main_page_layout     breadcrumb/catlist/alblist   
silly_safe_mode      0                           
smtp_host                                         
theme                curve                       
thumb_method         gd2                         

==========================
Plugins
------------------
Name           HTML5 Upload                                 
Enabled        1                                           
Actions        upload_form, plugin_install, plugin_uninstall
Filters        upload_options                               
--------------
Name           Flash Upload                                 
Enabled        1                                           
Actions        upload_form                                 
Filters        upload_options                               
--------------
Name           Single File Upload                           
Enabled        1                                           
Actions        upload_form                                 
Filters        upload_options                               
--------------

==========================
Server restrictions
------------------
safe_mode                                                                         
safe_mode_exec_dir                                                                 
safe_mode_gid                                                                     
safe_mode_include_dir                                                             
sql.safe_mode                                                                     
disable_functions        exec,shell_exec,popen,passthru,proc_open,system,pcntl_exec
file_uploads             1                                                         
include_path             .:/opt/phpfarm/inst/php72/pear/php/                       
open_basedir             /home/sites/site48381/                                   
allow_url_fopen          1                                                         
max_execution_time       30                                                       
max_input_time           60                                                       
upload_max_filesize      128M                                                     
post_max_size            128M                                                     
memory_limit             128M                                                     
suhosin.post.max_vars                                                             
suhosin.request.max_vars                                                           


==========================
Page (performance)
------------------
Parameter        Current   Peak     
Memory usage     3.41 MiB  4.47 MiB
Page generation  805.92 ms 805.92 ms
Page query time  693.5 ms  693.5 ms
Page query count 20        20       


==========================
               
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1117
Re: Only some pics uploaded, no errors to be found
« Reply #2 on: December 18, 2018, 03:45:23 pm »

If you place the attached file (unzipped) in the root of your site, I can use it to explore your files and your database.
Please also PM me with an admin login to your gallery.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1117
Re: Only some pics uploaded, no errors to be found
« Reply #3 on: December 18, 2018, 08:35:07 pm »

I could see none of your CPG files. I've used that file manager many times with success. I created a cpgtestfolder and uploaded the cpg_installer_stub, but could not execute it. It would seem that there are some permission or subdomain issues causing some access problems. Perhaps file owner:group problems also exist.

All that said ... I had no problems logging into your gallery, creating albums and uploading photos.
Logged

axial63

  • Coppermine newbie
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: Only some pics uploaded, no errors to be found
« Reply #4 on: December 19, 2018, 11:59:42 pm »

Hi Ron,

It took awhile before i interpreted the meaning of your text and the picture you send….
The cpg files are not in the root, they are in a subdomain….
Our privider has chosen for this configuration:
Account/Root/web      normal website (Joomla)
Account/subdomains/foto   cpg software
Maybe that’s the reason you cannot see the cpg files?

I hope you understand what I mean and hopefully this is helpful for your effort?

Greetings,

Alex
Logged

axial63

  • Coppermine newbie
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 12
Re: Only some pics uploaded, no errors to be found
« Reply #5 on: December 22, 2018, 12:57:58 pm »

PERFECT!

After some (a lot actually) help from ron4mac the site is running now!

He saw the cpg_installer_stub error and modified the file so that it works for my server (and probably others in the future).

Also i needed to set the PHP memory-limit to a larger value (256M) (this is repaired in the software) and now the site runs successfully.

Thank You Ron!
Logged
Pages: [1]   Go Up
 

Page created in 0.077 seconds with 20 queries.