Title: Fatal error when saving slides
Last modified: November 21, 2022

---

# Fatal error when saving slides

 *  Resolved [dani202](https://wordpress.org/support/users/dani202/)
 * (@dani202)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-slides/)
 * I’ve had trouble trying to save slides or make edits.
    I ended up removing the
   plugin, but I went back today to review. Noticed that when saving I get the following
   message and fatal error.
 * When saving a slide I get the following message in the Depicter editor:
 * > `{"message":"Request failed with status code 500","name":"Error","response":{"
   > data":"<p>There has been a critical error on this website.</p><p><a href=\"
   > https://wordpress.org/support/article/faq-troubleshooting/\">Learn more about
   > troubleshooting WordPress.</a></p>","status":500,"statusText":"","headers":{"
   > access-control-allow-credentials":"true","access-control-allow-origin":"https://
   > domain","alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400","cache-
   > control":"no-cache, must-revalidate, max-age=0","cf-cache-status":"DYNAMIC","
   > cf-ray":"76d5283efc6fc37a-SEA","content-type":"text/html; charset=UTF-8","date":"
   > Mon, 21 Nov 2022 00:02:34 GMT","expires":"Wed, 11 Jan 1984 05:00:00 GMT","ki-
   > cache-type":"None","ki-cf-cache-status":"BYPASS","ki-edge":"v=17.9","ki-edge-
   > o2o":"yes","nel":"{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":
   > 604800}","referrer-policy":"strict-origin-when-cross-origin","report-to":"{\"
   > endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=RALEijirWbXSdumKbWnt18sftpTwjW0yXKgVGOpLlHCHA2bD6Y%
   > 2B9Vw87GFJi%2F%2F1TPD%2FlSSJM5jOYCAhPlUWfGSHHH1%2BdLRIOIcHFgotn2%2BcnKwUWxRXpiEFuNSR%
   > 2F59rAy90F\"}],\"group\":\"cf-nel\",\"max_age\":604800}","server":"cloudflare","
   > vary":"Accept-Encoding","x-content-type-options":"nosniff","x-edge-location-
   > klb":"1","x-frame-options":"SAMEORIGIN","x-robots-tag":"noindex"},"config":{"
   > url":"domain/wp-admin/admin-ajax.php","method":"post","data":{},"headers":{"
   > Accept":"application/json, text/plain, */*","X-DEPICTER-CSRF":"e9e80f13ee","
   > X-DEPICTER-CKEY":"b21lIjoiaHR0cHM6XC9cL3dvb2NvbW1lcmNlLTgwMjg5OS0yNzQ5MzM0LmNsb3Vkd2F5c2FwcHMuY29tIiwidWlkIjoiIn0H2XdYzPPFhOx6xXvek8HM8RgWT_hwKgCQPWPj9nUCP8FLYRtvE"},"
   > transformRequest":[null],"transformResponse":[null],"timeout":150000,"xsrfCookieName":"
   > XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-
   > 1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":
   > false}},"request":{}},"config":{"url":"https://domain/wp-admin/admin-ajax.php","
   > method":"post","data":{},"headers":{"Accept":"application/json, text/plain,*/*","
   > X-DEPICTER-CSRF":"e9e80f13ee","X-DEPICTER-CKEY":"b21lIjoiaHR0cHM6XC9cL3dvb2NvbW1lcmNlLTgwMjg5OS0yNzQ5MzM0LmNsb3Vkd2F5c2FwcHMuY29tIiwidWlkIjoiIn0H2XdYzPPFhOx6xXvek8HM8RgWT_hwKgCQPWPj9nUCP8FLYRtvE"},"
   > transformRequest":[null],"transformResponse":[null],"timeout":150000,"xsrfCookieName":"
   > XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-
   > 1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":
   > false}}}`
 * Server side I’m seeing the following Fatal error:
 * > `2022/11/21 00:02:34 [error] 20147#20147: *226176 FastCGI sent in stderr: “
   > PHP message: PHP Fatal error: Uncaught Error: Cannot use object of type stdClass
   > as array in /www/domain_273/public/wp-content/plugins/depicter/app/src/Document/
   > Models/Document.php:486
   >  Stack trace: #0 /www/domain_273/public/wp-content/
   > plugins/depicter/app/src/Document/Models/Document.php(147): Depicter\Document\
   > Models\Document->reorderSections() #1 /www/domain_273/public/wp-content/plugins/
   > depicter/app/src/Front/Render.php(95): Depicter\Document\Models\Document->prepare()#
   > 2 /www/domain_273/public/wp-content/plugins/depicter/app/src/Front/Render.php(
   > 53): Depicter\Front\Render->getDocument(207, Array) #3 /www/domain_273/public/
   > wp-content/plugins/depicter/app/hooks.php(33): Depicter\Front\Render->document(
   > 207, Array) #4 /www/domain_273/public/wp-includes/class-wp-hook.php(309): depicter_make_document_cache(
   > 207, Array) #5 /www/domain_273/public/wp-includes/class-wp-hook.php(331): WP_Hook-
   > >apply_filters(”, Array) #6″ while reading response header from upstream, client:
   > IP, server: domain, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream:“
   > fastcgi://unix:/var/run/php8.0-fpm-domain.sock:”, host: “domain:54433”, referrer:“
   > [https://domain/wp-admin/post.php?document=207&action=depicter&#8221](https://domain/wp-admin/post.php?document=207&action=depicter&#8221);`
 * Removed the IP and domains for privacy reasons.
    If anyone knows what could be
   going on I’d appreciate the help.

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

 *  Plugin Author [averta](https://wordpress.org/support/users/averta/)
 * (@averta)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-slides/#post-16219216)
 * Hi.
    Based on the error message some part of the data is changed unexpectedly
   along the way. From what we have seen before, chances are that a third-party 
   plugin is causing this. ​I suggest that you repeat the process but this time 
   with all the plugins disabled. You can also try this on another WordPress website
   if it’s possible. ​If it worked, then try to activate your plugins one by one
   until the culprit is found. ​ ​We can confirm that under normal circumstances
   there is no error when it comes to saving or publishing Depicter sliders.
 * Please let me know
 *  Thread Starter [dani202](https://wordpress.org/support/users/dani202/)
 * (@dani202)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-slides/#post-16221722)
 * Went through and checked every single plugin. None conflicted.
 * Setup a clone of the site on staging and the issue didn’t exist.
 * Reached out to Kinsta my host and they found that the issue was a result of having
   the PHP opcache enabled on our production site.
 * Issue seems to have been resolved, but if something else comes up I’ll let you
   all know.
 * Figured this might be good feedback for someone in the future.
 *  Plugin Author [averta](https://wordpress.org/support/users/averta/)
 * (@averta)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-slides/#post-16222504)
 * [@dani202](https://wordpress.org/support/users/dani202/) ,
    First of all I am
   happy to hear your issue was resolved and yeah thanks for sharing this with others
   I am sure it can be helpful for others in the future as well. I also share this
   with our Dev team as well and if they say something or have any advice about 
   it I will post it here too.
 * Regards

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

The topic ‘Fatal error when saving slides’ is closed to new replies.

 * ![](https://ps.w.org/depicter/assets/icon-128x128.gif?rev=3304240)
 * [Depicter — Popup & Slider Builder](https://wordpress.org/plugins/depicter/)
 * [Support Threads](https://wordpress.org/support/plugin/depicter/)
 * [Active Topics](https://wordpress.org/support/plugin/depicter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/depicter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/depicter/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [averta](https://wordpress.org/support/users/averta/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-saving-slides/#post-16222504)
 * Status: resolved