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.0 Deprecated $field_type_object #1490

Open
josip-matic opened this issue Apr 16, 2023 · 2 comments
Open

PHP 8.0 Deprecated $field_type_object #1490

josip-matic opened this issue Apr 16, 2023 · 2 comments

Comments

@josip-matic
Copy link

josip-matic commented Apr 16, 2023

Describe the bug

PHP 8.0
[16-Apr-2023 21:14:42 UTC] PHP Deprecated: Required parameter $field_type_object follows optional parameter $field_escaped_value in /home/airportsplitinfo/public_html/wp-content/plugins/cmb-field-select2/cmb-field-select2.php on line 83

Your Environment

Browser name and version:
Operating System and version (desktop or mobile):
Wordpress 6.2, php 8.0

Additional context

PHP 7.4 work fine

@tw2113
Copy link
Contributor

tw2113 commented Apr 17, 2023

Looks like that error is actually coming from something like https://github.com/lukedanielson/wp-plugins_cmb-field-select2 or https://github.com/mustardBees/cmb-field-select2 which is separate from CMB2 core here. Hard to say which of those you're using, but whichever one should get the issue report.

@hansmorb
Copy link

This is likely coming from https://github.com/mustardBees/cmb-field-select2, which is abandoned. https://github.com/wpcodefactory/cmb-field-select2 has it fixed on their fork but I don't know if they will actively maintain it in the future. Best practice would be maybe to fork it yourself and change it there.

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

3 participants