Title: Plugin Problem with PHP 8.0
Last modified: February 26, 2023

---

# Plugin Problem with PHP 8.0

 *  Resolved [elotse](https://wordpress.org/support/users/elotse/)
 * (@elotse)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-problem-with-php-8-0/)
 * After the PHP change from 7.4 to 8.0 the plugin works incorrectly
   If I replace
   an image in the media library with a new one, the following error message appears:
 * Ein Fehler vom Typ E_ERROR wurde in der Zeile 251 der Datei /www/htdocs/w0122ce8/
   kk4you.de/wordpress/wp-content/plugins/media-library-assistant/includes/class-
   mla-core-options.php verursacht. Fehlermeldung: Allowed memory size of 67108864
   bytes exhausted (tried to allocate 2621440 bytes)
 * **More information:**
   WordPress-Version 6.1.1Aktives Theme: Astra-KK4YOU (Version
   1.7) Aktuelles Plugin: Media Library Assistant (Version 3.06) PHP-Version 8.0.26
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-problem-with-php-8-0%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-problem-with-php-8-0/#post-16507997)
 * Thanks for your report. I regret the trouble you are experiencing.
 * The error message you listed (thank you) has come up in several earlier support
   topics. The most likely cause is that upgrading PHP increased the memory required
   to run your site and you have simply run out of memory. It looks like your current
   memory limit is about 64 megabytes, which isn’t very much.
 * You can increase the PHP memory allocation for WordPress by editing your `wp-
   config.php` file; this should work in a hosted environment. You can find more
   information in this Codex article:
 * [Editing wp-config.php](https://developer.wordpress.org/apis/wp-config-php/#increasing-memory-allocated-to-php)
 * The default value is 40MB, so increasing it to 128MB or 256MB should help. This
   works in my hosted environment and should work for you. Let me know what your
   experience is.
 * I am marking this topic resolved, but please update it if you have problems or
   further questions regarding the above solution.
 *  Thread Starter [elotse](https://wordpress.org/support/users/elotse/)
 * (@elotse)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-problem-with-php-8-0/#post-16509821)
 * After increasing the limit to 256 MB, the plugin works perfectly
    -  This reply was modified 3 years, 2 months ago by [elotse](https://wordpress.org/support/users/elotse/).

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

The topic ‘Plugin Problem with PHP 8.0’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [elotse](https://wordpress.org/support/users/elotse/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-problem-with-php-8-0/#post-16509821)
 * Status: resolved