Title: PHP related error message
Last modified: December 4, 2023

---

# PHP related error message

 *  Resolved [jorgeletralia](https://wordpress.org/support/users/jorgeletralia/)
 * (@jorgeletralia)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-related-error-message/)
 * Hello:
 * The error_log file on my website repeatedly shows me the following error:
 * _[04-Dec-2023 00:15:02 UTC] PHP Parse error: syntax error, unexpected ‘AuthorAvatarsShortcode’(
   T\_STRING), expecting function (T\_FUNCTION) or const (T\_CONST) in /home2/letralia/
   public\_html/letralia.com/wp-content/plugins/author-avatars/lib/AuthorAvatars.
   class.php on line 31_
 * I found the error because my website has been experiencing high spikes in CPU
   and memory usage. I don’t know if this is related to the error I’m talking about.
   I notice that the error started appearing on October 14 of this year. My website
   works with PHP 8.1.
 * I hope you can help us.
 * Best regards,
 * Jorge.

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

 *  Plugin Author [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17251092)
 * I am bit confused
   In my code this ln 31 is
 *     ```wp-block-code
       class AuthorAvatars {public AuthorAvatarsShortcode $author_avatars_shortcode;private ShowAvatarShortcode $show_avatar;
       ```
   
 * 
   Is yours the same?Is this caching your site?
 *  Thread Starter [jorgeletralia](https://wordpress.org/support/users/jorgeletralia/)
 * (@jorgeletralia)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17251156)
 * Yes. In my AuthorAvatars.class.php line 31 says just that. My site uses WP Super
   Cache.
 *  Thread Starter [jorgeletralia](https://wordpress.org/support/users/jorgeletralia/)
 * (@jorgeletralia)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17259925)
 * Hello,
 * I don’t know if this information is useful for you. I just saw that the error
   occurs every 15 minutes. You can see it in this screenshot:
 * > [View post on imgur.com](https://imgur.com/eu6bnED)
 *  Plugin Author [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17344749)
 * are you still getting this warning?
 *  Thread Starter [jorgeletralia](https://wordpress.org/support/users/jorgeletralia/)
 * (@jorgeletralia)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17344754)
 * Hello,
 * We had to uninstall the plugin and replace it with another one that has similar
   functionality.
 *  Plugin Author [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * (@pbearne)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17344761)
 * sorry we couldn’t help
   maybe next time

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

The topic ‘PHP related error message’ is closed to new replies.

 * ![](https://ps.w.org/author-avatars/assets/icon-256x256.png?rev=973937)
 * [Author Avatars List/Block](https://wordpress.org/plugins/author-avatars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/author-avatars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/author-avatars/)
 * [Active Topics](https://wordpress.org/support/plugin/author-avatars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/author-avatars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/author-avatars/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Paul Bearne](https://wordpress.org/support/users/pbearne/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/php-related-error-message/#post-17344761)
 * Status: resolved