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.
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.
Obviously, the URL is http://saugplatz.de/gallery/ - so we just need a test user account (non-admin) to check this further...
Joachim
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.
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
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 ???
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.
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)?
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!
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