Critical error in wordpress

#1
Hello,

De site in general is running ok, but sometimes I receive an critical error on some pages or articles.
Screenshot 2025-12-19 at 09.49.26.png
It is not constant, so sometimes when refreshing the browser it is fixed and sometimes just clicking the same page a few moments later it works perfectly.
I did not have this before.
Any suggestions?
 
#3
I think I found the issue in the banner plugin.

[345366] [74.7.229.47:51936:HTTP2-1#wordpress] [STDERR] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /var/www/html/wp-content/plugins/complianz-gdpr/cookiebanner/class-cookiebanner.php:1226
Stack trace:
#0 /var/www/html/wp-content/plugins/complianz-gdpr/cookiebanner/class-cookiebanner.php(1226): fwrite()
#1 /var/www/html/wp-content/plugins/complianz-gdpr/cookiebanner/class-cookiebanner.php(1274): CMPLZ_COOKIEBANNER->generate_css()
#2 /var/www/html/wp-content/plugins/complianz-gdpr/cookiebanner/class-banner-loader.php(305): CMPLZ_COOKIEBANNER->get_front_end_settings()
#3 /var/www/html/wp-includes/class-wp-hook.php(341): cmplz_banner_loader->enqueue_assets()
#4 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#5 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action()
#6 /var/www/html/wp-includes/script-loader.php(2311): do_action()
#7 /var/www/html/wp-includes/class-wp-hook.php(341): wp_enqueue_scripts()
#8 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#9 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action()
#10 /var/www/html/wp-includes/general-template.php(3197): do_action()
#11 /var/www/html/wp-content/plugins/td-standard-pack/Newspaper/header.php(11): wp_head()
#12 /var/www/html/wp-content/plugins/td-composer/td-composer.php(254): require_once('...')
#13 /var/www/html/wp-includes/class-wp-hook.php(341): {closure}()
#14 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
#15 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action()
#16 /var/www/html/wp-content/themes/Newspaper/header.php(2): do_action()
#17 /var/www/html/wp-includes/template.php(814): require_once('...')
#18 /var/www/html/wp-includes/template.php(749): load_template()
#19 /var/www/html/wp-includes/general-template.php(48): locate_template()
#20 /var/www/html/wp-content/plugins/td-composer/legacy/Newspaper/single.php(5): get_header()
#21 /var/www/html/wp-includes/template-loader.php(125): include('...')
#22 /var/www/html/wp-blog-header.p

The log was full of these errors.
 
Top