• Resolved andreasTypo

    (@andreastypo)


    Parse error: syntax error, unexpected ‘)’ in /public_html/wp-content/plugins/autodescription/inc/functions/api.php on line 117

    Can this be solved? I’m running latest WP version en plugin version on PHP8.0

    Regards
    Andreas

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Andreas,

    It appears to be an issue of PHP 7.2 and earlier. But since you use PHP 8.0, I guess you may have edited the plugin files, or the plugin got corrupted while unzipping its installation package.

    Please see if deleting the plugin and reinstalling it resolves the issue. No data of TSF will be lost in this process.

    Thread Starter andreasTypo

    (@andreastypo)

    Hi Sybre,

    I deleted and re-installed the plugin, but I see the same thing in the code.
    I provide a screenshot here: https://badendouche.be/wp-content/uploads/2023/12/auto.png

    Regards,
    Andreas

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Andreas,

    By “in the code” I assume that you only see the issue in the code editor — does the code parser you use run on or interpret as PHP 7.2 or earlier?

    Does the plugin work on your site that uses PHP 8.0?

    Thread Starter andreasTypo

    (@andreastypo)

    That is correct. Our hosting provider contacted me while doing some checks and said following;

    [~/public_html]# wp plugin verify-checksums –all
    Parse error: syntax error, unexpected ‘)’ in /wp-content/plugins/autodescription/inc/functions/api.php on line 117
    A critical error … and so on.

    On the backend part of the site I never noticed any issues, that’s why I don’t really understand why I’m getting contacted for this.

    Regards

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Andreas,

    Thank you for informing me about the process. It makes sense now.

    You can safely ignore those warnings. That’s a dumb thing for the host to do: it’s worrying their customers for no good reason. PHP 7.3+ syntax is uncommon, but their warning system’s parser should’ve grown automatically with the PHP versions your site has installed.

    Please inform your host about this issue.

    Let me know if there’s anything else I can do for you. Have a lovely day!

    Thread Starter andreasTypo

    (@andreastypo)

    Hi Sybre,

    Thanks for the quick feedback. Is there any way to pass this warning without deactivating the plugin? Sounds like they want to do a checksum on the server due to a bot attack (not related to this plugin). The warning stops the process.

    Thanks for any tips.
    Regards

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Andreas,

    If your host is unwilling to deactivate, bypass, or fix the warning system, I suggest switching hosts.

    You could also downgrade to TSF v4.2.8, which is still compatible with PHP 7.2.
    You can learn how to do that here: https://tsf.fyi/kb/a/147#rollback.

    Thread Starter andreasTypo

    (@andreastypo)

    Thanks for your clear feedback Sybre!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Parse error: syntax error, unexpected ‘)’ in api.php’ is closed to new replies.