alps-wordpress icon indicating copy to clipboard operation
alps-wordpress copied to clipboard

Error with Carbon Fields and ALPS 3.15

Open designerbrent opened this issue 2 months ago • 0 comments

Version of ALPS for Wordpress WordPress version 6.5.2 Active theme: ALPS for WordPress (version 3.15.2.3) PHP version 8.2.18

Describe the bug After upgrading from a very old version of the ALPS for Wordpress theme, I started getting regular errors emailed to me each night.

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](http://old.callaim.org/adventistinfo.org/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](http://old.callaim.org/adventistinfo.org/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](http://old.callaim.org/adventistinfo.org/wp-content/themes/alps-wordpress-v3/app/carbon-fields/cf-theme-options.php)(277): fread()
#1 .../wp-includes/class-wp-hook.php](http://old.callaim.org/adventistinfo.org/wp-includes/class-wp-hook.php)(324): crb_attach_theme_options()
#2 .../wp-includes/class-wp-hook.php](http://old.callaim.org/adventistinfo.org/wp-includes/class-wp-hook.php)(348): WP_Hook->apply_filters()
#3 .../wp-includes/plugin.php](http://old.callaim.org/adventistinfo.org/wp-includes/plugin.php)(517): WP_Hook->do_action()
#4 .../wp-content/themes/alps-wordpress-v3/vendor/htmlburger/carbon-fields/core/Loader/Loader.php](http://old.callaim.org/adventistinfo.org/wp-content/themes/alps-wordpress-v3/vendor/htmlburger/carbon-fields/core/Loader/Loader.php)(113): do_action()
#5 .../wp-includes/class-wp-hook.php](http://old.callaim.org/adventistinfo.org/wp-includes/class-wp-hook.php)(324): Carbon_Fields\Loader\Loader->trigger_fields_register()
#6 .../wp-includes/class-wp-hook.php](http://old.callaim.org/adventistinfo.org/wp-includes/class-wp-hook.php)(348): WP_Hook->apply_filters()
#7 .../wp-includes/plugin.php](http://old.callaim.org/adventistinfo.org/wp-includes/plugin.php)(517): WP_Hook->do_action()
#8 .../wp-settings.php](http://old.callaim.org/adventistinfo.org/wp-settings.php)(695): do_action()
#9 .../wp-config.php](http://old.callaim.org/adventistinfo.org/wp-config.php)(188): require_once('...')
#10 .../wp-load.php](http://old.callaim.org/adventistinfo.org/wp-load.php)(50): require_once('...')
#11 .../wp-login.php](http://old.callaim.org/adventistinfo.org/wp-login.php)(12): require('...')
#12 {main}

designerbrent avatar Apr 22 '24 10:04 designerbrent