Support for PHP 8.x ?
-
Hi,
Thanks for this great plugin. Do you have any plan for supporting PHP 8.x ?
I tried to migrate to that version but I got many errors coming from this plugin.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
-
@glazzara, I believe the plugin itself should be working on PHP 8.
Could you provide a stack trace of one of the errors you are seeing?
Unfortunately, I’ve got this error when I enable PHP 8.x (0,1,2). But I am wondering if the problem comes from the variables I am passing which are not correctly set anymore.
Warning: Undefined variable $current_user in _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()'d code on line 1 Warning: Attempt to read property "roles" on null in _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()'d code on line 1 Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()'d code:1 Stack trace: #0 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()'d code(1): in_array('centre_affilie', NULL) #1 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179): eval() #2 _site_path_/wp-includes/class-wp-hook.php(308): {closure}('<div class="et_...', Array, '<p style="text-...', 'et_pb_text', Object(ET_Builder_Module_Text), '_render') #3 _site_path_/wp-includes/plugin.php(205): WP_Hook->apply_filters('<div class="et_...', Array) #4 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(300): apply_filters('content_visibil...', '<div class="et_...', Array, '<p style="text-...', 'et_pb_text', Object(ET_Builder_Module_Text), '_render') #5 _site_path_/wp-includes/shortcodes.php(355): MEDB_ET_Builder_Element->medb_execute(Array, '<p style="text-...', 'et_pb_text') #6 [internal function]: do_shortcode_tag(Array) #7 _site_path_/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(et_pb_...', 'do_shortcode_ta...', '[et_pb_text adm...') #8 _site_path_/wp-content/themes/Divi/includes/builder/main-structure-elements.php(3784): do_shortcode('[et_pb_text adm...') #9 _site_path_/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3340): ET_Builder_Column->render(Array, '[et_pb_text adm...', 'et_pb_column', '', '', '', '', '') #10 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(300): ET_Builder_Element->_render(Array, '[et_pb_text adm...', 'et_pb_column', '', '', '', '', '') #11 _site_path_/wp-includes/shortcodes.php(355): MEDB_ET_Builder_Element->medb_execute(Array, '[et_pb_text adm...', 'et_pb_column') #12 [internal function]: do_shortcode_tag(Array) #13 _site_path_/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(USER_M...', 'do_shortcode_ta...', '[et_pb_column t...') #14 _site_path_/wp-content/themes/Divi/includes/builder/main-structure-elements.php(2274): do_shortcode('[et_pb_column t...') #15 _site_path_/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3340): ET_Builder_Row->render(Array, '[et_pb_column t...', 'et_pb_row', '', '', '', '', '') #16 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(300): ET_Builder_Element->_render(Array, '[et_pb_column t...', 'et_pb_row', '', '', '', '', '') #17 _site_path_/wp-includes/shortcodes.php(355): MEDB_ET_Builder_Element->medb_execute(Array, '[et_pb_column t...', 'et_pb_row') #18 [internal function]: do_shortcode_tag(Array) #19 _site_path_/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(custom...', 'do_shortcode_ta...', '[et_pb_row _bui...') #20 _site_path_/wp-content/themes/Divi/includes/builder/main-structure-elements.php(1606): do_shortcode('[et_pb_row _bui...') #21 _site_path_/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3340): ET_Builder_Section->render(Array, '[et_pb_row _bui...', 'et_pb_section', '', '', '', '', '') #22 _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(300): ET_Builder_Element->_render(Array, '[et_pb_row _bui...', 'et_pb_section', '', '', '', '', '') #23 _site_path_/wp-includes/shortcodes.php(355): MEDB_ET_Builder_Element->medb_execute(Array, '[et_pb_row _bui...', 'et_pb_section') #24 [internal function]: do_shortcode_tag(Array) #25 _site_path_/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(custom...', 'do_shortcode_ta...', '<div class="et-...') #26 _site_path_/wp-includes/class-wp-hook.php(308): do_shortcode('<div class="et-...') #27 _site_path_/wp-includes/plugin.php(205): WP_Hook->apply_filters('<div class="et-...', Array) #28 _site_path_/wp-includes/post-template.php(255): apply_filters('the_content', '[et_pb_section ...') #29 _site_path_/wp-content/themes/Divi/page.php(46): the_content() #30 _site_path_/wp-includes/template-loader.php(106): include('/home/clients/d...') #31 _site_path_/wp-blog-header.php(19): require_once('/home/clients/d...') #32 _site_path_/index.php(17): require('/home/clients/d...') #33 {main} thrown in _site_path_/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()'d code on line 1 Il y a eu une erreur critique sur ce site.
Indeed, it was actually due to invalid ways of using variables from my side. Sorry for this report.
No worries! Glad you got it figured out ??
-
This reply was modified 1 year, 7 months ago by
Jonathan Horowitz. Reason: Typo
-
This reply was modified 1 year, 7 months ago by
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Support for PHP 8.x ?’ is closed to new replies.