Envira Gallery critical error

Hi,

when adding an image to an existing Envira Gallery(We can save this gallery on the admin side without issue.), and the loading that gallery on the front-end of the site. We are getting “There has been a critical Error on your wordpress site”(rest of the site is OK…just this page gets the error). There are currently 438 images, so going to 439 causes the issue. Is there a limit on the amount of images allowed in the gallery?

php settings are 8.1:
max_execution_time: 900
max _input_time: 6000
max_input_vars: 10000
memory_limit: 1024M
post_max_size: 1024M
session.go maxlifetime: 1440

Hi Riceman,

Thanks for reaching out.
There might be some different reasons behind your issue, I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue ** if you have activated it.
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins unless you are subscribed to One. If not subscribed, kindly consult with a developer or contact the plugin author.
Please note that we do not provide support for custom codes and 3rd party plugins unless you are subscribed to One service.
If none of the above helps, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Thanks! login below. This is a large site on its own VPS. i CAN upload media to the WP Media gallery, and there was no issue uploading to Envira until just the other day.

I had the exact same issue… all of a sudden, one of my galleries gave the same critical error! After a little try and error, I found that if I changed the Image Size in the Lightbox options to another size (I used Original) at first, the error went away and the gallery loaded as normal. My Lightbox size was 1024x1024. Every time I put the image size back to 1024, the critical error happened again!

thanks @stewmc. tried that but still getting the error. @tristup see screenshot, and this is what is going on.

Unfortunately, we already had those settings in place, but we were still experiencing issues. I tried adjusting the settings further, but it didn’t resolve the problem. When I reverted to the original settings, it resulted in a critical error, even with 438 photos. Before I made those adjustments, it had crashed at 439 photos. I was able to delete one more photo, and now it’s working with 437 photos. I didn’t test if it would work at 438 photos again, because I was nervous about it crashing further.

Hello Riceman,

Have you check the Check PHP Error Logs? Look at your server’s error logs for more details about the “critical error.” Common issues include:

  • Memory exhaustion : Even with a 1024M memory limit, loading 439 images might exceed your available server memory, especially if other plugins or processes are running.
  • Execution timeout : Although your max_execution_time is high, rendering that many images could still cause a timeout.

If possible, you may increase PHP settings even further. While your current PHP settings are already generous, you could try increasing:

  • memory_limit to 2048M
  • max_input_vars to 20000

Ensure these values are supported by your hosting environment.

And please enable debugging in WordPress to identify the exact cause:

  1. Open your wp-config.php file.
  2. Add or modify the following lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
  1. Revisit the page with the error, and check the log file at wp-content/debug.log for specific issues.

Hope this helps.

Thanks!

those php changes did the job.

No problem at all @uxmediahouse.
Good to know that it works out for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.