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: Problem Editing Files  (Read 3708 times)

0 Members and 1 Guest are viewing this topic.

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Problem Editing Files
« 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?
« Last Edit: August 07, 2006, 03:50:41 pm by jh_dempsey »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Problem Editing Files
« Reply #1 on: August 07, 2006, 02:45:35 pm »

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

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem Editing Files
« Reply #2 on: August 07, 2006, 03:46:29 pm »

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]
« Last Edit: August 07, 2006, 11:09:01 pm by jh_dempsey »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Problem Editing Files
« Reply #3 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 )
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Problem Editing Files
« Reply #4 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.
Logged

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem Editing Files
« Reply #5 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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Problem Editing Files
« Reply #6 on: August 07, 2006, 11:34:38 pm »

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

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem Editing Files
« Reply #7 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
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Problem Editing Files
« Reply #8 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

jh_dempsey

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem Editing Files
« Reply #9 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??
Logged
Pages: [1]   Go Up
 

Page created in 0.051 seconds with 20 queries.