WPIntell

Source evidence

Support for PHP 8.x ?

Content Visibility for Divi Builder 路 support 路 2023-07-30T14:04:00+00:00

mixedsentiment
highseverity
0.94relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 28 rows with source links

21.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
glazzara resolved
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 @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鈥檝e 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 2 years, 10 months ago by Jonathan Horowitz . Reason: Typo

Comments

4 shown
Jonathan Horowitz 2023-07-30T23:17:00+00:00

@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?

glazzara 2023-07-31T08:22:00+00:00

Unfortunately, I鈥檝e 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_Ro...

glazzara 2023-07-31T08:52:00+00:00

Indeed, it was actually due to invalid ways of using variables from my side. Sorry for this report.

Jonathan Horowitz 2023-07-31T11:26:00+00:00

No worries! Glad you got it figured out 馃檪 This reply was modified 2 years, 10 months ago by Jonathan Horowitz . Reason: Typo