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: Error message when displaying larger image  (Read 15442 times)

0 Members and 1 Guest are viewing this topic.

youcantoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Error message when displaying larger image
« on: May 23, 2018, 12:59:41 am »

I just installed Coppermine V 1.5.46 (stable)  Everything seems to go well till I click on a image and then after a couple of second I get a error message in a popup window

Quote
The connection was reset

The connection to the server was reset while the page was loading.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Cyberfox is permitted to access the Web.

I turned on the debug and I got the following info

Code: [Select]
USER:
------------------
Array
(
    [ID] => bc7d095908c3efef8bc6e30960c5cc03
    [lang] => english
    [am] => 1
    [liv] => Array
        (
            [0] => 3
            [1] => 1
        )

)

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

    [disk_max] => 1024
    [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
(
    [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:179] (0.55 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.39 ms)
    [2] => SELECT user_id, time FROM `coppermine`.cpg15x_sessions WHERE session_id = 'eb736c59e6cb60267ff2204c4e8533de' [bridge/coppermine.inc.php:267] (0.43 ms)
    [3] => SELECT user_id, user_password FROM `coppermine`.cpg15x_users WHERE user_id = 2 [bridge/coppermine.inc.php:279] (0.14 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `coppermine`.cpg15x_users AS u LEFT JOIN `coppermine`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' [bridge/udb_base.inc.php:70] (0.16 ms)
    [5] => SELECT user_group_list FROM `coppermine`.cpg15x_users AS u WHERE user_id='2' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.12 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 cpg15x_usergroups WHERE group_id in (1,2) [bridge/udb_base.inc.php:333] (0.25 ms)
    [7] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:337] (0.1 ms)
    [8] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1,2) [bridge/udb_base.inc.php:350] (0.09 ms)
    [9] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:330] (0.48 ms)
    [10] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 2 [include/init.inc.php:388] (0.13 ms)
    [11] => DELETE FROM cpg15x_banned WHERE expiry < '2018-05-22 22:16:39' [include/init.inc.php:444] (0.14 ms)
    [12] => SELECT null FROM cpg15x_banned WHERE (user_id=2 OR '192.234.119.10' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.18 ms)
    [13] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2507] (0.29 ms)
    [14] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2292] (0.23 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [trinitygallery_data] => YTo0OntzOjI6IklEIjtzOjMyOiJiMDg4MzEwMTYyNmFlMDdiN2QwZjhmMTM4NWJjN2QzMiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTozOntpOjA7czo0OiIxMTI2IjtpOjE7czo0OiIxMTMwIjtpOjI7czozOiI0OTUiO319
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiJiYzdkMDk1OTA4YzNlZmVmOGJjNmUzMDk2MGM1Y2MwMyI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MjoiYW0iO2k6MTtzOjM6ImxpdiI7YToyOntpOjA7czoxOiIzIjtpOjE7czoxOiIxIjt9fQ==
    [4bfcf8ee5050622a395695a4127937d0] => ee9106526bb105d16e4e1aca63a2aba7
    [PHPSESSID] => 1acl78q9ipakumr7q3aui9bea5
    [9ed25fc2574db74050c06a5b82529ab6] => bc714391433f2e632ee0b8eb492226f6
    [b95d41a16919c6ac7c7a68337834d1a6] => f6126c0c545c9abbe54c7a61da292fec
)

==========================
SESSION :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version        5.6.29          OK   
MySQL version      10.1.26-MariaDB OK   
Coppermine version 1.5.46          stable

==========================
Module: GD
------------------
Exact version                    2.1.1       
GD Version                       2.1.1       
FreeType Support                 1           
FreeType Linkage                 with freetype
T1Lib Support                    1           
GIF Read Support                 1           
GIF Create Support               1           
JPEG Support                     1           
PNG Support                      1           
WBMP Support                     1           
XPM Support                      1           
XBM Support                      1           
WebP Support                     1           
JIS-mapped Japanese Font Support             

