Title: PHP DOING_AUTOSAVE Error
Last modified: May 13, 2022

---

# PHP DOING_AUTOSAVE Error

 *  [fireflier10](https://wordpress.org/support/users/fireflier10/)
 * (@fireflier10)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-doing_autosave-error/)
 * My hosting environment recently upgraded from PHP 7.4 to PHP 8.0 and now I am
   getting an error when attempting edit any of my Static Blocks. Is there an update
   or a fix for this? Thanks
 *     ```
       Error Details
       =============
       An error of type E_ERROR was caused in line 195 of the file /nas/content/live/XXXXX/wp-content/plugins/static-block/static-block.php. Error message: Uncaught Error: Undefined constant "DOING_AUTOSAVE" in /nas/content/live/XXXXXX/wp-content/plugins/static-block/static-block.php:195
       Stack trace:
       #0 /nas/content/live/XXXXXX/wp-includes/class-wp-hook.php(309): static_block_meta_save(3155)
       #1 /nas/content/live/XXXXXX/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
       #2 /nas/content/live/XXXXXX/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #3 /nas/content/live/XXXXXX/wp-includes/post.php(4686): do_action('save_post', 3155, Object(WP_Post), true)
       #4 /nas/content/live/XXXXXX/wp-includes/post.php(4788): wp_insert_post(Array, false, true)
       #5 /nas/content/live/XXXXXX/wp-admin/includes/post.php(426): wp_update_post(Array)
       #6 /nas/content/live/XXXXXX/wp-admin/post.php(227): edit_post()
       #7 {main}
         thrown
       ```
   

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

 * ![](https://s.w.org/plugins/geopattern-icon/static-block_f8b109.svg)
 * [Static Block](https://wordpress.org/plugins/static-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-block/)
 * [Active Topics](https://wordpress.org/support/plugin/static-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-block/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [fireflier10](https://wordpress.org/support/users/fireflier10/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-doing_autosave-error/)
 * Status: not resolved