Hi there,
Thanks for reporting this.
I have it running on php 8 I believe in my test environment. But I’ll make sure to do some php 8 specific testing asap.
Thanks again!
Oh, so your errors relate to safe svg I think, not my plugin, svg support.
Try disabling safe svg plugin and see how that goes.
I’ll still do some testing anyway though.
I find an error on php8.0
wp_localize_script($handle = 'bodhi_svg_inline', $object_name = 'ForceInlineSVGActive', $l10n = 'false') /app/wp-content/plugins/svg-support/functions/enqueue.php:145"
I was trying to find the code to fork it and fix, but the github https://github.com/wp-plugins/svg-support doesn’t match the current version. Am i missing something?
The stack trace is below:
PHP message: PHP Warning: Only the first byte will be assigned to the string offset in /app/wp-includes/class.wp-scripts.php on line 492″
PHP message: PHP Stack trace:”
PHP message: PHP 1. {main}() /app/index.php:0″
PHP message: PHP 2. require() /app/index.php:17″
PHP message: PHP 3. require_once() /app/wp-blog-header.php:19″
PHP message: PHP 4. include() /app/wp-includes/template-loader.php:106″
PHP message: PHP 5. get_header($name = *uninitialized*, $args = *uninitialized*) /app/wp-content/themes/neve/page.php:10″
PHP message: PHP 6. locate_template($template_names = [0 => ‘header.php’], $load = TRUE, $require_once = TRUE, $args = []) /app/wp-includes/general-template.php:48″
PHP message: PHP 7. load_template($_template_file = ‘/app/wp-content/themes/neve/header.php’, $require_once = TRUE, $args = []) /app/wp-includes/template.php:676″
PHP message: PHP 8. require_once() /app/wp-includes/template.php:730″
PHP message: PHP 9. wp_head() /app/wp-content/themes/neve/header.php:22″
PHP message: PHP 10. do_action($tag = ‘wp_head’) /app/wp-includes/general-template.php:3005″
PHP message: PHP 11. WP_Hook->do_action($args = [0 => ”]) /app/wp-includes/plugin.php:484″
PHP message: PHP 12. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) /app/wp-includes/class-wp-hook.php:311″
PHP message: PHP 13. wp_enqueue_scripts(”) /app/wp-includes/class-wp-hook.php:287″
PHP message: PHP 14. do_action($tag = ‘wp_enqueue_scripts’) /app/wp-includes/script-loader.php:2004″
PHP message: PHP 15. WP_Hook->do_action($args = [0 => ”]) /app/wp-includes/plugin.php:484″
PHP message: PHP 16. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) /app/wp-includes/class-wp-hook.php:311″
PHP message: PHP 17. bodhi_svgs_inline(”) /app/wp-includes/class-wp-hook.php:287″
PHP message: PHP 18. wp_localize_script($handle = ‘bodhi_svg_inline’, $object_name = ‘ForceInlineSVGActive’, $l10n = ‘false’) /app/wp-content/plugins/svg-support/functions/enqueue.php:145″
PHP message: PHP 19. WP_Scripts->localize($handle = ‘bodhi_svg_inline’, $object_name = ‘ForceInlineSVGActive’, $l10n = ‘false’) /app/wp-includes/functions.wp-scripts.php:221″
Hi @donbowman
Sorry for the late reply!
Yeah, that repo was just set up to test some update procedures a few years ago. It’s hosted just in WordPress’ SVN repo.
I’m hoping to get one time to work on the plugin very soon and will address this and many other things.
If you wanted to play with the code in the meantime, you can download it direct from the ww.wp.xz.cn repo for the time being.