Title: Parse error: syntax error, unexpected &#8216;)&#8217; in api.php
Last modified: December 11, 2023

---

# Parse error: syntax error, unexpected ‘)’ in api.php

 *  Resolved [andreasTypo](https://wordpress.org/support/users/andreastypo/)
 * (@andreastypo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/)
 * 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](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17268423)
 * 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](https://wordpress.org/support/users/andreastypo/)
 * (@andreastypo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17268554)
 * 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](https://badendouche.be/wp-content/uploads/2023/12/auto.png)
 * Regards,
   Andreas
 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17268566)
 * 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](https://wordpress.org/support/users/andreastypo/)
 * (@andreastypo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17268688)
 * 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 117A 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](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17268713)
 * 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](https://wordpress.org/support/users/andreastypo/)
 * (@andreastypo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17270404)
 * 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](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17270429)
 * 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](https://tsf.fyi/kb/a/147#rollback).
 *  Thread Starter [andreasTypo](https://wordpress.org/support/users/andreastypo/)
 * (@andreastypo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17271644)
 * 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.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [andreasTypo](https://wordpress.org/support/users/andreastypo/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-api-php/#post-17271644)
 * Status: resolved