after "Sucessfull Uploads" ...add files to albums ... page cannot be displayed after "Sucessfull Uploads" ...add files to albums ... page cannot be displayed
 

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

Main Menu

after "Sucessfull Uploads" ...add files to albums ... page cannot be displayed

Started by Raphaela, March 19, 2006, 11:42:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Raphaela

(1) Upload file....
Now you may upload your files using the upload boxes below...

(2) Browse for a nominal picture, click continue button.

(3) Page comes up :

Successful Uploads
   1 uploads were successful.
    Please click 'Continue' to add the files to albums.

When I click the Continue button:

(3) The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. -- guessing that is th IE equivalent of a 500 error?

(I found a cpg1.3 topic http://forum.coppermine-gallery.net/index.php?topic=15106.0 but Igor never says if his issue had been resolved.)

What's the best way to begin troubleshooting this?

Raphaela


Raphaela

Re:
#2
DONE. Now I get the page cannot be displayed for db_input.php

When I hit the refresh button, a critical error window appears telling me :

Script called without the required parameter(s).

File: /home/virtual/site36/fst/var/www/html/gall/db_input.php - Line: 58

And line 58 is

if (!isset($_GET['event']) && !isset($_POST['event'])) {
    cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}

And yesterday we had fun with me deleted admin, but being able to create a row right in the database. Now, before you say that it is something wrong with that, I ALSO created a second user with Admin rights and am still getting all the exact same errors

http://www.moxzii.com/gall/

id: test
pword: test


Raphaela

Okay, so poor http://forum.coppermine-gallery.net/index.php?topic=27099.0 -AMANDA, as well as http://forum.coppermine-gallery.net/index.php?topic=26358.0 got snarked.

I have REMOVED the code, as I was not asked for it.
I have created a test user.
I am NOT self hosted on an windows machine.

In fact, everything the same as when I installed and used this last year, save that it was v1.3
(moved to a new server, wasn't smart enough to bring everything with me).

Hows that?

Joachim Müller

the test user account you posted doesn't have upload privileges, what are we suppossed to do with it? Never post admin accounts.

Beltaine

Alrighty, I am having the EXACT same problem, so rather than create a new thread, I'll add mine here.

http://208.182.242.4/coppermine/

user: test
pass: test

Only 1 Album so far that has posting priveledges: Read Across America 2006

OS is Fedora Core 4

Give it a whirl, I'm stumped.

Joachim Müller

Hard to say - you have admin approval enabled. I can't tell if the upload went OK or not... ::)

Beltaine

Hrmmm... pic uploaded. I could see the image on the approval page.  I went ahead and did the approval, got the following error in editpics.php.


No image to display

File: /var/www/html/coppermine/editpics.php - Line: 496

Also going to turn off admin approval. My oops.


QuoteUSER:
------------------
Array
(
    [ID] => afe661fb5b6fd6ac4b4fbb77477af2ef
    [am] => 1
    [lang] => english
)

==========================
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
        [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 cpg143_filetypes; (0.001s)
        [1] => select * from cpg143_plugins order by priority asc; (0s)
        [2] => delete from `coppermine`.cpg143_sessions where time<1143138408 and remember=0; (0s)
        [3] => delete from `coppermine`.cpg143_sessions where time<1141932408; (0s)
        [4] => select user_id from `coppermine`.cpg143_sessions where session_id=md5("9ef101b0e1b59e0ddd3444034245f1846c5210b7a418467bb3cb138d8888fc9b"); (0s)
        [5] => select user_id as id, user_password as password from `coppermine`.cpg143_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 `coppermine`.cpg143_users AS u INNER JOIN `coppermine`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `coppermine`.cpg143_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 cpg143_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
        [10] => update `coppermine`.cpg143_sessions set time='1143142008' where session_id=md5('9ef101b0e1b59e0ddd3444034245f1846c5210b7a418467bb3cb138d8888fc9b'); (0s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-03-23 13:26:48' (0s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='208.182.241.154' OR ip_addr='208.182.241.154' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT DISTINCT aid, title, IF(category = 0, CONCAT('> ', title), CONCAT(name,' < ',title)) AS cat_title FROM cpg143_albums, cpg143_categories WHERE category < '10000' AND (category = 0 OR category = cid) ORDER BY cat_title (0.001s)
        [15] => SELECT aid, title FROM cpg143_albums WHERE category='10001'  OR category='10001' ORDER BY title (0s)
        [16] => SELECT category, filepath, filename, owner_id FROM cpg143_pictures, cpg143_albums WHERE cpg143_pictures.aid = cpg143_albums.aid AND pid='1' (0s)
        [17] => UPDATE cpg143_pictures SET aid = '1', title = 'Testing', caption = 'http://forum.coppermine-gallery.net/index.php?topic=29353.msg136583#msg136583
    GauGau', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '', approved = 'YES' WHERE pid='1' LIMIT 1 (0s)
        [18] => SELECT count(*) FROM cpg143_pictures WHERE approved = 'NO' (0s)
        [19] => SELECT pid, owner_id FROM cpg143_pictures WHERE owner_id != 0 AND owner_name = '' (0s)
        [20] => SELECT * FROM cpg143_pictures WHERE approved = 'NO' ORDER BY pid LIMIT 0, 25 (0s)
        [21] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [mode] => upload_approval
        [start] => 0
        [count] => 25
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [count] => 25
        [pid] => Array
            (
               
  • => 1
            )

        [aid1] => 1
        [title1] => Testing
        [caption1] => http://forum.coppermine-gallery.net/index.php?topic=29353.msg136583#msg136583
    GauGau
        [keywords1] =>
        [user11] =>
        [user21] =>
        [user31] =>
        [user41] =>
        [approved1] => YES
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.4 - OK
    ------------------
    mySQL version: 4.1.12
    ------------------
    Coppermine version: 1.4.4(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
    XPM Support:
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.12
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2.2
    Linked Version 1.2.2.2
    ==========================
    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/pear | .:/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 0.075 seconds - 22 queries in 0.003 seconds - Album set : ; Meta set: ;

Beltaine

Hrmmm... one more piece of the puzzle.

I dug through my hard drive and found a smaller picture and it uploaded with no trouble.

Could it be a GD problem? Should I try loading ImageMagic?

Beltaine

Ah ha!

Installed Imagemagick, changed settings accordingly and it's working like a champ now.

For some reason GD either can't handle it, or isn't working correctly, I'm not going to bother to find out because it's working with IM now.