Title: syntax error
Last modified: December 15, 2023

---

# syntax error

 *  Resolved [t.inoue](https://wordpress.org/support/users/tinoue/)
 * (@tinoue)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/)
 * I am contacting you because I received a fatal error notification after updating
   the plugin.
   Thank you.
 * WordPress version 5.7.10
   Current plugin: XML Sitemap Generator for Google (version
   4.1.15)PHP version 7.2.34 Error details
 * Error type E_PARSE occurred on line 671 of the /wp-content/plugins/google-sitemap-
   generator/class-googlesitemapgeneratorloader.php file. Error message: syntax 
   error, unexpected ‘)’

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

 *  [svenpohl](https://wordpress.org/support/users/svenpohl/)
 * (@svenpohl)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17280320)
 * I have removed the comma behind “‘google-sitemap-generator'” and the critical
   error disappeared (don’t can say this fixes it for everyone):
 * line 670, class-googlesitemapgeneratorloader.php
 * —
 * ‘,
   ‘google-sitemap-generator’),
 * —
 * ![](https://wordpress.org/c4ed88a3-035d-4c06-942b-99f59776304e)
 *  [eas](https://wordpress.org/support/users/eas/)
 * (@eas)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17282931)
 * +1
 *  [Imidg](https://wordpress.org/support/users/imidg/)
 * (@imidg)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17283063)
 * 👍 the same!
 *  [mbernasocchi](https://wordpress.org/support/users/mbernasocchi/)
 * (@mbernasocchi)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17283865)
 * 
   Tha change happenend here: [https://github.com/Auctollo/google-sitemap-generator/commit/a43120425c286d625b6d1f00c46f569d01906efc#r135185358](https://github.com/Auctollo/google-sitemap-generator/commit/a43120425c286d625b6d1f00c46f569d01906efc#r135185358)
   in any case, removing the trailing comma on line 671 fixes the issue.
 * I proposed a change here: [https://github.com/Auctollo/google-sitemap-generator/pull/132](https://github.com/Auctollo/google-sitemap-generator/pull/132)
 *  Plugin Author [Auctollo](https://wordpress.org/support/users/auctollo/)
 * (@auctollo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17283984)
 * Thanks everyone for raising this issue. I can’t believe it wasn’t caught sooner.
   We’re preparing for release!
 *  [patrixxxk](https://wordpress.org/support/users/patrixxxk/)
 * (@patrixxxk)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17286252)
 * Hey, the error occured on one of my pages, the issue is, that I can’t see the
   plugin in my ftp, which is strange, I checked every possible place where it could
   be, but nothing…
   **Parse error**: syntax error, unexpected ‘)’ in **/data/b/4/
   xxxx-5b5d-4d6e-xxxx-xxxx/site/web/wp-content/plugins/google-sitemap-generator/
   class-googlesitemapgeneratorloader.php** on line **671**Is there any advice? 
   Thanks!
 *  Plugin Author [Auctollo](https://wordpress.org/support/users/auctollo/)
 * (@auctollo)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17288706)
 * The latest release is now generally available, resolving this issue.

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

The topic ‘syntax error’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-generator/assets/icon-256x256.png?rev=2713572)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/google-sitemap-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-generator/reviews/)

 * 7 replies
 * 13 participants
 * Last reply from: [Auctollo](https://wordpress.org/support/users/auctollo/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-236/#post-17288706)
 * Status: resolved