• Resolved Julien Rondeau

    (@jufreaks)


    Hey ,

    I try to activate the extension v 2.19.7 on my WordPress 5.7.1 (PHP 5.6)
    but I get :

    Parse error: syntax error, unexpected ‘(‘ in /mnt/www/dvlp/agir/wordpress/wp-content/plugins/give/vendor/composer/autoload_real.php on line 32

    when I check the file here is what I have on line 32:
    \Composer\Autoload\ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::getInitializer($loader)();

    Here is the full code :

    public static function getLoader()
        {
            if (null !== self::$loader) {
                return self::$loader;
            }
    
            require __DIR__ . '/platform_check.php';
    
            spl_autoload_register(array('ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca', 'loadClassLoader'), true, true);
            self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
            spl_autoload_unregister(array('ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca', 'loadClassLoader'));
    
            require __DIR__ . '/autoload_static.php';
            \Composer\Autoload\ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::getInitializer($loader)();
    
            $loader->register(true);
    
            $includeFiles = \Composer\Autoload\ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::$files;
            foreach ($includeFiles as $fileIdentifier => $file) {
                composerRequire57b24275f7ed9df273273d7ad15cefca($fileIdentifier, $file);
            }
    
            return $loader;
        }

    impossible to activate the extension…

    any help ?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @jufreaks,

    Happy to help. You are running an outdated version of WordPress on an old version of PHP.

    Can you upgrade to PHP 7.4 and the latest version of WordPress and let us know if the problem persists.

    Thread Starter Julien Rondeau

    (@jufreaks)

    Hello Rick,

    Thanks for your reply.
    I did update my php version to 7.4 on the server and it is working fine.
    Its was a php version issue …

    thanks a lot

    Ju

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error: syntax error…’ is closed to new replies.