Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 Support #171

Open
arafatjamil01 opened this issue Oct 26, 2023 · 8 comments
Open

PHP 8.2 Support #171

arafatjamil01 opened this issue Oct 26, 2023 · 8 comments

Comments

@arafatjamil01
Copy link

I tried to use PHP 8.2, and many deprecation notices were shown. It'd be great if it updated.

@optimocha
Copy link

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

@Niloys7
Copy link

Niloys7 commented Nov 28, 2023

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 :(

@arafatjamil01
Copy link
Author

It's 8.3 now

@STV11C
Copy link

STV11C commented Dec 14, 2023

I'm experiencing the same issue. Looking forward to a fix. Does anyone have a temp fix that could work?

@Niloys7
Copy link

Niloys7 commented Dec 14, 2023

@STV11C I added these properties to CSF_Abstract to resolve the error when wp_debug is enabled. Tested on PHP 8.2.8.

CleanShot 2023-12-14 at 23 39 51

public $field = array(); public $unique = ''; public $value = ''; public $parent = ''; public $where = '';

@STV11C
Copy link

STV11C commented Dec 16, 2023

@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 :)

cs-fix

@Codestar
Copy link
Owner

Hi Guys,

It's fixed. You can re-download and use it.

Regards.

@arafatjamil01
Copy link
Author

Thank you. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants