How To Solve Sentrifugo PHP Mailer Autoloader Error On Linux

How To Solve Sentrifugo PHP Mailer Autoloader Error On Linux

As you can see, if you see this error while installing the Sentrifugo in Linux machine. This is related to the PHP file in Sentrifugo. we can solve PHP autoload mailer error in Sentrifugo. so

Sentrifugo is an open-source HR management software where you can manage all the work related to HR including payroll, attendance, leave management, service request, talent acquisition and much more. so

Check Out: How To Set Java Heap Size On Tomcat Server Linux

There’re lots of dependencies for PHP to setup and installation of Sentrifugo in the Linux machine. PHPMailer can use to send the emails and authentication with the SMTP server. we have to replace an autoload function in the PHP mailer file to work perfectly and the issue will be resolved. so

Solve Sentrifugo PHP Mailer

You can replace the autoloader function with the below code to resolve the issue.

Check Out: Sentrifugo 3.2 Failed To Connect Gmail Account SMTP Issue

vim /var/www/html/Sentrifugo_3.2/Install/PHPMailer/PHPMailerAutoload.php

replace line 45
function __autoload($classname)
{
PHPMailerAutoload($classname);
}

with

spl_autoload_register(function($class) {
PHPMailerAutoload($classname);
});

and save the file.

php autoload error

Check Out: How To Recover lost Data Using Testdisk On Linux

Reload the URL, you won’t see the error.

You’re done php autoload error sentrifugo php autoload error sentrifugo php mailer error sentrifugo php error

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment