Title: PHP Fatal error
Last modified: June 16, 2022

---

# PHP Fatal error

 *  Resolved [theavengers](https://wordpress.org/support/users/theavengers/)
 * (@theavengers)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-305/)
 * Hello,
    Your plugin is really awesome. But i track a bug on my website, and i
   actived debug log. I found this : [16-Jun-2022 10:58:38 UTC] PHP Notice: require():
   Read of 1090 bytes failed with errno=12 Cannot allocate memory in /home/gredal/
   anil/wp-content/plugins/hd-quiz/ includes/meta.php on line 11 [16-Jun-2022 10:
   58:38 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘/home/gredal/
   anil/wp-content/plugins/hd-quiz/includes/fields/email.php’ ( include_path=’.:/
   usr/local/php8.0/lib/php’) in /home/gredal/anil/wp-content/plugins/hd-quiz/includes/
   meta.php:11 Stack trace: #0 /home/gredal/anil/wp-content/plugins/hd-quiz/index.
   php(28): require() #1 /home/gredal/anil/wp-settings.php(428): include_once(‘/
   home/gredal/a…’) #2 /home/gredal/anil/wp-config.php(104): require_once(‘/home/
   gredal/a…’) #3 /home/gredal/anil/wp-load.php(50): require_once(‘/home/gredal/
   a…’) #4 /home/gredal/anil/wp-blog-header.php(13): require_once(‘/home/gredal/
   a…’) #5 /home/gredal/anil/index.php(17): require(‘/home/gredal/a…’) #6 {hand}
   thrown in /home/gredal/anil/wp-content/plugins/hd-quiz/includes/meta.php on line
   11 [16-Jun-2022 10:58:38 UTC] PHP Notice: The is_embed function was called **
   incorrectly**. Conditional query tags do not work before the query is launched.
   Before that, they always return the boolean `false`. Please read [Debugging in WordPress](https://fr.wordpress.org/support/article/debugging-in-wordpress/)(
   en) for more information. (This message was added to version 3.1.0.) in /home/
   gredal/anil/wp-includes/functions.php on line 5831 [16-Jun-2022 10:58:38 UTC]
   PHP Notice: The is_search function was called **incorrectly**. Conditional query
   tags do not work before the query is launched. Before that, they always return
   the boolean `false`. Please read [Debugging in WordPress](https://fr.wordpress.org/support/article/debugging-in-wordpress/)(
   en) for more information. (This message was added to version 3.1.0.) in /home/
   gredal/anil/wp-includes/functions.php on line 5831 [16-Jun-2022 10:58:40 UTC]
   PHP Notice: require(): Read of 1744 bytes failed with errno=12 Cannot allocate
   memory in /home/gredal/anil/wp-content/plugins/hd-quiz/ includes/meta.php on 
   line 8 [16-Jun-2022 10:58:40 UTC] PHP Fatal error: Uncaught Error: Failed opening
   required ‘/home/gredal/anil/wp-content/plugins/hd-quiz/includes/fields/image.
   php’ ( include_path=’.:/usr/local/php8.0/lib/php’) in /home/gredal/anil/wp-content/
   plugins/hd-quiz/includes/meta.php:8

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

 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-305/#post-15747464)
 * Hi theavengers,
    thanks for posting this.
 * Looking at those logs – I think the issue is with your site/host and not HD Quiz.
   The errors are about being unable to open files with the only helpful hint being
   that there are some memory errors listed.
 * I believe the issue is caused by a combination of two things. First, your PHP
   memory limit is set too low. Second, something on your site (either your theme
   or other plugins) is using up all of your available PHP memory.
 * Think of PHP memory as RAM for your computer. You can only run so many programs
   at a time.
 * What I think is happening is that your PHP memory has run out which means there
   is no more “memroy” left to load HD Quiz (which is a SUPER small and lightweight
   plugin BTW). This is why you are seeing errors about not being able to load in
   files.
 * **How to fix?**
    First thing is to increase your PHP memory. The way to do this
   will vary depending on your host and setup, but usually, the easiest way is to
   edit your `wp-config.php` file found in the WordPress installation folder. Here
   is a good article I found that goes over how to do this: [https://docs.wp-rocket.me/article/128-increase-php-memory-limit-in-wordpress](https://docs.wp-rocket.me/article/128-increase-php-memory-limit-in-wordpress)
 * Once you have done this, the next thing to do is try and determine why you were
   running out of memory to begin with! I recommend deactivating any plugins you
   don’t actually need or use, or even try switching to a “lighter” theme.
 *  Thread Starter [theavengers](https://wordpress.org/support/users/theavengers/)
 * (@theavengers)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-305/#post-15755959)
 * Hello, i have 512Mo, but i think i have found issue. It’s my php version > 8.0.
   
   Now, i have only a bug with caracteres… Bot no more with your programm ^^

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

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

 * ![](https://ps.w.org/hd-quiz/assets/icon-256X256.gif?rev=2936040)
 * [HD Quiz](https://wordpress.org/plugins/hd-quiz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hd-quiz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hd-quiz/)
 * [Active Topics](https://wordpress.org/support/plugin/hd-quiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hd-quiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hd-quiz/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [theavengers](https://wordpress.org/support/users/theavengers/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/php-fatal-error-305/#post-15755959)
 * Status: resolved