• federicosordillo

    (@federicosordillo)


    updating to the latest release resulted in a critical error and the whole website blowing up. I would gladly rollback but it seems that it is not possible…

    this is the error I received:
    Fatal error: Uncaught Error: Undefined class constant ‘ARROW_TYPE’ in /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php:114 Stack trace: #0 /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php(74): Twig\ExpressionParser->parseArrow() #1 /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php(607): Twig\ExpressionParser->parseExpression(0, true) #2 /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php(565): Twig\ExpressionParser->parseArguments(true, false, true) #3 /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php(553): Twig\ExpressionParser->parseFilterExpression in /var/www/vhosts/201/1075883/webspace/httpdocs/staging.finecoassetmanagement.com/wp-content/plugins/2fas/vendor/twig/twig/src/ExpressionParser.php on line 114

Viewing 1 replies (of 1 total)
  • Plugin Author 2FAS

    (@2fas)

    It looks like you have an old file Token.php where there class doesn’t have ARROW_TYPE constant. We are delivering the correct file and you can check it in a code browser at: https://plugins.trac.ww.wp.xz.cn/browser/2fas/trunk/vendor/twig/twig/src/Token.php#L41
    Please make sure you have this file in same version.
    If you have the correct version of the file then there may be a PHP Opcache issue that still sees the old file. It’s best to clear your Opcache by restarting the PHP service.

Viewing 1 replies (of 1 total)

The topic ‘critical bug’ is closed to new replies.