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

Fatal error: Uncaught TypeError: Cannot access offset of type string #1402

Open
l1z0b opened this issue Mar 21, 2024 · 0 comments
Open

Fatal error: Uncaught TypeError: Cannot access offset of type string #1402

l1z0b opened this issue Mar 21, 2024 · 0 comments
Labels
maybe bug Potential bug, to be investigated

Comments

@l1z0b
Copy link

l1z0b commented Mar 21, 2024

After updating my server from PHP 7.4 to PHP 8.2 I receive the following error:

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in web/wp-content/plugins/qtranslate-xt/src/language_blocks.php:439

Stack trace:
#0 web/wp-content/plugins/qtranslate-xt/src/frontend.php(445): qtranxf_use_content()
#1 web/wp-content/plugins/qtranslate-xt/src/frontend.php(480): qtranxf_translate_object_property()
#2 web/wp-content/plugins/qtranslate-xt/src/frontend.php(508): qtranxf_translate_post()
#3 web/wp-includes/class-wp-hook.php(324): qtranxf_postsFilter()
#4 web/wp-includes/plugin.php(256): WP_Hook->apply_filters()
#5 web/wp-includes/class-wp-query.php(3530): apply_filters_ref_array()
#6 web/wp-includes/class-wp-query.php(3824): WP_Query->get_posts()
#7 web/wp-includes/post.php(6118): WP_Query->query()
#8 web/wp-includes/post-template.php(719): get_pages()
#9 web/wp-includes/post-template.php(620): get_body_class()
#10 web/wp-content/themes/hotelbramante/header.php(280): body_class()
#11 web/wp-includes/template.php(790): require_once('...')
#12 web/wp-includes/template.php(725): load_template()
#13 web/wp-includes/general-template.php(48): locate_template()
#14 web/wp-content/themes/hotelbramante/page-homepage.php(3): get_header()
#15 web/wp-includes/template-loader.php(106): include('...')
#16 web/wp-blog-header.php(19): require_once('...')
#17 web/index.php(17): require('...')
#18 {main} thrown in web/wp-content/plugins/qtranslate-xt/src/language_blocks.php on line 439

My website has Wordpress 6.4.3 and it has qtranslate-xt 3.15.2, I can't find how to fix this problem, before the PHP update everything worked fine.

@l1z0b l1z0b added the maybe bug Potential bug, to be investigated label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe bug Potential bug, to be investigated
Projects
None yet
Development

No branches or pull requests

1 participant