WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => General Help & Support => Topic started by: Damaverick on April 07, 2017, 03:58:31 PM

Title: Can't register anymore at login form
Post by: Damaverick on April 07, 2017, 03:58:31 PM
Hello,

I already googled a while but couldn't find a solution to my problems.
Maybe I'm overlooking something, but I hope someone could help me.

A while ago I upgrades the WebsiteBaker installation to 2.8.3+SP7
Everything seemed to work just fine, but now we were testing the registration at the login form (frontend /account/signup.php page) but it doesn't seem to accept any email adres and the account isn't created.

Has anyone experienced this problem? Or could anyone help to find a solution.
The website is http://www.tvstiens.nl en via the login pages (via Account aanmaken) you can access the page to create an account.
Direct link is: http://www.tvstiens.nl/account/signup.php

Kind regards
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 14, 2017, 01:05:06 PM
Anyone?  :|
Title: Re: Can't register anymore at login form
Post by: Ruud on April 14, 2017, 01:35:27 PM
It seems to be an error on sending the email.
If you use SMTP as mailtransport setting, there is a problem that SP7 tries to use a command that is normally not supported on shared hosts.

Changing the setting to "PHPmail" might fix it. (Geavanceerde instellingen, alleen zichtbaar voor de "superadmin" USER_ID=1)

If using PHPmail is no option for you, you can use the fix described in the message here: http://forum.WebsiteBaker.org/index.php/topic,29064.msg206653.html#msg206653


Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 14, 2017, 01:59:43 PM
from my point... the mailproblem is solved in WB 2.10.0
i hope, you read the News here in the top of the forum about, specially the read marked news.

P.S.: the rest of the script (add a account etc) works only, if the mailtransport works and no error reports for that step

 
Title: Re: Can't register anymore at login form
Post by: contactjw on April 15, 2017, 07:12:55 PM
from my point... the mailproblem is solved in WB 2.10.0
i hope, you read the News here in the top of the forum about, specially the read marked news.

P.S.: the rest of the script (add a account etc) works only, if the mailtransport works and no error reports for that step

Just for clarification jacobi22, you're saying the problem with registration and smtp in SP7 is fixed in 2.10.0?

Also, I have read the red marked news. What exactly are you referring? Are you referring to the new signup.php and signup2.php files in particular? Do these files address any of the issues with the smtp and registration problems? Or is there something else that I missed that you are referring to?
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 16, 2017, 01:17:16 AM
if you write, your problem is with SP7 and my answer is: this problem is solved in WB 2.10, what do you think, what i refering???  :roll: :roll: :roll:

problem in SP7 is the third party addon phpmailer and the connection from wb to this mailer and maybe a wrong setting in the wb-mailer, if your server use a different or not standard path to sendmail .
i cannot give you the instruction how to fix your sp7, because, the actual version is WB 2.10.x
its possible, that WB 2.10.x solved your problem, but its also possible, that you use the wrong mail settings or that your server doesnt work with php-mail

