forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: jh_dempsey on August 07, 2006, 02:13:27 pm

Title: Problem Editing Files
Post by: jh_dempsey on August 07, 2006, 02:13:27 pm
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


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?
Title: Re: Problem Editing Files
Post by: Joachim Müller on August 07, 2006, 02:45:35 pm
Post a link to your coppermine-driven gallery for a start.
Title: Re: Problem Editing Files
Post by: jh_dempsey on August 07, 2006, 03:46:29 pm
The gallery is at

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

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

[Removed Debug Report]
Title: Re: Problem Editing Files
Post by: Sami on August 07, 2006, 08:52:25 pm
you are using 1.4.4 version , it's outdate version please update your gallery with most recent version ( 1.4.8 )
Title: Re: Problem Editing Files
Post by: Joachim Müller on August 07, 2006, 09:53:30 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.
Title: Re: Problem Editing Files
Post by: jh_dempsey on August 07, 2006, 11:08:28 pm
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.
Title: Re: Problem Editing Files
Post by: Sami on August 07, 2006, 11:34:38 pm
I think there is a something wrong with your categories , run category manager and check it...
Title: Re: Problem Editing Files
Post by: jh_dempsey on August 08, 2006, 12:05:10 am
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
Title: Re: Problem Editing Files
Post by: Sami on August 08, 2006, 01:00:41 am
The album list under editOnePic will get it's values from $public_albums_list array this array is container of this query:
Code: [Select]
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
Title: Re: Problem Editing Files
Post by: jh_dempsey on August 08, 2006, 01:04:19 am
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??