Failed to update users mantis

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mager38
Posts: 8
Joined: 10 Dec 2015, 13:38

Failed to update users mantis

Post by mager38 »

good day

I can do the test email without problems and generate incidents I also get emails without problems, however , in trying to update a password or update a user throws me the following error:

Fatal error: Call to undefined method PHPMailer::ValidateAddress() in /opt/lampp/htdocs/mantisbt-1.2.19/core/email_api.php on line 104

it can be happening ?

Work with phpmailer folder inside the folder core because without this mantis mantis not send emails.

please help :( . mantis version 1.2.19
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Failed to update users mantis

Post by atrol »

Did you download from GitHub?
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Failed to update users mantis

Post by atrol »

I assume you mean "no"
The question was:
atrol wrote:Did you download from GitHub?
Your download was from sourceforge.

I read your earlier post viewtopic.php?f=3&t=23508&p=58449#p58454
You don't have to copy any file or directory if you are using the download from sourceforge as this includes all PHPMailer files that are needed.

Maybe there is also another PHPMailer version on your system.
Please use Search before posting and read the Manual
mager38
Posts: 8
Joined: 10 Dec 2015, 13:38

Re: Failed to update users mantis

Post by mager38 »

OK, in that case because I throw error because I see that in the library folder is the library that has a default phpmailer downloading mantis and I put in clear the core . throws this error :

Fatal error: Maximum execution time of 30 seconds exceeded in /opt/lampp/htdocs/mantisbt-1.2.19/library/phpmailer/class.phpmailer.php on line 752

what else can I check ? because I create incidents generates smoothly and send mail notification but when editing users or restore password it has been impossible

8O
mager38
Posts: 8
Joined: 10 Dec 2015, 13:38

Re: Failed to update users mantis

Post by mager38 »

atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Failed to update users mantis

Post by atrol »

Maybe you use an old PHP version.
Seems there was an issue in PHP 5.2, at least this problem in WordPress was quite similar https://core.trac.wordpress.org/ticket/25319
Please use Search before posting and read the Manual
mager38
Posts: 8
Joined: 10 Dec 2015, 13:38

Re: Failed to update users mantis

Post by mager38 »

My PHP Version 5.4.4
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Failed to update users mantis

Post by atrol »

You could try to upgrade to at least 5.4.9 where a newer implementation of preg_match has been included
http://php.net/ChangeLog-5.php#5.4.9
https://bugs.php.net/bug.php?id=63284
Please use Search before posting and read the Manual
mager38
Posts: 8
Joined: 10 Dec 2015, 13:38

Re: Failed to update users mantis

Post by mager38 »

thank you very much for your support , I will review the documentation that I return addresses :D
servotrophy424
Posts: 1
Joined: 15 Jul 2016, 10:12

Re: Failed to update users mantis

Post by servotrophy424 »

Thanks, upgrading to 5.4.9 worked for me.
Post Reply