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
-
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?
-
Post a link to your coppermine-driven gallery for a start.
-
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]
-
you are using 1.4.4 version , it's outdate version please update your gallery with most recent version ( 1.4.8 )
-
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.
-
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.
-
I think there is a something wrong with your categories , run category manager and check it...
-
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
-
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('> ', title), CONCAT(name,' < ',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
-
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??