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: [Solved]: Fatal Error in editpics.php  (Read 4286 times)

0 Members and 1 Guest are viewing this topic.

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
[Solved]: Fatal Error in editpics.php
« on: December 16, 2008, 02:27:20 pm »

Hey All

I have recently started to get an error when i try to edit all the pictures in my album (i go to the coppermine home page and click the "edit files" button underneath one of my albums)

As soon as i click "Apply Modifications" i get the following error message:

Code: [Select]
Script called without the required parameter(s). (aid5927)

File: /customers/leedscanoeclub.com/leedscanoeclub.com/httpd.www/gallery/editpics.php - Line: 86

I also get the following notice:
Code: [Select]
/editpics.php

    * Notice line 101: Undefined index: galleryicon

Does anyone have any idea whats causing this?
My coppermine version is 1.4.18
The only other thing that may be worth mentioning is that i have the JUpload plugin installed. Otherwise everything else is as standard.

My gallery can be found at:
http://www.leedscanoeclub.com/gallery

Let me know if you need anything else like the debug report

Thanks

Jonathan Dempsey
Leeds Canoe Club
« Last Edit: December 17, 2008, 05:44:50 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Fatal Error in editpics.php
« Reply #1 on: December 16, 2008, 02:51:06 pm »

Go to phpinfo.php in your web browser and look for any references to 'suhosin'.
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #2 on: December 16, 2008, 03:03:30 pm »

Didnt find any reference to "suhosin" in the phpinfo.php file...
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Fatal Error in editpics.php
« Reply #3 on: December 16, 2008, 03:33:17 pm »

Download and upgrade to 1.4.19 as wel.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4822
    • Windsurf.me
Re: Fatal Error in editpics.php
« Reply #4 on: December 16, 2008, 05:58:20 pm »

Didnt find any reference to "suhosin" in the phpinfo.php file...

Did you browse to your phpinfo.php file (or go via admin tools), or did you look at the actual file?

If you missunderstood and examined the actual file you will not see the references mentioned. You need to browse to it as suggested.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #5 on: December 16, 2008, 06:51:44 pm »

No, i browsed to it through my web browser and got the "standard" php info page contained within the coppermine template.
A search using Firefox's built in search tool found no reference to "suhosin"

(Doing research to actually find out what "suhosin" is, i can tell you that i never installed that addon/exstension to PHP and i highly doubt my webhosts would have installed this)
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #6 on: December 17, 2008, 01:27:38 pm »

Updated to 1.4.19 and still i get the same problem and error message

Code: [Select]
Critical error
Script called without the required parameter(s). (aid5927)

File: /customers/leedscanoeclub.com/leedscanoeclub.com/httpd.www/gallery/editpics.php - Line: 86

and

Code: [Select]
Notices
/include/functions.inc.php

    * Notice line 134: Undefined index: lang

/editpics.php

    * Notice line 101: Undefined index: galleryicon
Logged

Nibbler

  • Guest
Re: Fatal Error in editpics.php
« Reply #7 on: December 17, 2008, 01:45:36 pm »

Please post the debug output that you get when you submit the form.
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #8 on: December 17, 2008, 01:50:13 pm »

There are 32 files in the album i tried to update. All i have done here when submitting the form is to change the title of the first picture to "Victoria Falls"

