Self Register Bug

Found a bug? Tell us!!
Post Reply
Frandy

Self Register Bug

Post by Frandy »

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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Self Register Bug

Post by garvinhicking »

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
# 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/
Guest

Post by 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

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.
cc is filled with my admin_email (userlevel 255) but no mail is received att his email adress.
Then you must talk to your web provider and ask him why his MTA doesn't support CCs. :-)
how to use phpmyadmin to test mail function ?
You cannot use phpmyadmin for that. You can use a PHP script:

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/
Frandy

Post by Frandy »

Pffffffffffffffff You're right
MTA provider doesn't support Cc
might be anti-spam security......


Thanks a lot Garvin
Post Reply