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

Support PHP 8.1 and PHP 8.2 #84

Open
bobbingwide opened this issue Nov 28, 2021 · 4 comments
Open

Support PHP 8.1 and PHP 8.2 #84

bobbingwide opened this issue Nov 28, 2021 · 4 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Nov 28, 2021

PHP 7.3 is going out of support - End of Life (EOL) - on 6 Dec 2021
PHP 7.4 active support is until midnight tonight. Security Support ( ie EOL ) is 28 Nov 2022
PHP 8.0 End of life is: 2023-11-26
PHP 8.1 was released on 25 Nov 2021. EOL is 25 Nov 2024

oik-shortcodes produces a number of Deprecated messages with PHP 8.0 such as:

Deprecated: Required parameter $component_slug follows optional parameter $file in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\classes\oik-listapis2.php on line 77

Warning: Trying to access array offset on value of type null in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\admin\oik-files.php on line 84

Notice: WP_Block_Type_Registry::register was called incorrectly. Block type "oiksp/squeeze" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.) in C:\apache\htdocs\oikcom\wp-includes\functions.php on line 5663

Which of these are problems associated with PHP 8?
Investigate and fix

@bobbingwide
Copy link
Owner Author

Deprecated: Creation of dynamic property oiksc_404_handler::$handlers is deprecated in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\classes\class-oiksc-404-handler.php on line 126

@bobbingwide bobbingwide changed the title Support PHP 8.x Support PHP 8.1 and PHP 8.2 Oct 26, 2023
@bobbingwide
Copy link
Owner Author

Update code to run without problems in PHP 8.1 and 8.2

See bobbingwide/bobbingwide#103

@bobbingwide
Copy link
Owner Author

Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php on line 53

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php on line 187

Deprecated: Creation of dynamic property oiksc_parsed_source::$latest_md5_hash is deprecated in C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\classes\class-oiksc-parsed-source.php on line 84

@bobbingwide
Copy link
Owner Author

bobbingwide commented Dec 4, 2023

Message found in oik-plugins.co.uk debug.log

04-Dec-2023 10:35:01 UTC] PHP Deprecated:  preg_replace(): 
Passing null to parameter #3 ($subject) of type array|string is deprecated 
in /home/customer/www/oik-plugins.co.uk/public_html/wp-content/plugins/oik-shortcodes/classes/oik-docblock.php on line 123

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

No branches or pull requests

1 participant