coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: Vargha on June 05, 2006, 04:24:50 PM

Title: Critical error while Approving an uploded file - Script called without the re...
Post by: Vargha on June 05, 2006, 04:24:50 PM
hi guys
whenever i try to approve an uploaded file, it says this error


Critical error
Script called without the required parameter(s).

File: E:\Rangarang's Server\www\Buddies\editpics.php - Line: 96

can anyone help me please  :'(
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Paver on June 05, 2006, 10:49:14 PM
It works fine on my 1.4.6 testbed.

What version are you running?  Do you have any plugins or hacks/mods applied?

Looking at editpics.php, I believe that error message occurs because you're missing a hidden input field 'pid[]'.  Take a look at your HTML source on the approval page (before you submit & get the error message) and search for 'pid[]'.  If you find a field or multiple fields, then I'm not sure why you're getting this error message.  If you don't find any fields, then I'm not sure why you're missing that field since editpics.php should create one for each picture to be approved.
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Vargha on June 06, 2006, 12:09:27 AM
im usin 1.4.6 latest version and yes i only have Onlinestats (Who is online) v1.2 plugin installed and im sure my editpics.php isnt missing anything, please help  :'(
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Vargha on June 06, 2006, 12:18:51 AM
fixed thnx  ;D i just got angry an simple reinstalled it lmao  ;D
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Paver on June 06, 2006, 12:28:54 AM
Since I cannot reproduce the problem, it's going to be difficult to troubleshoot blindly.

Have you tried using a core theme?  You can switch it just for you by putting "?theme=classic" in the URL.  To go back to the default theme, you'll have to clear the cookie for your domain and re-login.  There's only a slim chance it's a theme customization issue, but might as well try it.

Depending upon what you want to do, you can either send me an admin account by private message or you can save the editpics.php page to a file and attach it to your post here.  If you do the latter, make sure to save the actual editpics.php and not the frame outside it (which your site uses).  In Firefox, I right-click on the frame and choose "Save Page As".
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Joachim Müller on June 06, 2006, 08:03:05 AM
Quote from: vargha on June 05, 2006, 04:24:50 PM
File: E:\Rangarang's Server\www\Buddies\editpics.php - Line: 96
A special char in the path to the webroot is not a bright idea, especially a single quote/apostrophe.
Title: Re: Critical error while Approving an uploded file - Script called without the r
Post by: Vargha on June 19, 2006, 09:43:18 AM
can you please mark dis as solved  :)
the problem was with my imagemagick
i installed gd an it worked well :D