Missing Parameter(s) when posting a comment in my gallery Missing Parameter(s) when posting a comment in my gallery
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Missing Parameter(s) when posting a comment in my gallery

Started by Sebbit, November 19, 2004, 05:36:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sebbit

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:
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.

Sebbit

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.

Joachim Müller

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

Joachim

Sebbit

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.

Joachim Müller


Sebbit

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  ???

Casper

Quote from: Sebbit on November 21, 2004, 02:26:55 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.
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

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:
    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)?

Sebbit

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!

Joachim Müller

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