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: Problems with adding photo's to a album  (Read 8294 times)

0 Members and 1 Guest are viewing this topic.

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Problems with adding photo's to a album
« on: April 04, 2010, 03:08:32 pm »

I have some problems with adding photo's. I have uploaded pictures by FTP on my site in the right album. When i want to add files in the admin site i cant add files. It wont go to the section where i can scroll in to the various albums and adding the right file in the right album.

I only get to this "searchnew.php"
Logged

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Problems with adding photo's to a album
« Reply #2 on: April 07, 2010, 12:49:45 pm »

I have tried to set the right properties but still i aint working. And reading the links that you have posted. When i try to add pictures i get this line http://www.circuitfotografie.nl/cpg1418/searchnew.php Note: i have updated the album to 1.4.25

Quote
USER:
------------------
Array
(
    [ID] => 9dbecb30c367845f7bf36bc704483670
    [am] => 1
    [lang] => dutch
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => mathieu
    [groups] => Array
        (
           
  • => 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
(
   
  • => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
  • [1] => select * from cpg14x_plugins order by priority asc; (0.001s)
        [2] => delete from `circuitfotograf`.cpg14x_sessions where time<1270633181 and remember=0; (0.001s)
        [3] => delete from `circuitfotograf`.cpg14x_sessions where time<1269427181; (0.001s)
        [4] => select user_id from `circuitfotograf`.cpg14x_sessions where session_id = 'cfdc900db5d28057783f4d8a1f7ee3f4' (0.001s)
        [5] => select user_id as id, user_password as password from `circuitfotograf`.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.user_group+100 AS group_id FROM `circuitfotograf`.cpg14x_users AS u INNER JOIN `circuitfotograf`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `circuitfotograf`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0.002s)
        [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.001s)
        [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
        [10] => update `circuitfotograf`.cpg14x_sessions set time='1270636781' where session_id = 'cfdc900db5d28057783f4d8a1f7ee3f4' (0.001s)
        [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg14x_banned WHERE expiry < '2010-04-07 10:39:41' (0.001s)
        [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='188.200.38.178' OR ip_addr='188.200.38.178' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.001s)
        [15] => SELECT value FROM cpg14x_config WHERE name = 'theme' (0.001s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.3.2 - OK
    ------------------
    mySQL version: 5.0.32-Debian_7etch11-log
    ------------------
    Coppermine version: 1.4.25(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 compatible)
    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
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.32
    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.3
    Linked Version 1.2.3
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
    safe_mode_gid | Off | Off
    safe_mode_include_dir | /customers/circuitfotografie.nl:/usr/share/php | /customers/circuitfotografie.nl:/usr/share/php
    safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
    sql.safe_mode | Off | Off
    disable_functions | disk_total_space, diskfreespace, exec, system, popen, proc_open, proc_nice, shell_exec, passthru, dl | disk_total_space, diskfreespace, exec, system, popen, proc_open, proc_nice, shell_exec, passthru, dl
    file_uploads | On | On
    include_path | .:/usr/share/php | .:/usr/share/php
    open_basedir | /customers/circuitfotografie.nl/circuitfotografie.nl:/var/www/diagnostics:/usr/share/php | /customers/circuitfotografie.nl/circuitfotografie.nl:/var/www/diagnostics:/usr/share/php
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/b1sendmail -t -i | /usr/sbin/b1sendmail -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 | 12M | 12M
    post_max_size | 12M | 12M
    ==========================
    Page generated in 0.22 seconds - 16 queries in 0.014 seconds - Album set : ; Meta set: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with adding photo's to a album
« Reply #3 on: April 07, 2010, 01:54:57 pm »

And reading the links that you have posted
Maybe you have read them, but you haven't done as sugegsted:
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!
As you can clearly see, you haven't done as suggested, but did quite the opposite of what you're suppossed to do.

i have updated the album to 1.4.25
That's not good enough! Most recent stable release currently is cpg1.4.26. The fact that you upgraded to cpg1.4.25 is an indicator that you have used a third-party auto-installer, which is bad and goes unsupported. Upgrade as we suggest in our documentation.
Logged

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Problems with adding photo's to a album
« Reply #4 on: April 07, 2010, 06:35:38 pm »

I have updated the gallery to 1.4.26.  Uploading with FTP is no problem. Uploading with batch adding to a album is the problem.

I have made a test account

User: Test
password: test

Link http://www.circuitfotografie.nl/cpg1418/index.php

Logged

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Problems with adding photo's to a album
« Reply #5 on: April 07, 2010, 07:47:03 pm »

I have contacted my hosting www.one.com and this is what she sayd:
Quote
you: I'm having some problems on my website
you: message is 500 internal server error
Camille: May I know your domain name please?
you: circuitfotografie.nl
Camille: I can see your site when I enter circuitfotografie.nl
Camille: what link do you get the 500 error?
you: www.circuitfotografie.nl/cpg1418/searchnew.php
Camille: this seems to be an error with your php script
Camille: may I know when did you start having this error?
you: since last week i had to upload pictures
you: from oktober last year till last week i havent upload any pictures
Camille: this error could be due tot he php upgrade we did on your server. we upgraded your php version to 5.3.2.
Camille: please check with Coppermine Support Forum on how to fix Line: 26 in /cpg1418/searchnew.php on your server
you: i know that you updated the php to 5.3.2 but the coppermine updated also the the newer version of 5.3.2
Camille: i see
Camille: however, there is still an error in the script
Camille: please refer to their technical support to find the fix for this script
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with adding photo's to a album
« Reply #6 on: April 08, 2010, 07:42:38 am »

Turn notices display off if you don't know what that means. That's probably what "Camille" was refering to when she said "there is still an error in the script. please refer to their technical support to find the fix for this script". Notices display is a developer-only feature that you shouldn't have enabled in the first place. There is nothing wrong with the script, as it is being used on thousands of webservers. The release cpg1.4.26 works with your PHP version.
An 500 internal error is not a syntax error of a PHP script. It's an unhandled error that can only be tracked by looking at the server's error logs. Usually it is related to resources consumption, i.e. the script runs into a time-out because of restrictions imposed on your webserver by your webhost. As Camille failed to ask at which time you got that hard error she can hardly tell what the error message actually was about, as she would have needed that piece of information to look it up in the log. She hasn't asked neither for a coppermine admin account, so she can not havae reproduced it. In the worst case, she just has seen the error message "You don't have permission to access this page", which is to be expected and concluded that this error message is the cause for your trouble. Ask your webhost to do their homework and take a look at the relevant section of the webserver's error log. You're welcome to refer to this thread. Imo you have just got a canned response from a junior supporter at your webhost's chat desk.

I have made a test account

User: Test
password: test
You have not done as suggested: the number of URI fields is set to 1 (should be 0). You have enabled notices display (should be disabled). Do your homework, then try again.

Joachim

P.S. The URL http://www.circuitfotografie.nl/cpg1418/ is just plain silly. You should rename that folder using your FTP app and then reflect the change in Coppermine's config, as explained in http://documentation.coppermine-gallery.net/en/export.htm#moving_folder . This is not related to the issues you're having, but just annoying.
Logged

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Problems with adding photo's to a album
« Reply #7 on: April 09, 2010, 06:59:40 pm »

Turn notices display off if you don't know what that means. That's probably what "Camille" was refering to when she said "there is still an error in the script. please refer to their technical support to find the fix for this script". Notices display is a developer-only feature that you shouldn't have enabled in the first place. There is nothing wrong with the script, as it is being used on thousands of webservers. The release cpg1.4.26 works with your PHP version.
An 500 internal error is not a syntax error of a PHP script. It's an unhandled error that can only be tracked by looking at the server's error logs. Usually it is related to resources consumption, i.e. the script runs into a time-out because of restrictions imposed on your webserver by your webhost. As Camille failed to ask at which time you got that hard error she can hardly tell what the error message actually was about, as she would have needed that piece of information to look it up in the log. She hasn't asked neither for a coppermine admin account, so she can not havae reproduced it. In the worst case, she just has seen the error message "You don't have permission to access this page", which is to be expected and concluded that this error message is the cause for your trouble. Ask your webhost to do their homework and take a look at the relevant section of the webserver's error log. You're welcome to refer to this thread. Imo you have just got a canned response from a junior supporter at your webhost's chat desk.
You have not done as suggested: the number of URI fields is set to 1 (should be 0). You have enabled notices display (should be disabled). Do your homework, then try again.

Joachim

I have contacted the hosting again. I now did get a better specialist in my own language. They checked the PHP and webalbum. With adding batch it's taken to long to check all the albums. I had over 130 albums and almost 70.000 pictures. So the search timed out after 30 seconds. So i deleted old albums. And after that is worked fine again  ;D  I got the tip for adding a map into a album http://www.circuitfotografie.nl/cpg1418/searchnew.php?startdir=Test if the map called Test...

Quote
P.S. The URL http://www.circuitfotografie.nl/cpg1418/ is just plain silly. You should rename that folder using your FTP app and then reflect the change in Coppermine's config, as explained in http://documentation.coppermine-gallery.net/en/export.htm#moving_folder . This is not related to the issues you're having, but just annoying.

I know its silly and i have never renamed it. It's very easy as i read the post that you have giving me.


The problem is solved! Thank you very much.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problems with adding photo's to a album
« Reply #8 on: April 10, 2010, 09:32:28 am »

That's fine. Then please do as suggested as per board rules.
Logged

wolliewonka

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Problems with adding photo's to a album
« Reply #9 on: April 11, 2010, 06:48:32 pm »

This is the link where i did solve my problem with http://forum.coppermine-gallery.net/index.php?topic=55356.0 

Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.