codestar-framework
codestar-framework copied to clipboard
PHP 8.2 Support
I tried to use PHP 8.2, and many deprecation notices were shown. It'd be great if it updated.
Yeah, it would be nice to have compatibility with PHP 8.2. One of our users got the following "deprecated" notices:
[15-Nov-2023 12:46:58 UTC] PHP Deprecated: Creation of dynamic property CSF_Field_code_editor::$field is deprecated in /kunden/XXXXXX_XXXX/wp/wp-content/plugins/speed-booster-pack/vendor/codestar-framework/classes/fields.class.php on line 14
[15-Nov-2023 12:46:58 UTC] PHP Deprecated: Creation of dynamic property CSF_Field_code_editor::$value is deprecated in /kunden/XXXXXX_XXXX/wp/wp-content/plugins/speed-booster-pack/vendor/codestar-framework/classes/fields.class.php on line 15
[15-Nov-2023 12:46:58 UTC] PHP Deprecated: Creation of dynamic property CSF_Field_code_editor::$unique is deprecated in /kunden/XXXXXX_XXXX/wp/wp-content/plugins/speed-booster-pack/vendor/codestar-framework/classes/fields.class.php on line 16
[15-Nov-2023 12:46:58 UTC] PHP Deprecated: Creation of dynamic property CSF_Field_code_editor::$where is deprecated in /kunden/XXXXXX_XXXX/wp/wp-content/plugins/speed-booster-pack/vendor/codestar-framework/classes/fields.class.php on line 17
[15-Nov-2023 12:46:58 UTC] PHP Deprecated: Creation of dynamic property CSF_Field_code_editor::$parent is deprecated in /kunden/XXXXXX_XXXX/wp/wp-content/plugins/speed-booster-pack/vendor/codestar-framework/classes/fields.class.php on line 18
https://wordpress.org/support/topic/debug-fehler/#post-17203731
Hi @Codestar, can you please provide an update on the issue? We're currently encountering the same error that @optimocha mentioned, and it's affecting all of our plugins :(
It's 8.3 now
I'm experiencing the same issue. Looking forward to a fix. Does anyone have a temp fix that could work?
@STV11C I added these properties to CSF_Abstract to resolve the error when wp_debug is enabled. Tested on PHP 8.2.8.
public $field = array(); public $unique = ''; public $value = ''; public $parent = ''; public $where = '';
@Niloys7 - THANK YOU SO MUCH!
I received two more as follows:
Deprecated: Creation of dynamic property CSF_Metabox::$post_formats is deprecated in .../codestar-framework/classes/metabox-options.class.php on line 46
Deprecated: Creation of dynamic property CSF_Metabox::$page_templates is deprecated in .../codestar-framework/classes/metabox-options.class.php on line 47
I followed the same approach by adding the following two lines in metabox-options.class.php file:
public $post_formats = '';
public $page_templates = '';
Hopefully these additions do not break anything :)
Hi Guys,
It's fixed. You can re-download and use it.
Regards.
Thank you. ❤️