• nineplanetsllc

    (@nineplanetsllc)


    At some point recently we started getting the following fatal error, which references Divi, but only occurs when SEOPress is active:

    PHP Fatal error: Uncaught Error: Call to a member function get_fields() on null in /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php:4932\nStack trace:\n#0 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(4320): ET_Builder_Element->_add_font_fields()\n#1 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(1010): ET_Builder_Element->_add_additional_fields()\n#2 /home/example/domains/example.com/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/divi/includes/loader.php(11): ET_Builder_Element->__construct()\n#3 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/api/DiviExtension.php(250): require_once('/home/example/…')\n#4 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(341): DiviExtension->hook_et_builder_ready()\n#5 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#6 /home/example/domains/example.com/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()\n#7 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/framework.php(861): do_action()\n#8 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(341): et_builder_add_main_elements()\n#9 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#10 /home/example/domains/example.com/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()\n#11 /home/example/domains/example.com/public_html/wp-settings.php(793): do_action()\n#12 /home/example/domains/example.com/public_html/wp-config.php(90): require_once('/home/example/…')\n#13 /home/example/domains/example.com/public_html/wp-load.php(50): require_once('/home/example/…')\n#14 /home/example/domains/example.com/public_html/wp-admin/admin.php(35): require_once('/home/example/…')\n#15 /home/example/domains/example.com/public_html/wp-admin/themes.php(10): require_once('/home/example/…')\n#16 {main}\n thrown in /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php on line 4932\n

    The site is using Divi 4.27.6, and has SEOPress 9.9.2 and SEOPress Pro 9.9.2. The base SEOPress plugin seems to be the trigger, when that is disabled things work fine. I tried rolling back to previous versions, that didn’t seem to help. I also uploaded fresh copies of both SEOPress plugins in case any files had been corrupted, but that didn’t help either. Any idea what might be happening there?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    get_fields() is a function used by ACF plugin (https://www.advancedcustomfields.com/resources/get_fields/).

    It seems not related to SEOPress.

    But maybe you’re using this dynamic variable somewhere in your title / meta desc that might trigger this (not 100% sure):

    %%_cf_your_custom_field_key%%

    Thread Starter nineplanetsllc

    (@nineplanetsllc)

    That is bizarre, because this site didn’t have ACF, and as far as I know it never did. I tried installing ACF just to see how that affected things, nothing configured in it, just installed and activated. With that added I can have the base SEOPress plugin active without things crashing, but if I activate the SEOPress Pro one I get this new fatal error:

    PHP Fatal error: Uncaught Error: Call to undefined method SEOPressPro\Services\Options\OptionPro::getRichSnippetsSiteNavigation() in /home/example/domains/example.com/public_html/wp-content/plugins/wp-seopress-pro/src/Actions/Front/Schemas/PrintHeadSiteNavigationElementJsonSchema.php:37\nStack trace:\n#0 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(341): SEOPressPro\Actions\Front\Schemas\PrintHeadSiteNavigationElementJsonSchema->render()\n#1 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#2 /home/example/domains/example.com/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()\n#3 /home/example/domains/example.com/public_html/wp-includes/general-template.php(3208): do_action()\n#4 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-header-template.php(11): wp_head()\n#5 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once('/home/example/…')\n#6 /home/example/domains/example.com/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(247): et_theme_builder_frontend_override_partial()\n#7 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(343): et_theme_builder_frontend_override_header()\n#8 /home/example/domains/example.com/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#9 /home/example/domains/example.com/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()\n#10 /home/example/domains/example.com/public_html/wp-includes/general-template.php(38): do_action()\n#11 /home/example/domains/example.com/public_html/wp-content/themes/Divi/page.php(3): get_header()\n#12 /home/example/domains/example.com/public_html/wp-includes/template-loader.php
    2026-06-10 10:32:15.817814 [NOTICE] [2817906] [T0] [38.46.21.175:52614:HTTP2-387#APVH_www.example.com:443] STDERR: include('/home/example/…')\n#13 /home/example/domains/example.com/public_html/wp-blog-header.php(19): require_once('/home/example/…')\n#14 /home/example/domains/example.com/public_html/index.php(17): require('/home/example/…')\n#15 {main}\n thrown in /home/example/domains/example.com/public_html/wp-content/plugins/wp-seopress-pro/src/Actions/Front/Schemas/PrintHeadSiteNavigationElementJsonSchema.php on line 37\n

    I also don’t see anywhere %%_cf_your_custom_field_key%% would be set in the base SEOPress.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.