Problem Editing Files Problem Editing Files
 

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]

Main Menu

Problem Editing Files

Started by jh_dempsey, August 07, 2006, 02:13:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jh_dempsey

Hi Guys

Im having problems editing files within my albums. Whenever i make any changes to any pictures and hit 'Apply Modifications', i get the error


  • Script called without the required parameter(s). (aid3345)
    File: /home/leedsca/public_html/gallery/editpics.php - Line: 84

I have a feeling it is something to do with the Albums, as the Album drop down menu on each photo is empty. A quick check on CPG on another server shows that this DDM should be populated with the names of all the present albums.

Anyone able to tell me hot to fix this problem?

Joachim Müller

Post a link to your coppermine-driven gallery for a start.

jh_dempsey

#2
The gallery is at

http://www.leedscanoeclub.org.uk/gallery

and a test account is set up using 'test' as both the username and password

[Removed Debug Report]

Sami

you are using 1.4.4 version , it's outdate version please update your gallery with most recent version ( 1.4.8 )
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

Quote from: jh_dempsey on August 07, 2006, 03:46:29 PM
Here is the debug report copied from the editpics.php page:
Haven't asked for it. Don't post debug_output unless requested - it clutters threads.
As bmossavari suggested, you need to upgrade. That's why I asked for a link: happens often that users run outdated versions and ask for fixes for issues that existed in previous versions. There's a reason why we release new versions: they contain fixes.

jh_dempsey

Ive updated to new version, but still the problem remains.

Ive included a screenshot of how my editpics.php page looks, and shows you what i think is causing the problem.
The fact that there are no entries in the album DDM means that no album id is being submitted when i hit apply, hene the error of a missing parameter.

Sami

I think there is a something wrong with your categories , run category manager and check it...
‍I don't answer to PM with support question
Please post your issue to related board

jh_dempsey

I have no categories set up in my Gallery.

All the category id's in the cpg_albums database table have the category set to '0' (zero)

Other album lists, such as those in the albmgr.php page display fine

Sami

The album list under editOnePic will get it's values from $public_albums_list array this array is container of this query:

SELECT DISTINCT aid, title, IF(category = 0, CONCAT('&gt; ', title), CONCAT(name,' &lt; ',title)) AS cat_title FROM {$CONFIG['TABLE_ALBUMS']} LEFT JOIN {$CONFIG['TABLE_CATEGORIES']} ON category = cid WHERE (category < '" . FIRST_USER_CAT . "' AND uploads = 'YES' $forbidden_set_alt) OR aid='{$CURRENT_PIC['aid']}' ORDER BY cat_title

and if you don't have any categories then the FIRST_USER_CAT could be 0 and in this case your query will send back nothing wich cause the issue
‍I don't answer to PM with support question
Please post your issue to related board

jh_dempsey

OK, so what do i need to do to fix the problem??!!

Am i going to have to create a category, and then shift all the albums into that category??