Ojs-3.1.1-2 erro Smarty

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in D:\wwwroot\revista\lib\pkp\lib\vendor\smarty\smarty\libs\Smarty.class.php on line 64

That’s, basically, not an error and is related to the external library. This error says, don’t use a class name as a constructor, in this case:

function Smarty()
        {
          $this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
                        : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
        }

use __construct() instead

That’s just what interpreter doesn’t want you to use but still fully support.

1 Like