Critical error on post pages and no content on the index post page

Hello, our website has a critical error, only on post pages and the index post page (as far as I can figure it out).

The site opens well on home: https://www.driegang.nl

But the error ‘critical error’ shows up on a regular post like: https://www.driegang.nl/nieuwsbrief-juli-2025/
the index page : https://www.driegang.nl/over/actueel/actueel/ has no posts

I have tried this:

  • Update to at least PHP 8
  • Update all things like theme, all plugins and Wordpress version to the latest.
  • Disable plugins (check: still an error) and enale them again.

Can you help me with tis issue?

Jeroen

Hello Jeroen,

Thanks for writing to us,

Please add the code into your wp-config.php for debugging setup, and the error logged into the file named debug.log inside the wp-content folder.

You can let us know if you find any errors that are related to our theme or theme-bundled plugins. We can do further investigation based on that.

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
//SET PHP INI DISPLAY ERROR FALSE
@ini_set( 'display_errors', 0 );

Please find the video that will help you to edit wp-config.php and add the above code: https://www.youtube.com/watch?v=3SDPTafEM8o

Please share the FTP details and WordPress admin login details in the secure note so that we can debug it properly.

Thanks