• Resolved devstation22


    I’m trying to install version 3.0.1 of the plugin and I’m getting a syntax error:

    PHP Parse error: syntax error, unexpected '.', expecting ')' in - on line 10
    warning: syntax Error Found in wp-content/plugins/fb-instant-articles/vendor/composer/autoload_static.php ...

    PHP Version: 5.5.31

    Note: This also happens when trying to install version 3.0 when autoload_static.php was first introduced.



Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter devstation22


    Any insight into this would be great, anyone else having this problem?

    You’d need to explain a bit more what you mean by “installing”. That doesn’t really make sense that that error would trigger when installing or running on php 5.5.


    In short, if you’re seeing that error when linting that file, you have options:
    a. ignore that in linting
    b. upgrade to 5.6 and lint for 5.6
    c. remove it

    Thread Starter devstation22


    Sorry, should have clarified what I meant by ‘installing.’

    Yes, it was my web host linting the file upon pushing it up via GIT. They won’t allow any code to be pushed that has syntax errors.

    In the meantime the issue was resolved. I deleted the file from the plugin and it seemed to function just fine without it (which in itself is strange…)

    Thanks for the reply Jon Brown.

    Tengo este problema ayuda por favor

    Parse error: syntax error, unexpected T_FUNCTION in /home/u171019/domains/lapolilla.com.mx/public_html/wp-content/plugins/fb-instant-articles/facebook-instant-articles.php on line 18

    Thread Starter devstation22


    Para solucionar el problema elimino el archivo wp-content/plugins/fb-instant-articles/vendor/composer/autoload_static.php

    Thank you,

    I already deleted the file, but still the problem persists

    Borré el archivo pero aun aparece esta falla Ayuda por favor

    Parse error: syntax error, unexpected ‘[‘ in /home/u171019/domains/lapolilla.com.mx/public_html/wp-content/plugins/wp-instantarticles/wp-instantarticles.php on line 152

    Thread Starter devstation22


    lo siento por el retraso. Cuestión separada. Abrir nueva edición ayuda.

    que debo hacer entonces ? Ayuda por favor

    Thread Starter devstation22


    Abrir un nuevo tema

    It seems that plugin is not really compatible with WP 4.6.1.

    If you open the file mentioned on error, you could see on line 18 a function to show an error message. Are you using PHP under version 5.4? You should use a more recent version of PHP 5…Instant Articles for WP requires PHP 5.4 to function properly. By Oscar

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Instant Articles Syntax Error’ is closed to new replies.