the problem in signup.php and signup2.php (http://forum.WebsiteBaker.org/index.php/topic,30187.0.html) (in all wb-versions) was a possible mysql-injection. it has nothing to do with your mailproblem
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 17, 2017, 09:26:28 PM
It seems to be an error on sending the email.
If you use SMTP as mailtransport setting, there is a problem that SP7 tries to use a command that is normally not supported on shared hosts.

Changing the setting to "PHPmail" might fix it. (Geavanceerde instellingen, alleen zichtbaar voor de "superadmin" USER_ID=1)

If using PHPmail is no option for you, you can use the fix described in the message here: http://forum.WebsiteBaker.org/index.php/topic,29064.msg206653.html#msg206653

Thnx for your answer, but my settings are on PHPmail and not on SMTP
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 17, 2017, 09:28:33 PM
from my point... the mailproblem is solved in WB 2.10.0
i hope, you read the News here in the top of the forum about, specially the read marked news.

P.S.: the rest of the script (add a account etc) works only, if the mailtransport works and no error reports for that step

I did read the Red news section, but I couldn't find a solution to my problem in it, but maybe I'm missing something.
But I'm going to try to update to 2.10
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 17, 2017, 10:54:04 PM
I upgraded to 2.10 and the problem still exists.

1. I can send password forget emails
2. I can send contact form emails

I send it with phpmail, but as 1 and 2 show, the problem doesn't seem to be related to the phpmailer.

When I choose to create the account I get the page http://www.tvstiens.nl/account/signup.php (already the new fixed ones for the SQL injection problem)
I then fill in the form and choose the button "account aanmaken" (create account)
The form sends me back to the home page and no account is created when I check the backend.
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 18, 2017, 12:54:43 AM
Quote from: jacobi22
but its also possible, that you use the wrong mail settings or that your server doesnt work with php-mail

variant 1: some providers allowed only sender-email-adress from the same domain (or in other words: the mail adress in WB-Settings-> advanced settings must be from the same domain like the website (Domain: www.example.com // EMail email@example.com)

variant 2: the mail is going out, but was not delivered/received
you see this in the form-modul in your submission list, if the formular-success-mail is going out, the script add a copy in the submission list.
 
variant 3: also possible: the provider stop's the support for PHP-Mail. try a little test, maybe from here -> https://www.conetix.com.au/support/article/simple-php-mail-test
create a file like the instruction there, use your own datas for $from and $to (recommended the same datas from the wb-installation), upload the script to the wb-root-directory and call it in the browser
make a copy of possible messages after sending
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 18, 2017, 01:40:24 AM
Quote from: jacobi22
but its also possible, that you use the wrong mail settings or that your server doesnt work with php-mail

variant 1: some providers allowed only sender-email-adress from the same domain (or in other words: the mail adress in WB-Settings-> advanced settings must be from the same domain like the website (Domain: www.example.com // EMail email@example.com)

variant 2: the mail is going out, but was not delivered/received
you see this in the form-modul in your submission list, if the formular-success-mail is going out, the script add a copy in the submission list.
 
variant 3: also possible: the provider stop's the support for PHP-Mail. try a little test, maybe from here -> https://www.conetix.com.au/support/article/simple-php-mail-test
create a file like the instruction there, use your own datas for $from and $to (recommended the same datas from the wb-installation), upload the script to the wb-root-directory and call it in the browser
make a copy of possible messages after sending

I can test it, but I think it isn't a problem with the PHPmailer.

Because:

1. I can send forget password emails (and I receive those)
2. I can send contact forms (and I receive those)

In this case there isn't even an account created. I don't get a confirmation page, but it directly redirect me to the homepage.
So I think the problem is probably somewhere in the account creation process.
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 18, 2017, 11:27:07 AM
Quote
In this case there isn't even an account created. I don't get a confirmation page, but it directly redirect me to the homepage.
So I think the problem is probably somewhere in the account creation process.

works for me without problems
latest php-version sends a error about missing openssl, but i'm sure, its a locale problem, because, i dont use SL on locale PC with Xampp

have you look into the database or into a actual backup file for this user datas?

P.S.: see also in wb-user-management and push this arrow-marked button, it change between active/inactive users. a user, registrated via frontend, is everytime a active user

(https://i.gyazo.com/94cc3f84d7e7953a6a42df5189888f5d.png)
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 18, 2017, 11:52:32 AM
please check your settings for ASP (Advanced Spam Protection) in WB-AdminTools -> Captcha Settings and set it to "activated"
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 21, 2017, 01:29:39 AM
- tried to create account test2 in frontend
- checked WB-user-management --> no test2 in active of inactive
- checked database --> no test2 in database
- checked ASP settings --> was already activated. Disable and activate back again doesn't seem do anything, test2 still isn't created
- changed template to WebsiteBaker default template --> problem still exists and still no test2 is created
Title: Re: Can't register anymore at login form
Post by: dbs on April 21, 2017, 07:40:37 AM
action url is: / (slash)
instead: #

Code: [Select]
<form class="account" name="user" action="/" method="post">
Can this work?
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 21, 2017, 01:14:23 PM
Quote
Can this work?

NO

original is a hardcoded #

account / signup_form.php  ~Ln 68

<form name="user" action="#" method="post" class="account">
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 27, 2017, 10:41:11 PM
Quote
Can this work?

NO

original is a hardcoded #

account / signup_form.php  ~Ln 68

<form name="user" action="#" method="post" class="account">

Settings in signup_form.php are exactly as you wrote.
I'm not really sure what to test or change to make it work.

All I know is, the account isn't created and I'm redirected back to the home page directly after I hit the submit buttonl
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 27, 2017, 11:21:38 PM
the source-code on this adress (http://www.tvstiens.nl/account/signup.php) show a different code

(https://i.gyazo.com/624a18d8bcd6460aeaa8d0912efb0ebd.png)

its a slash and a slash cannot work. the # as action-url means: stay on this page or on this adress and work then with the post variables
your / do nothing, it doesnt send this form, it has no action-url  :roll:

maybe, we talk from different adresses or different code, maybe you use a filter to search&&replace
example: the emailfilter search for the char @ and replace it with [at] or what ever you have defined

if we talk from the same page on the same domain with the same signup_form.php and you have in the code there the #, then try to change it with a simple word, save this file and look into the source-code from the register form. if you dont see now your new defined word there, the form comes from a different source, maybe a droplet or a hardcoded form in your template-index.php. i remember, that the most older templates has the login- and register form inside in the template
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 28, 2017, 10:24:58 PM
the source-code on this adress (http://www.tvstiens.nl/account/signup.php) show a different code

(https://i.gyazo.com/624a18d8bcd6460aeaa8d0912efb0ebd.png)

its a slash and a slash cannot work. the # as action-url means: stay on this page or on this adress and work then with the post variables
your / do nothing, it doesnt send this form, it has no action-url  :roll:

maybe, we talk from different adresses or different code, maybe you use a filter to search&&replace
example: the emailfilter search for the char @ and replace it with [at] or what ever you have defined

if we talk from the same page on the same domain with the same signup_form.php and you have in the code there the #, then try to change it with a simple word, save this file and look into the source-code from the register form. if you dont see now your new defined word there, the form comes from a different source, maybe a droplet or a hardcoded form in your template-index.php. i remember, that the most older templates has the login- and register form inside in the template

Thank you for pointing me in the right direction.
I finally fixed it.

When I changed the action="#" to action="test" the sourcecode also showed action="test" so it uses the right signup_form.php
When I changed it back to action="#" the sourcecode on the site showed action="/"
So for a second test I changed it to action="##" then the sourcecode showed action="##"
The sourcecode showed everytime the things I wrote between the quotes

How I finally fixed it?
I just removed the quotes and wrote action=# in the signup_form.php
Title: Re: Can't register anymore at login form
Post by: jacobi22 on April 29, 2017, 01:03:12 AM
Quote
How I finally fixed it?
I just removed the quotes and wrote action=# in the signup_form.php

other Solution is a hard-coded absolute path to the signup_form.php

maybe you can make another test to confirm, the a single # was replaced there

signup_form.php // Ln 67 in the latest version
Originalcode:
<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?></h1>

changed for a test to

<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?> # "#"</h1>

it change the h1-header to (normalize) Account aanmaken # "#" or to Account aanmaken # "/"
if the last option, you use somewhere a filter there

P.S.: a lot of addons use a code like this (mostly in the backend)
- action="#" or
- href = "#"

maybe you can search for this combination in your wb-files and check the results
Title: Re: Can't register anymore at login form
Post by: Damaverick on April 29, 2017, 12:53:41 PM
maybe you can make another test to confirm, the a single # was replaced there

signup_form.php // Ln 67 in the latest version
Originalcode:
<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?></h1>

changed for a test to

<h1>&nbsp;<?php echo $TEXT['SIGNUP']; ?> # "#"</h1>

it change the h1-header to (normalize) Account aanmaken # "#" or to Account aanmaken # "/"

I changed it, and the frontend showed Account aanmaken # "#"
So it looks like no filter is in place.

P.S.: a lot of addons use a code like this (mostly in the backend)
- action="#" or
- href = "#"

maybe you can search for this combination in your wb-files and check the results

I'm going to check the files one of these days and hope to report back to you about the results.
Title: Re: Can't register anymore at login form
Post by: dbs on May 05, 2017, 11:28:01 AM
Today i added some dummy-links in the footer (code2:html will called via sectionpicker in index.php).
<a href="#" ...
These links shows all in frontend not the "#" but the "/". It seems the filter RelUrl is the reason. After deactivation of this filter all is fine.
But could not find a rule in this filter for "#".
Title: Re: Can't register anymore at login form
Post by: jacobi22 on May 05, 2017, 11:59:12 AM
crazy - i spend a lot of time to found the problem, but i've never use the RelUrl-Filter  :|

if i'm correct, the filter replace everything (in the front) of a URL in the frontend  - i reported this and some other problems (in combination Rel-Url-Filter + Short-Url) many times in the developer group and have also a lot of trouble about this.
Best solution for me (if i need it) - the Rel-Url-Filter from SP4
Title: Re: Can't register anymore at login form
Post by: dbs on May 05, 2017, 12:21:09 PM
With sp4 filter it works. But the side effects are unclear.
The code looks very different and one notice is produced:
Code: [Select]
[E_NOTICE] /modules/output_filter/filters/filterRelUrl.php:[11] from /modules/output_filter/index.php:[27] OutputFilterApi "Undefined index: sys_rel""
Don't know what i will do. The dummy links are not needed later. Hope no other bad effects of the original filter will visible.
Title: Re: Can't register anymore at login form
Post by: jacobi22 on May 05, 2017, 01:15:26 PM
do you use the complete output filter module from SP4 now?  :roll:

this (old) module version use different filternames (sysvar vs RelUrl), so maybe you get also other error messages from the other filters or the other (old) filters makes additional problems like CSStoHead-Filter etc
Title: Re: Can't register anymore at login form
Post by: dbs on May 05, 2017, 01:39:52 PM
No, only the relurl filter from sp4 was tested for a short time.
Title: Re: Can't register anymore at login form
Post by: jacobi22 on May 05, 2017, 02:00:24 PM
your error message:

Quote
[E_NOTICE] /modules/output_filter/filters/filterRelUrl.php:[11] from /modules/output_filter/index.php:[27] OutputFilterApi "Undefined index: sys_rel""

the index "sys_var" is not used in the module version from WB 2.10.0, WB 2.8.3 SP6 or SP7, its only used in SP4 and older  :wink: