I can't delete page sections.(v3.3)

Created on 1 February 2024, 11 months ago
Updated 7 March 2024, 10 months ago

I can't delete items.(v3.3)
If I have multiple page sections. I can no longer delete any of them.
The message "Oops, something went wrong. Check your browser's developer console for more details" appears.
Message:
POST
http://localhost:8080/node/23/edit?ajax_form=1&_wrapper_format=drupal_ajax
[HTTP/1.1 500 500 Service unavailable (with message) 140ms]

Uncaught
Object { message: "\nEr is een AJAX HTTP fout opgetreden.\nHTTP-resultaatcode: 500\nDebugging information follows.\nPath: /node/23/edit?ajax_form=1\nStatustekst: 500 Service unavailable (with message)\nAntwoordtekst: Er ging onverwacht iets fout. Probeer het later opnieuw.TypeError: d_p_move_heading_type(): Argument #1 ($form) must be of type array, null given, called in C:\\Users\\danny\\Documents\\WEBSITES\\schrijnwerkerijjacobs 30-1-24\\root\\modules\\custom\\d_p\\d_p.module on line 145 in d_p_move_heading_type() (line 159 of modules\\custom\\d_p\\d_p.module). d_p_form_alter(Array, Object, 'node_content_page_edit_form') (Line: 545)\nDrupal\\Core\\Extension\\ModuleHandler->alter('form', Array, Object, 'node_content_page_edit_form') (Line: 841)\nDrupal\\Core\\Form\\FormBuilder->prepareForm('node_content_page_edit_form', Array, Object) (Line: 434)\nDrupal\\Core\\Form\\FormBuilder->rebuildForm('node_content_page_edit_form', Object, Array) (Line: 633)\nDrupal\\Core\\Form\\FormBuilder->processForm('node_content_page_edit_form', Array, Object) (Line: 325)\nDrupal\\Core\\Form\\FormBuilder->buildForm(Object, Object) (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult(Object, Object)\ncall_user_func_array(Array, Array) (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 627)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext(Object, Object) (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object, 1) (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle(Object, 1, 1) (Line: 58)\nDrupal\\Core\\StackMiddleware\\Session->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object, 1, 1) (Line: 28)\nDrupal\\Core\\StackMiddleware\\ContentLength->handle(Object, 1, 1) (Line: 106)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass(Object, 1, 1) (Line: 85)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)\nDrupal\\Core\\StackMiddleware\\AjaxPageState->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)\nDrupal\\Core\\DrupalKernel->handle(Object) (Line: 19)\n", name: "AjaxError", stack: "@http://localhost:8080/sites/default/files/js/optimized/js_RpLV1j1SEgkAOB...\n@http://localhost:8080/sites/default/files/js/optimized/js_RpLV1j1SEgkAOB...\n" }

message: "\nEr is een AJAX HTTP fout opgetreden.\nHTTP-resultaatcode: 500\nDebugging information follows.\nPath: /node/23/edit?ajax_form=1\nStatustekst: 500 Service unavailable (with message)\nAntwoordtekst: Er ging onverwacht iets fout. Probeer het later opnieuw.TypeError: d_p_move_heading_type(): Argument #1 ($form) must be of type array, null given, called in C:\\Users\\danny\\Documents\\WEBSITES\\schrijnwerkerijjacobs 30-1-24\\root\\modules\\custom\\d_p\\d_p.module on line 145 in d_p_move_heading_type() (line 159 of modules\\custom\\d_p\\d_p.module). d_p_form_alter(Array, Object, 'node_content_page_edit_form') (Line: 545)\nDrupal\\Core\\Extension\\ModuleHandler->alter('form', Array, Object, 'node_content_page_edit_form') (Line: 841)\nDrupal\\Core\\Form\\FormBuilder->prepareForm('node_content_page_edit_form', Array, Object) (Line: 434)\nDrupal\\Core\\Form\\FormBuilder->rebuildForm('node_content_page_edit_form', Object, Array) (Line: 633)\nDrupal\\Core\\Form\\FormBuilder->processForm('node_content_page_edit_form', Array, Object) (Line: 325)\nDrupal\\Core\\Form\\FormBuilder->buildForm(Object, Object) (Line: 73)\nDrupal\\Core\\Controller\\FormController->getContentResult(Object, Object)\ncall_user_func_array(Array, Array) (Line: 123)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 627)\nDrupal\\Core\\Render\\Renderer->executeInRenderContext(Object, Object) (Line: 124)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)\nDrupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() (Line: 181)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object, 1) (Line: 76)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle(Object, 1, 1) (Line: 58)\nDrupal\\Core\\StackMiddleware\\Session->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object, 1, 1) (Line: 28)\nDrupal\\Core\\StackMiddleware\\ContentLength->handle(Object, 1, 1) (Line: 106)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass(Object, 1, 1) (Line: 85)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle(Object, 1, 1) (Line: 48)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)\nDrupal\\Core\\StackMiddleware\\AjaxPageState->handle(Object, 1, 1) (Line: 51)\nDrupal\\Core\\StackMiddleware\\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)\nDrupal\\Core\\DrupalKernel->handle(Object) (Line: 19)\n"

name: "AjaxError"

stack: "@http://localhost:8080/sites/default/files/js/optimized/js_RpLV1j1SEgkAOB...\n@http://localhost:8080/sites/default/files/js/optimized/js_RpLV1j1SEgkAOB...\n"

: Error:
js_RpLV1j1SEgkAOBNxIxvzKXRlefOlhPa03lpGt46bJEg.Pa1uwtzqNLZdk9--C2H7YdP5dbBt4BFnA5wckwntK9M.js:197:32

with Drupal 10.2.2

🐛 Bug report
Status

Fixed

Version

3.3

Component

Code

Created by

🇧🇪Belgium Danny.G

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024