==========================
Key config settings
------------------
site_url             http://wallpapers.mypclinuxos.com/cpg15x/   
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath                                                           
lang                 english                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                rainy_day                                   
thumb_method         gd2                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                                 
safe_mode_exec_dir                                                         
safe_mode_gid                                                             
safe_mode_include_dir                                                     
sql.safe_mode                                                             
disable_functions                                                         
file_uploads             1                                                 
include_path             .:/usr/lib64/php/:/usr/share/pear/:/usr/share/php/
open_basedir                                                               
allow_url_fopen          1                                                 
max_execution_time       30                                               
max_input_time           60                                               
upload_max_filesize      512M                                             
post_max_size            512M                                             
memory_limit             1024M                                             
suhosin.post.max_vars                                                     
suhosin.request.max_vars                                                   


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     2.47 MiB 3.36 MiB
Page generation  51.69 ms 51.69 ms
Page query time  3.67 ms  3.67 ms
Page query count 15       15     


==========================

[code]

The url is http://wallpapers.mypclinuxos.com

The server is running Linux
PHP version 5.6.29
MySQL (mariadb) version 10.1.28
GD2

I have disabled the firewall to test if it was the problem and it does the same thing as above.


Does anybody have a clue as to why this maybe happening, and if so can you point me in the right direction, and help is appreciated.  Looking forward to your replies.

Thank you
 
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Error message when displaying larger image
« Reply #1 on: May 23, 2018, 03:37:50 am »

Go into the config settings and fix the site URL (so it doesn't have /cpg15x/ in it. It appears you set it up one way, then changed its URL.

You might want to consider going with CPG 1.6.x ... PHP 7 compatible.
http://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037
Logged

youcantoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Re: Error message when displaying larger image
« Reply #2 on: May 23, 2018, 04:46:42 am »

Go into the config settings and fix the site URL (so it doesn't have /cpg15x/ in it. It appears you set it up one way, then changed its URL.

You might want to consider going with CPG 1.6.x ... PHP 7 compatible.
http://forum.coppermine-gallery.net/index.php/topic,79013.msg383037.html#msg383037

Doesn't change how it is working still has the same error message
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Error message when displaying larger image
« Reply #3 on: May 23, 2018, 05:07:45 am »

You're getting a connection lost on every page (look at console errors).
Likely a server configuration issue.
Logged

youcantoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Error message when displaying larger image
« Reply #4 on: May 24, 2018, 03:38:06 am »

I do not know exactly what is going on with the server that it was on, but I put it on another server and I have it working fine.  Thanks to all that have given suggestions.  I will mark this solved.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Error message when displaying larger image
« Reply #5 on: May 24, 2018, 06:12:56 pm »

Thanks for resolving your thread. Not everyone does that.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

ngopet2008

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Error message when displaying larger image
« Reply #6 on: September 18, 2019, 09:06:59 am »

I just installed Coppermine V 1.5.46 (stable)  Everything seems to go well till I click on a image and then after a couple of second I get a error message in a popup window

I turned on the debug and I got the following info

Code: [Select]
USER:
------------------
Array
(
    [ID] => bc7d095908c3efef8bc6e30960c5cc03
    [lang] => english
    [am] => 1
    [liv] => Array
        (
            [0] => 3
            [1] => 1
        )

)

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

    [disk_max] => 1024
    [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
(
    [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:179] (0.55 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:52] (0.39 ms)
    [2] => SELECT user_id, time FROM `coppermine`.cpg15x_sessions WHERE session_id = 'eb736c59e6cb60267ff2204c4e8533de' [bridge/coppermine.inc.php:267] (0.43 ms)
    [3] => SELECT user_id, user_password FROM `coppermine`.cpg15x_users WHERE user_id = 2 [bridge/coppermine.inc.php:279] (0.14 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `coppermine`.cpg15x_users AS u LEFT JOIN `coppermine`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' [bridge/udb_base.inc.php:70] (0.16 ms)
    [5] => SELECT user_group_list FROM `coppermine`.cpg15x_users AS u WHERE user_id='2' AND user_group_list <> '' [bridge/coppermine.inc.php:205] (0.12 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 cpg15x_usergroups WHERE group_id in (1,2) [bridge/udb_base.inc.php:333] (0.25 ms)
    [7] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:337] (0.1 ms)
    [8] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1,2) [bridge/udb_base.inc.php:350] (0.09 ms)
    [9] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:330] (0.48 ms)
    [10] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 2 [include/init.inc.php:388] (0.13 ms)
    [11] => DELETE FROM cpg15x_banned WHERE expiry < '2018-05-22 22:16:39' [include/init.inc.php:444] (0.14 ms)
    [12] => SELECT null FROM cpg15x_banned WHERE (user_id=2 OR '192.234.119.10' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:460] (0.18 ms)
    [13] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2507] (0.29 ms)
    [14] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2292] (0.23 ms)
)

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

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

