adventistchurch / alps-wordpress

This Wordpress theme is an implementation of the Adventist Living Pattern System (ALPS) designed to support the work of the Seventh-day Adventist Church.
Other
43 stars 38 forks source link

Consistent Error #772

Open designerbrent opened 1 month ago

designerbrent commented 1 month ago

Version of ALPS for Wordpress v3

Describe the bug I'm getting regular emails from Wordpress that state Your Site is Experiencing a Technical Issue

Error Included

An error of type E_ERROR was caused in line 277 of the file .../wp-content/themes/alps-wordpress-v3/app/carbon-fields/cf-theme-options.php. Error message: Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in .../wp-content/themes/alps-wordpress-v3/app/carbon-fields/cf-theme-options.php:277
Stack trace:
#0 .../wp-content/themes/alps-wordpress-v3/app/carbon-fields/cf-theme-options.php(277): fread()
#1 .../wp-includes/class-wp-hook.php(324): crb_attach_theme_options()
#2 .../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 .../wp-includes/plugin.php(517): WP_Hook->do_action()
#4 .../wp-content/themes/alps-wordpress-v3/vendor/htmlburger/carbon-fields/core/Loader/Loader.php(113): do_action()
#5 .../wp-includes/class-wp-hook.php(324): Carbon_Fields\Loader\Loader->trigger_fields_register()
#6 .../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 .../wp-includes/plugin.php(517): WP_Hook->do_action()
#8 .../wp-settings.php(700): do_action()
#9 .../wp-config.php(189): require_once('...')
#10 .../wp-load.php(50): require_once('...')
#11 .../wp-login.php(12): require('...')
#12 {main}
thrown
claytonk commented 1 month ago

@designerbrent This sounds a bit like an error you reported a few months ago, it looks like the theme.json file is missing or empty. Pretty sure this is being triggered by the part of the script that looks for the color palette in the theme file and resets it to the selected color palette. Are you able to select a color palette in the theme settings? 

hans-olson commented 1 month ago

@YauheniKapliarchuk

Please take a look at this.

designerbrent commented 1 month ago

This seems like the same error that is reported by @cdbieling here: https://github.com/adventistchurch/alps-wordpress/issues/735#issuecomment-2277345323

@claytonk I was able to change the theme color and then change it back.

claytonk commented 1 month ago

@designerbrent Are you still getting the error after changing the color theme?

designerbrent commented 1 month ago

@claytonk so far, I haven’t gotten an email yet. I’ve never seen the error in the logs, just in the emails from WP. I’ll see if one comes in the next day or so.

YauheniKapliarchuk commented 1 month ago

@designerbrent @hans-olson I will prepare new build with updated theme for test.

Hope it will fix this issue

Thanks!

designerbrent commented 1 month ago

@claytonk This didn't solve the problem for me. I'm still seeing the errors. The theme.json file is populated, BTW.

hans-olson commented 1 month ago

@designerbrent @hans-olson I will prepare new build with updated theme for test.

Hope it will fix this issue

Thanks!

Great. Please let me know when it is ready.