Debug Report:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 2019f95adff85310a4d11ea637ea7884
    [am] => 1
    [liv] => Array
        (
            [0] => 5488
            [1] => 5490
            [2] => 5625
            [3] => 5619
            [4] => 5615
        )

    [lap] => 1
)

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

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
    [1] => select * from cpg14x_plugins order by priority asc; (0.002s)
    [2] => delete from `leedscanoeclub_`.cpg14x_sessions where time<1229514526 and remember=0; (0.001s)
    [3] => delete from `leedscanoeclub_`.cpg14x_sessions where time<1228308526; (0s)
    [4] => select user_id from `leedscanoeclub_`.cpg14x_sessions where session_id = '0d3909870b951de9c14f4b87d0f5278b' (0.001s)
    [5] => select user_id as id, user_password as password from `leedscanoeclub_`.cpg14x_users where user_id=5 (0.001s)
    [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 `leedscanoeclub_`.cpg14x_users AS u INNER JOIN `leedscanoeclub_`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='5' (0s)
    [7] => SELECT user_group_list FROM `leedscanoeclub_`.cpg14x_users AS u WHERE user_id='5' 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 `leedscanoeclub_`.cpg14x_sessions set time='1229518126' where session_id = '0d3909870b951de9c14f4b87d0f5278b' (0s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 5 (0s)
    [12] => DELETE FROM cpg14x_banned WHERE expiry < '2008-12-17 12:48:46' (0s)
    [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='80.254.146.4' OR ip_addr='80.254.146.4' OR user_id=5) AND brute_force=0 (0s)
    [14] => SELECT title, category FROM cpg14x_albums WHERE aid = '195' (0s)
    [15] => SELECT DISTINCT aid, title, IF(category = 0, CONCAT('> ', title), CONCAT(name,' < ',title)) AS cat_title FROM cpg14x_albums, cpg14x_categories WHERE category < '10000' AND (category = 0 OR category = cid) ORDER BY cat_title (0s)
    [16] => SELECT aid, title FROM cpg14x_albums WHERE category='10005'  OR category='10005' ORDER BY title (0s)
    [17] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.001s)
)

==========================
GET :
------------------
Array
(
    [album] => 195
    [start] => 0
    [count] => 25
)

