Title: Save button disappears when PHP version 8.1
Last modified: January 7, 2023

---

# Save button disappears when PHP version 8.1

 *  Resolved [Jaap33](https://wordpress.org/support/users/jaap33/)
 * (@jaap33)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/)
 * The plugin seems to not work properly when setting PHP to 8.1 and I get the following
   error: GET [https://www.caviarofswitzerland.com/wp-admin/admin.php?page=litespeed-page_optm](https://www.caviarofswitzerland.com/wp-admin/admin.php?page=litespeed-page_optm)
   500
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsave-button-disappears-when-php-version-8-1%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Jaap33](https://wordpress.org/support/users/jaap33/)
 * (@jaap33)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16352499)
 *     ```wp-block-code
       An error of type E_ERROR was caused in line 685 of the file /home/caviarof/public_html/wp-content/plugins/litespeed-cache/src/base.cls.php. Error message: Uncaught Error: Call to undefined function LiteSpeed\parse_ini_file() in /home/caviarof/public_html/wp-content/plugins/litespeed-cache/src/base.cls.php:685
   
       Stack trace:
   
       #0 /home/caviarof/public_html/wp-content/plugins/litespeed-cache/src/admin-display.cls.php(1024): LiteSpeed\Base->load_default_vals()
   
       #1 /home/caviarof/public_html/wp-content/plugins/litespeed-cache/tpl/page_optm/settings_media.tpl.php(79): LiteSpeed\Admin_Display->recommended()
   
       #2 /home/caviarof/public_html/wp-content/plugins/litespeed-cache/tpl/page_optm/entry.tpl.php(54): require('...')
   
       #3 /home/caviarof/public_html/wp-content/plugins/litespeed-cache/src/admin-display.cls.php(678): require_once('...')
   
       #4 /home/caviarof/public_html/wp-includes/class-wp-hook.php(308): LiteSpeed\Admin_Display->show_page_optm()
   
       #5 /home/caviarof/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
   
       #6 /home/caviarof/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
   
       #7 /home/caviarof/public_html/wp-admin/admin.php(259): do_action()
   
       #8 {main}
   
         thrown
       ```
   
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16356405)
 * please make sure you did NOT disable function `parse_ini_file`
 *  Thread Starter [Jaap33](https://wordpress.org/support/users/jaap33/)
 * (@jaap33)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16358822)
 * The problem persists even when enabling function parse_ini_file
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16364606)
 *     ```wp-block-code
       <?php
       require( './wp-load.php' );
       if (function_exists('parse_ini_file')) {
          echo 'yes';
       }
       else {
           echo 'no';
       }
       ```
   
 * could you please try create a php file with above code at same dir as your wp-
   config.php , access by browser, and see what it returns ?
 *  Thread Starter [Jaap33](https://wordpress.org/support/users/jaap33/)
 * (@jaap33)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16369008)
 * no
   [https://caviarofswitzerland.com/testlite.php](https://caviarofswitzerland.com/testlite.php)
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16369009)
 * yeah , that means the`parse_ini_file` function was NOT enabled

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

The topic ‘Save button disappears when PHP version 8.1’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/save-button-disappears-when-php-version-8-1/#post-16369009)
 * Status: resolved