I'm developing a custom theme and plugin to learn more about WordPress and PHP, and when I use Ninja Forms all the functions work except the preview page for the form and the preview on the block builder, the problem seems to be from my plugin since when I disable it the previews works fine, I would like to know how I could make it work or if there is a compatibility problem I should check to make it work(the edit, creation, delete and submission works fine it's only the previews that sometimes disappears from the builder or gives a error 500). form inserted and working on page when I go on the edit page of block building the previews don't work if I disable my custom plugin it works normally, is there a way to know what is conflicting between the plugins? here are the errors I get from the console: GET http://dev.local/?nf_preview_form=4&nf_iframe=75fd64e6eb [HTTP/1.1 500 Internal Server Error 2360ms] GET http://dev.local/?nf_preview_form=4&nf_iframe=75fd64e6eb Estado 500 Internal Server Error VersiónHTTP/1.1 Transferido283,70 kB (tamaño 283,38 kB) Política de referenciastrict-origin-when-cross-origin DNS ResolutionSystem Cache-Control no-cache, must-revalidate, max-age=0, no-store, private Connection keep-alive Content-Type text/html; charset=UTF-8 Date Tue, 01 Oct 2024 20:16:37 GMT Expires Wed, 11 Jan 1984 05:00:00 GMT Server nginx/1.16.0 Transfer-Encoding chunked X-Powered-By PHP/8.1.29 Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8 Accept-Encoding gzip, deflate Accept-Language es-MX,es;q=0.8,en-US;q=0.5,en;q=0.3 Connection keep-alive Cookie wp-settings-time-1=1723650408; wp-settings-1=libraryContent%3Dbrowse; downPayment=0; tradeInValue=0; wordpress_logged_in_73bcb21de4e0c3bfc6dd6f8759786e3e=admin%7C1728925076%7CoaosvCetJX37RCybUPagIrlI942qG6J7e6zb5iw152E%7Cffc952f5e376c45f13a43571e9d300e0c84f726463440cce8f7a23280e00faa2; wordpress_test_cookie=WP%20Cookie%20check; PHPSESSID=defcf9946b7a3f6818492f1018bf61e8 Host dev.local Priority u=4 Referer http://dev.local/wp-admin/post.php?post=30&action=edit Upgrade-Insecure-Requests 1 User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0 I also get a type error from ninja forms TypeError: e is null onLoad http://dev.local/wp-content/plugins/ninja-forms/build/form-block.js?ver=e84cfaf977742d76209b:1 De http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Be http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Ir http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Ir http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Ur http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Qr http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 ss http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Le http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Qr http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 qn http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Wr http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Vr http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Ko http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 ks http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 bs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 vs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 gs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 is http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Hl http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 rs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 rs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 ts http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 Nu http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 _u http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 s http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 c http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 r http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 instantiate http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 v http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 k http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 a Redux U http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 D http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 p http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 er http://dev.local/wp-includes/js/dist/core-data.min.js?ver=07feee0ca98b13ab617d:2 k http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 a Redux U http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 D http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 s http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 setTimeout handler*s http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 i http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 <anonymous> http://dev.local/wp-includes/js/dist/edit-post.min.js?ver=914d3a541465a53adb05:2 p http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 __unstableMarkListeningStores http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 a http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:2 p http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 Je http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 Qe http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 Ye http://dev.local/wp-includes/js/dist/data.min.js?ver=7c62e39de0308c73d50c:9 Nt http://dev.local/wp-includes/js/dist/edit-post.min.js?ver=914d3a541465a53adb05:2 hu http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 xi http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 bs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 vs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 gs http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 ls http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 S http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 T http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 463 http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 t http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 982 http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 t http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 551 http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 t http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 961 http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 t http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 <anonymous> http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 <anonymous> http://dev.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2 lockdown-install.js:1:97687 Run code snippetExpand snippet