Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Plugin causing PHP fatal error &#8211; Nesting level too deep
Last modified: February 20, 2023

---

# [NSFW] Plugin causing PHP fatal error – Nesting level too deep

 *  Resolved [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * (@noellesteegs)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/)
 * Hi,
   Unfortunately, your plugin has started producing fatal PHP errors on a live
   site, interrupting its uptime. We have not seen one ourselves yet, however we
   were alerted by the host and saw the following error in the log:
 * 2023/02/20 14:06:40 [error] 14546#14546: *6089441 FastCGI sent in stderr: “PHP
   message: PHP Fatal error: Nesting level too deep – recursive dependency? in /
   www/qxmagazine_512/public/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php on line
   257” while reading response header from upstream, client: 66.249.64.118, server:
   qxmagazine.com, request: “GET /event/live-dj-until-3-am/2023-03-14/ HTTP/1.1”,
   upstream: “fastcgi://unix:/var/run/php8.0-fpm-qxmagazine.sock:”, host: “www.qxmagazine.
   com:43795”
   Please can you advise on how we can get this to work smoothly again?
   Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causing-php-fatal-error-nesting-level-too-deep%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16490181)
 * Hi [@noellesteegs](https://wordpress.org/support/users/noellesteegs/),
 * Could you please let us know what PHP version do you use for your site?
    -  This reply was modified 3 years, 3 months ago by [Imagely](https://wordpress.org/support/users/imagely/).
 *  Thread Starter [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * (@noellesteegs)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16490495)
 * Hi [@imagely](https://wordpress.org/support/users/imagely/), it’s PHP 8.0.26.
   The site’s running WordPress 6.1.1 + Newspaper theme 12.3 and Nextgen Gallery
   3.35.
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16491508)
 * Thanks. Could you please additionally let us know if you only got this error 
   logged once or whether it appears periodically in the log and how often?
 *  We’ll try to check with the dev team to see what may have caused it then we’ll
   get back to you.
 *  Thread Starter [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * (@noellesteegs)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16491603)
 * It appears often in the error log. Sometimes there’s a minute in between, sometimes
   a few, sometimes 5 but not more than that. It causes the website to become unreachable
   for a few minutes sometimes, but this only seems to happen a few times a day,
   not every time the error is logged (thankfully).
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16498008)
 * Hi [@noellesteegs](https://wordpress.org/support/users/noellesteegs/),
 * We hope that you wouldn’t mind reaching out to us directly at [https://www.imagely.com/report-bug/](https://www.imagely.com/report-bug/)
 * Thanks
 *  Thread Starter [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * (@noellesteegs)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16498174)
 * [@imagely](https://wordpress.org/support/users/imagely/) I have completed the
   bug report. Thank you in advance for looking into this with urgency.
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16508561)
 * Hi [@noellesteegs](https://wordpress.org/support/users/noellesteegs/),
 * Just wanted to follow-up to see if you’ve got any of the errors replicated since
   the code changes made.
 *  Thread Starter [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * (@noellesteegs)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16509052)
 * Hi [@imagely](https://wordpress.org/support/users/imagely/), we wanted to give
   it a few days just in case, but we have had no fatal errors since you made the
   changes. Thank you.

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

The topic ‘[NSFW] Plugin causing PHP fatal error – Nesting level too deep’ is closed
to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [Noelle Ackermann](https://wordpress.org/support/users/noellesteegs/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/plugin-causing-php-fatal-error-nesting-level-too-deep/#post-16509052)
 * Status: resolved