==========================
COOKIE :
------------------
Array
(
    [trinitygallery_data] => YTo0OntzOjI6IklEIjtzOjMyOiJiMDg4MzEwMTYyNmFlMDdiN2QwZjhmMTM4NWJjN2QzMiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTozOntpOjA7czo0OiIxMTI2IjtpOjE7czo0OiIxMTMwIjtpOjI7czozOiI0OTUiO319
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiJiYzdkMDk1OTA4YzNlZmVmOGJjNmUzMDk2MGM1Y2MwMyI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MjoiYW0iO2k6MTtzOjM6ImxpdiI7YToyOntpOjA7czoxOiIzIjtpOjE7czoxOiIxIjt9fQ==
    [4bfcf8ee5050622a395695a4127937d0] => ee9106526bb105d16e4e1aca63a2aba7
    [PHPSESSID] => 1acl78q9ipakumr7q3aui9bea5
    [9ed25fc2574db74050c06a5b82529ab6] => bc714391433f2e632ee0b8eb492226f6
    [b95d41a16919c6ac7c7a68337834d1a6] => f6126c0c545c9abbe54c7a61da292fec
)

==========================
SESSION :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version        5.6.29          OK   
MySQL version      10.1.26-MariaDB OK   
Coppermine version 1.5.46          stable

==========================
Module: GD
------------------
Exact version                    2.1.1       
GD Version                       2.1.1       
FreeType Support                 1           
FreeType Linkage                 with freetype
T1Lib Support                    1           
GIF Read Support                 1           
GIF Create Support               1           
JPEG Support                     1           
PNG Support                      1           
WBMP Support                     1           
XPM Support                      1           
XBM Support                      1           
WebP Support                     1           
JIS-mapped Japanese Font Support             

==========================
Key config settings
------------------
site_url             http://wallpapers.mypclinuxos.com/cpg15x/   
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath                                                           
lang                 english                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                rainy_day                                   
thumb_method         gd2                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                                 
safe_mode_exec_dir                                                         
safe_mode_gid                                                             
safe_mode_include_dir                                                     
sql.safe_mode                                                             
disable_functions                                                         
file_uploads             1                                                 
include_path             .:/usr/lib64/php/:/usr/share/pear/:/usr/share/php/
open_basedir                                                               
allow_url_fopen          1                                                 
max_execution_time       30                                               
max_input_time           60                                               
upload_max_filesize      512M                                             
post_max_size            512M                                             
memory_limit             1024M                                             
suhosin.post.max_vars                                                     
suhosin.request.max_vars                                                   


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     2.47 MiB 3.36 MiB
Page generation  51.69 ms 51.69 ms
Page query time  3.67 ms  3.67 ms
Page query count 15       15     


==========================

[code]

The url is http://wallpapers.mypclinuxos.com

The server is running Linux
PHP version 5.6.29
MySQL (mariadb) version 10.1.28
GD2

I have disabled the firewall to test if it was the problem and it does the same thing as above.


Does anybody have a clue as to why this maybe happening, and if so can you point me in the right direction, and help is appreciated.  Looking forward to your replies.

Thank you
 
[/quote
Same here on --> https://www.thelitelights.com
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.