Title: PHP Error
Last modified: June 16, 2023

---

# PHP Error

 *  Resolved [awr10e](https://wordpress.org/support/users/awr10e/)
 * (@awr10e)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-598/)
 * Hi
 * I have a local test site and when i run it on PHP 8.1 i get the following error
   three times at the top of the page
 * **Warning**: Uninitialized string offset 0 in **C:\Users\awr10\Local Sites\ancc\
   app\public\wp-content\plugins\the-events-calendar\vendor\composer\ClassLoader.
   php** on line **497**
 * When i change it back to version 7.4 the errors disappear.
 * Also when i run a test on your plugin it brings up the following info [https://plugintests.com/plugins/wporg/the-events-calendar/latest](https://plugintests.com/plugins/wporg/the-events-calendar/latest)
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-598%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * (@bordoni)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-598/#post-16825160)
 * Hi [@awr10e](https://wordpress.org/support/users/awr10e/),
 * Thanks for reporting this issue, we are not fully compatible with PHP 8.1 we 
   are still in a Beta Phase, I will investigate the issue and report back to you
   when we have a fix.
 * best regards,
 *  [carlostonictalk](https://wordpress.org/support/users/carlostonictalk/)
 * (@carlostonictalk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-598/#post-16836287)
 * I have exactly the same issue when running Local to run a localhost and solved
   it in the same way by dropping back the php version.
 * And on line 375
 *  Plugin Author [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * (@bordoni)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-598/#post-16837565)
 * Thank you [@carlostonictalk](https://wordpress.org/support/users/carlostonictalk/)
   I am marking this as resolved and will work on solving that PHP 8.1 issue.

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

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 3 replies
 * 6 participants
 * Last reply from: [Gustavo Bordoni](https://wordpress.org/support/users/bordoni/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-error-598/#post-16837565)
 * Status: resolved