coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: Sebbit on November 19, 2004, 05:36:14 PM

Title: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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:
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.
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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.
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Joachim Müller 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
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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.
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Joachim Müller on November 21, 2004, 08:22:50 AM
I was able to post a comment just fine, see http://www.studentenpark.de.vu/displayimage.php?pos=-729 and http://www.studentenpark.de.vu/displayimage.php?pos=-729

Joachim
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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  ???
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Casper on November 21, 2004, 02:49:39 PM
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.
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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:
    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)?
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Sebbit 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!
Title: Re: Missing Parameter(s) when posting a comment in my gallery
Post by: Joachim Müller 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