MB Views PHP error in PHP 8 / maybe compatibility issue with JetEngine?
- This topic has 3 replies, 2 voices, and was last updated 2 years, 3 months ago by
Peter.
-
AuthorPosts
-
December 8, 2022 at 11:21 PM #39615
Marius
ParticipantHi Team Meta Box,
With the latest update of Meta Box & Meta Box Views I do get the following PHP error, which renders the page broken in PHP 8.0, in PHP 7.4 it works:
AH01071: Got error 'PHP message: PHP Warning: Undefined array key "exposes" in /httpdocs/wp-content/plugins/mb-views/vendor/elightup/twig/Twig/Environment.php(358) : eval()'d code on line 798PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /httpdocs/wp-content/plugins/elementor/includes/widgets/image-carousel.php:846\nStack trace:\n#0 /httpdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(2249): Elementor\\Widget_Image_Carousel->render()\n#1 /httpdocs/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\\Controls_Stack->render_by_mode()\n#2 /httpdocs/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\\Widget_Base->render_content()\n#3 /httpdocs/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\\Widget_Base->print_content()\n#4 /httpdocs/wp-content/plugins/elementor/includes/base/element-base.php(787): Elementor\\Element_Base->print_element()\n#5 /var/www/vhosts/wohnungsver...', referer: https://www.…/
I am using Elementor and also JetEngine from Crocoblock, which produces the following PHP Warning (I opened a ticket for them too…) — I guess it is related?
AH01071: Got error 'PHP message: PHP Warning: Undefined array key "name" in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401PHP message: PHP Warning: Undefined array key "name" in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401PHP message: PHP Warning: Undefined array key "name" in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401PHP message: PHP Warning: Undefined array key "name" in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401', referer: https://www.wohnungsverein.de/mietwohnungen-in-hagen/wohnungssuche-in-hagen/459799/
Thanks in advance!
Kindly
MariusDecember 11, 2022 at 9:14 AM #39673Peter
ModeratorHello Marius,
Thank you for your feedback.
The main issue of the site being broken is the error from Elementor
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /httpdocs/wp-content/plugins/elementor/includes/widgets/image-carousel.php
If you deactivate Meta Box and Meta Box AIO, does the error still happen?
Regarding the warning error
PHP Warning: Undefined array key "exposes" in /httpdocs/wp-content/plugins/mb-views/vendor/elightup/twig/Twig/Environment.php(358) : eval()'d code on line 798
Can you please let me know how to reproduce the issue? I will also inform the development team to check it on our side.
And regarding the warning error with JetEngine
Got error 'PHP message: PHP Warning: Undefined array key "name" in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401
This issue has been noticed and our development team is working to fix it in the next update.
February 3, 2023 at 5:11 PM #40389Marius
ParticipantNow, a few updates later, i still get only! this Warning:
[03-Feb-2023 1 UTC] PHP Notice: Undefined index: name in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401 [03-Feb-2023 08:49:41 UTC] PHP Notice: Undefined index: name in /httpdocs/wp-content/plugins/jet-engine/includes/compatibility/packages/meta-box.php on line 401
So i hope this will be fixes in a future update! 😉
February 4, 2023 at 11:44 AM #40394Peter
ModeratorHello Marius,
As you can read in the notification message, the error comes from the compatibility code of the JetEngine plugin so you can try to contact their support to ask for help with this issue.
Thanks for your understanding and patience.
-
AuthorPosts
- You must be logged in to reply to this topic.