==========================
POST :
------------------
Array
(
    [count] => 25
    [pid] => Array
        (
            [0] => 5927
            [1] => 5928
            [2] => 5929
            [3] => 5930
            [4] => 5931
            [5] => 5932
            [6] => 5933
            [7] => 5934
            [8] => 5935
            [9] => 5936
            [10] => 5937
            [11] => 5938
            [12] => 5939
            [13] => 5940
            [14] => 5941
            [15] => 5942
            [16] => 5943
            [17] => 5944
            [18] => 5945
            [19] => 5946
            [20] => 5947
            [21] => 5948
            [22] => 5949
            [23] => 5950
            [24] => 5951
        )

    [title5927] => Victoria Falls
    [caption5927] =>
    [keywords5927] =>
    [user15927] =>
    [user25927] =>
    [user35927] =>
    [user45927] =>
    [title5928] => 10
    [caption5928] =>
    [keywords5928] =>
    [user15928] =>
    [user25928] =>
    [user35928] =>
    [user45928] =>
    [title5929] => 11
    [caption5929] =>
    [keywords5929] =>
    [user15929] =>
    [user25929] =>
    [user35929] =>
    [user45929] =>
    [title5930] => 12
    [caption5930] =>
    [keywords5930] =>
    [user15930] =>
    [user25930] =>
    [user35930] =>
    [user45930] =>
    [title5931] => 13
    [caption5931] =>
    [keywords5931] =>
    [user15931] =>
    [user25931] =>
    [user35931] =>
    [user45931] =>
    [title5932] => 14
    [caption5932] =>
    [keywords5932] =>
    [user15932] =>
    [user25932] =>
    [user35932] =>
    [user45932] =>
    [title5933] => 15
    [caption5933] =>
    [keywords5933] =>
    [user15933] =>
    [user25933] =>
    [user35933] =>
    [user45933] =>
    [title5934] => 15a
    [caption5934] =>
    [keywords5934] =>
    [user15934] =>
    [user25934] =>
    [user35934] =>
    [user45934] =>
    [title5935] => 16
    [caption5935] =>
    [keywords5935] =>
    [user15935] =>
    [user25935] =>
    [user35935] =>
    [user45935] =>
    [title5936] => 17
    [caption5936] =>
    [keywords5936] =>
    [user15936] =>
    [user25936] =>
    [user35936] =>
    [user45936] =>
    [title5937] => 18
    [caption5937] =>
    [keywords5937] =>
    [user15937] =>
    [user25937] =>
    [user35937] =>
    [user45937] =>
    [title5938] => 19
    [caption5938] =>
    [keywords5938] =>
    [user15938] =>
    [user25938] =>
    [user35938] =>
    [user45938] =>
    [title5939] => 2
    [caption5939] =>
    [keywords5939] =>
    [user15939] =>
    [user25939] =>
    [user35939] =>
    [user45939] =>
    [title5940] => 20
    [caption5940] =>
    [keywords5940] =>
    [user15940] =>
    [user25940] =>
    [user35940] =>
    [user45940] =>
    [title5941] => 21
    [caption5941] =>
    [keywords5941] =>
    [user15941] =>
    [user25941] =>
    [user35941] =>
    [user45941] =>
    [title5942] => 22
    [caption5942] =>
    [keywords5942] =>
    [user15942] =>
    [user25942] =>
    [user35942] =>
    [user45942] =>
    [title5943] => 23
    [caption5943] =>
    [keywords5943] =>
    [user15943] =>
    [user25943] =>
    [user35943] =>
    [user45943] =>
    [title5944] => 24
    [caption5944] =>
    [keywords5944] =>
    [user15944] =>
    [user25944] =>
    [user35944] =>
    [user45944] =>
    [title5945] => 25
    [caption5945] =>
    [keywords5945] =>
    [user15945] =>
    [user25945] =>
    [user35945] =>
    [user45945] =>
    [title5946] => 26
    [caption5946] =>
    [keywords5946] =>
    [user15946] =>
    [user25946] =>
    [user35946] =>
    [user45946] =>
    [title5947] => 27
    [caption5947] =>
    [keywords5947] =>
    [user15947] =>
    [user25947] =>
    [user35947] =>
    [user45947] =>
    [title5948] => 3
    [caption5948] =>
    [keywords5948] =>
    [user15948] =>
    [user25948] =>
    [user35948] =>
    [user45948] =>
    [title5949] => 3a
    [caption5949] =>
    [keywords5949] =>
    [user15949] =>
    [user25949] =>
    [user35949] =>
    [user45949] =>
    [title5950] => 3b
    [caption5950] =>
    [keywords5950] =>
    [user15950] =>
    [user25950] =>
    [user35950] =>
    [user45950] =>
    [title5951] => 3c
    [caption5951] =>
    [keywords5951] =>
    [user15951] =>
    [user25951] =>
    [user35951] =>
    [user45951] =>
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.8 - OK
------------------
mySQL version: 5.0.32-Debian_7etch8-log
------------------
Coppermine version: 1.4.19(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
JPG 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 | On | On
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
safe_mode_gid | Off | Off
safe_mode_include_dir | /usr/lib/php5 | /usr/lib/php5
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 | disk_total_space, diskfreespace
file_uploads | On | On
include_path | .: | .:
open_basedir | no value | no value
==========================
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.065 seconds - 18 queries in 0.007 seconds - Album set : ; Meta set: ;
« Last Edit: December 17, 2008, 02:00:54 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Fatal Error in editpics.php
« Reply #9 on: December 17, 2008, 02:00:37 pm »

Is the album selection box displayed and populated when you look at the page?
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #10 on: December 17, 2008, 02:06:52 pm »

There is no album selection box on the page. This is what the page looks like:

www.leedscanoeclub.com/cpg_error.JPG *Add picture to post, no external linking*
« Last Edit: December 17, 2008, 02:09:54 pm by Hein Traag »
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #11 on: December 17, 2008, 02:08:52 pm »

Ignore the comment above. Looking at the picture i posted above, it seems like the album drop down menu isn't populated
Logged

Nibbler

  • Guest
Re: Fatal Error in editpics.php
« Reply #12 on: December 17, 2008, 02:52:20 pm »

I've seen this before. This happens when you manually delete the user galleries category. You're not supposed to do that. Add it back in using

Code: [Select]
INSERT INTO cpg14x_categories (cid, name, description) VALUES (1, 'User galleries', 'This category contains albums that belong to Coppermine users.');
in phpmyadmin.
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal Error in editpics.php
« Reply #13 on: December 17, 2008, 05:27:53 pm »

Thanks Nibbler, that solved the problem.

The reason i will have deleted the user gallery category is that i didnt want it to appear on my album list page (see attatched image)

Is there any way i can make it so that this doesn't appear on the page, without deleting it from the database?

Logged

Nibbler

  • Guest
Re: Fatal Error in editpics.php
« Reply #14 on: December 17, 2008, 05:44:38 pm »

Delete the album that's inside it and it won't be displayed.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.