First :
Might be a bug in self_user registration sidebar_plugin.
When i select default level to (no access (-1)) for new account in admin panel then author will be created without any access level nor group level.
(check in authors management and groups management - an error appears in serendipity because new user is not right defined)
an idea should be to set group level instead of user level in self_user registration admin panel, with defaul user level as standard author for example and group selected to one of all group list (more restricted for example)
Secondly:
Notification email in not sent to admin when a new user is created in serendipity sef_user_register sidebar_plugin or event plugin.
mail is sent to new user but not to admin' email spécified in copyto.
Regards
Frandy
Self Register Bug
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Self Register Bug
Yes, the self registration plugin is not yet up to date to work with usergroups. But which error do you get? And can you tell the SQL data for the created user? What is his userlevel set to in the serendipity_authors table?
About the mail issue, all users with userlevel 255 are added to the list of CC: recipients of the mail. Can you see the headers of the email that gets send to the user? Can you please paste that here?
Regards,
Garvin
About the mail issue, all users with userlevel 255 are added to the list of CC: recipients of the mail. Can you see the headers of the email that gets send to the user? Can you please paste that here?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Guest
Hi Garvin,
when a new user creates an account using add_user_event page and validates link into email he received, account i validated not attached to a group.
and when i go to admin page, authors management, i edit new user and this error appears :
Warning: Invalid argument supplied for foreach() in /blog/include/functions_config.inc.php on line 758
i can see no group is selected for this new user
if i select a group and store then the error desappears.
About mail
cc is filled with my admin_email (userlevel 255) but no mail is received att his email adress.
how to use phpmyadmin to test mail function ?
Regards
Frandy
when a new user creates an account using add_user_event page and validates link into email he received, account i validated not attached to a group.
and when i go to admin page, authors management, i edit new user and this error appears :
Warning: Invalid argument supplied for foreach() in /blog/include/functions_config.inc.php on line 758
i can see no group is selected for this new user
if i select a group and store then the error desappears.
About mail
cc is filled with my admin_email (userlevel 255) but no mail is received att his email adress.
how to use phpmyadmin to test mail function ?
Regards
Frandy
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Thanks, I fixed the error message.
The new user is not added to any group, that was what I was saying with "is not yet up to date to work with usergroups". The plugin needs to be patched for that, and I have no time yet.

The new user is not added to any group, that was what I was saying with "is not yet up to date to work with usergroups". The plugin needs to be patched for that, and I have no time yet.
Then you must talk to your web provider and ask him why his MTA doesn't support CCs.cc is filled with my admin_email (userlevel 255) but no mail is received att his email adress.
You cannot use phpmyadmin for that. You can use a PHP script:how to use phpmyadmin to test mail function ?
Code: Select all
<?php
$subject = 'Testmail';
$message = 'Testmail';
$to = 'user@somehost.com';
$fromName = 'YourName';
$fromMail = 'you@yourhost.com';
$cc = 'admin@yourhost.com, admin2@yourhost.com';
$headers = array();
$headers[] = 'Reply-To: "'. $fromName .'" <'. $fromMail .'>';
$headers[] = 'CC: '. $cc;
$headers[] = 'X-Mailer: Serendipity/';
$headers[] = 'X-Engine: PHP/'. phpversion();
$headers[] = 'Message-ID: <'. md5(microtime() . uniqid(time())) .'@'. $_SERVER['HTTP_HOST'] .'>';
$headers[] = 'MIME-Version: 1.0';
$headers[] = 'Content-Type: text/plain; charset="UTF-8"';
echo mail($to, $subject, $message, implode("\n", $headers));
?>
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Frandy