How to fix the Error Uncaught Error: Call to undefined function trailingslashit()

Did you try to update PHP to version 7.4, or 8.0. or 8.1 and your website goes down with an http error 500 and the error message “Uncaught Error: Call to undefined function trailingslashit()“? The “Call to undefined function trailingslashit()” error is typically encountered in WordPress projects. This error occurs when the code tries to … Continue reading “How to fix the Error Uncaught Error: Call to undefined function trailingslashit()”

Fix: Call to undefined function get allowed block template part areas()

After updating to WordPress version 5.9, you may get a blank white page or a fatal error saying something like: [26-Jan-2022 15:52:28 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_allowed_block_template_part_areas() in /home/web/public_html/new/wp-includes/blocks/template-part.php:168 If you only get a white page without seeing anything, you can verify this error by activating the WordPress debug.log. … Continue reading “Fix: Call to undefined function get allowed block template part areas()”