Osclass Support Forums
General osclass questions => Report bug => Topic started by: officela on December 08, 2020, 02:35:29 PM
-
Hello,
Updated to 4.2.0 and when i have a new user registration when i press register i should go to the main page with popup box informing me that i should check my email to activate the account, instead i get a white page of Error 500 ...... pressing refresh the page and it goes to the home page but without the popup..... something is not working as it should? how to fix this? keep in mind the user is created normal when i go to back-end i can see the user i just created.
I found that i get the same error when i publish new property ! error 500
-
@officela
1) enable error log and check what you have there
2) try to disable all plugins and test again
-
Hello,
I've found the error!
Settings > Mail Server > Use POP before SMTP
I unchecked that and everything works great!
-
@officela
Yes if mail is being sent and error is thrown from PHP mailer, it will end up with error.
It's good to test mail server as first.
-
I haven't touched that since 3.8 version or last time i upgraded on 4.1.1 version and could not think at all for this.....
happy to found from debug ........ Thanks Maybe this will help others too :)
-
Also can be fixed in core side, in utils.php at the function osc_sendMail()
You can add this line after if (osc_mailserver_pop()) {
require_once osc_lib_path() . 'vendor/phpmailer/phpmailer/class.pop3.php' ;
But will be overwritten with every osclass update
-
@cartagena68
PHP mailer does not use this file from 6 version, not quite sure if this would be correct solution.
-
@MB Themes
I find it using the error log, was saying that no such file (class.pop3.php) in the directory, added that line to the file had solved the problem for me, of course, today with the new update I had to add the line again
-
@cartagena68
Yes but in vendors folder, if you would clean up before installation, you would realize this file is not part of PHP mailer anymore.
https://github.com/PHPMailer/PHPMailer/tree/master/src
-
@MB Themes
Ok, but in the function osc_sendMail($params) in utils.php the POP3 class is called, where it gets the class from? I see that there is a POP3.php file with the class POP3, maybe you should require that file
-
Autoloader from vendors folder handle all dependencies and is generated by composer.