Closed Jimmi08 closed 6 months ago
Thx @Jimmi08 PHP version with the problem is 8.1.25, Auto-login new user after clicking on signup link ON account gets activated but there's an error. When i use PHP 7.4.33 it all works as expected... Tomorrow i wil bring the e107.nl back at 2.3.3 and try it again on 7.4.33...
I am able to reproduce a similar error if I close the file handle e107Email::$logHandle
after opening it but before all the logging activities are completed.
After further examination, I found that e107Email::sendEmail()
closes the file handle here or here, but e107Email::sendEmail()
could be called more than once in this for loop in e107MailManager::sendEmails()
. Although e107Email::openLog()
runs again, it has no effect because it detects if there is a valid resource, and even a closed file handle is still a valid resource.
This is indeed a bug with e107.
Thank you Deltik, it is really a php 8.1.25 problem, as soon as I run e107.nl on php 7.4.33 it works fine, create and activate an account and log in immediately after clicking on the activation link. I did my last test with e107 2.3.3 (official release).
Tested and it works with PHP 7.4.33 and PHP 8.1.26, latest git (today), create new account, logged in directly with activation link on e107.nl! GREAT THX!
What e107 version are you using?
Latest Github version (just updated)
Bug description
When I registered on e107.nl I got first error page. I filled all form, if it is important - extended field, signature, avatar.
result after submitting button:
After refresh page I got message that user with that name and email already exists, so this error was after creating account.
Registration email received. After click on activation link in email almost asap, I got white page (just white, no error visible), after refreshing I got message about Your account was activated.
This is time record from site (I think):
And this is from error log sent by Alex: