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: Missing Parameter(s) when posting a comment in my gallery  (Read 6409 times)

0 Members and 1 Guest are viewing this topic.

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Missing Parameter(s) when posting a comment in my gallery
« on: November 19, 2004, 05:36:14 pm »

I transferred my gallery on a new server and everything runs well now, but there's still a problem:

When I post a comment, I get a critical error saying

Script called without the required parameter(s).
File: /www/usr10843/saugplatz.de/htdocs/gallery/db_input.php -Line: 41

Line 41 and 42 in my db_input.php are:
Code: [Select]
if (!isset($HTTP_GET_VARS['event']) && !isset($HTTP_POST_VARS['event'])) {
    cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
.

What's wrong with that? On my old server everything ran with that file.
Did I forget to set the attributes to 777 on more folders? Or is it because my new server runs in php safe mode?

edit: When I navigate to the page where I left my comment, the comment is listed normally, although the error occured....

Thank you for your help in advance.
« Last Edit: November 21, 2004, 11:34:29 pm by TranzNDance »
Logged

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #1 on: November 20, 2004, 12:03:30 am »

There must be something wrong with my email configuration because when i disable the admin email notification on new comments the error described above doesn_t occur.

But the variables in the mailer.inc.php are set right.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #2 on: November 20, 2004, 10:20:53 am »

Obviously, the URL is http://saugplatz.de/gallery/ - so we just need a test user account (non-admin) to check this further...

Joachim
Logged

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #3 on: November 20, 2004, 10:23:35 pm »

user: testuser
password: coppermine

admin email notification on new comments is now on.
post a comment and see the error, i hope you can help me.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #5 on: November 21, 2004, 02:26:55 pm »

No error occured?

I posted a new comment on the picture and got the error again.
Other users of my gallery get the error "You've already posted the last comment on the picture. Please edit your last comment". But the last comment is from another user.  :o

So, try to comment again on http://www.studentenpark.de.vu/displayimage.php?pos=-729
If you still get no error, I can't understand the world  ???
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #6 on: November 21, 2004, 02:49:39 pm »

Other users of my gallery get the error "You've already posted the last comment on the picture. Please edit your last comment". But the last comment is from another user.  :o

This is what happened when I posted.  Clicking the submit button seemed not to do anything, and the page did not refresh.
But when I forced a refresh, my comment was shown.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #7 on: November 21, 2004, 10:08:58 pm »

Posting the first comment as admin doesn't work. Same error but no comment shown after refresh....  :-\\
Posting the ferst comment as normal user let the following error occure:

Could not connect to smtp host : 115 : Operation now in progress

File: /www/usr10843/saugplatz.de/htdocs/gallery/include/mailer.inc.php - Zeile: 150


Warning: fsockopen(): unable to connect to mail.saugplatz.de:25 in /www/usr10843/saugplatz.de/htdocs/gallery/include/mailer.inc.php on line 149

These lines are:
Code: [Select]
    if (!$socket = fsockopen($CONFIG['smtp_host'], 25, $errno, $errstr, 20)) {
        cpg_die(ERROR, "Could not connect to smtp host : $errno : $errstr", __FILE__, __LINE__);


Is it a problem that my server need a authentification (pop3 before smtp)?
« Last Edit: November 21, 2004, 10:31:11 pm by Sebbit »
Logged

Sebbit

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • PITA - stunt page
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #8 on: November 21, 2004, 11:25:29 pm »

The error is solved!

The problem was, that my mailer.inc.php looked like that:
$CONFIG['smtp_host'] = 'mail.saugplatz.de';
$CONFIG['smtp_username'] = 'sebbit@saugplatz.de';
$CONFIG['smtp_password'] = '***mypasswd***';

and with the following configuration it works:
$CONFIG['smtp_host'] = '';
$CONFIG['smtp_username'] = '';
$CONFIG['smtp_password'] = '';


Thank you for trying to help me!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Missing Parameter(s) when posting a comment in my gallery
« Reply #9 on: November 22, 2004, 06:59:04 am »

quite obviously you're not using smtp, but sendmail on your server, so this was just a matter of reading the docs carefully after all. Anyway, good you were able to solve this.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.