The internal server 500 error of the template after upgrading to version 5.8

  • 11 September 2021
  • 3 replies


After I installed the WP core program version 5.8, I can’t edit my theme builder. I can’t understand the message after clicking preview-debug. Can you help me solve this problem?

I went back to 5.7.2 and can edit normally, and I increased my memory to 1000MB

Preview debug 

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

Uncaught TypeError: Argument 3 passed to locate_block_template() must be of the type array, string given, called in /var/www/html/ on line 66 and defined in /var/www/html/ trace:#0 /var/www/html/ locate_block_template()#1 /var/www/html/ get_query_template()#2 /var/www/html/ wpdm_page_template->wpdm_page_template_template_include()#3 /var/www/html/ WP_Hook->apply_filters()#4 /var/www/html/ apply_filters()#5 /var/www/html/ require_once('/var/www/html/p...')#6 /var/www/html/ require('/var/www/html/p...')#7 {main}  thrown

3 replies


Delete old revisions - 


it always solves my issue

Badge +1

Did you find any solution?

Hi Leon. How did you resolve the issue. I am having the same problem.


Can you help?