Support » Plugin: Plugin Organizer » Conflict with Plugin Organizer plugin on desktop view/non-logged in status

  • Resolved Joel Zaslofsky

    (@joelzaslofsky)


    I’m having an issue with loading a Thrive Architect plugin generated page while using Plugin Organizer. As far as I can tell, the issue only happens when you’re not logged in as a user to our site and when loading the page with desktop view.

    How to Reproduce

    1. Enable Plugin Organizer.
    2. Load https://theputtytribe.com/email-waitlist/ while logged into the Puttytribe site in desktop view.
    3. The page displays properly.
    4. Load https://theputtytribe.com/email-waitlist/ while not logged into Puttytribe site in mobile view.
    5. The page displays properly.
    6. Open a incognito/private browsing window in desktop view.
    7. Load https://theputtytribe.com/email-waitlist/
    8. Receive an error message that “There has been a critical error on your website.”
    9. Disable Plugin Organizer.
    10. Open a incognito/private browsing window in desktop view.
    11. Load https://theputtytribe.com/email-waitlist/
    12. The page displays properly.

    Here’s a video of the issue with more context.

    And here’s the information from an error log to help you assess the root cause and help me fix it.

    2020/07/30 14:05:15 [error] 32712#32712: *2728896 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function get_field_objects() in /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php:1108
    Stack trace:
    #0 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(1241): TCB_Custom_Fields_Shortcode->get_acf_fields(false, Array)
    #1 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(249): TCB_Custom_Fields_Shortcode->get_all_external_fields()
    #2 /var/www/html/wp-includes/class-wp-hook.php(287): TCB_Custom_Fields_Shortcode->output_custom_fields_variables('')
    #3 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/functions.php(393): do_action('tcb_get_extra_g...')
    #6 /var/www/html/wp-includes/class-wp-hook.php(287): tve_load_global_var" while reading response header from upstream, client: 24.212.190.220, server: theputtytribe.com, request: "GET /email-waitlist/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-wp.sock:", host: "theputtytribe.com"
    root@forum:/var/log/nginx# less wordpress.error
    root@forum:/var/log/nginx# less +F wordpress.error
    #2 /var/www/html/wp-includes/class-wp-hook.php(287): TCB_Custom_Fields_Shortcode->output_custom_fields_variables('')
    #3 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/functions.php(393): do_action('tcb_get_extra_g...')
    #6 /var/www/html/wp-includes/class-wp-hook.php(287): tve_load_global_var" while reading response header from upstream, client: 188.29.84.228, server: theputtytribe.com, request: "GET /email-waitlist/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-wp.sock:", host: "theputtytribe.com"
    2020/07/30 14:05:15 [error] 32712#32712: *2728896 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function get_field_objects() in /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php:1108
    Stack trace:
    #0 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(1241): TCB_Custom_Fields_Shortcode->get_acf_fields(false, Array)
    #1 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(249): TCB_Custom_Fields_Shortcode->get_all_external_fields()
    #2 /var/www/html/wp-includes/class-wp-hook.php(287): TCB_Custom_Fields_Shortcode->output_custom_fields_variables('')
    #3 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/functions.php(393): do_action('tcb_get_extra_g...')
    #6 /var/www/html/wp-includes/class-wp-hook.php(287): tve_load_global_var" while reading response header from upstream, client: 24.212.190.220, server: theputtytribe.com, request: "GET /email-waitlist/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-wp.sock:", host: "theputtytribe.com"
    2020/07/30 14:11:48 [error] 32711#32711: *2730518 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function get_field_objects() in /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php:1108
    Stack trace:
    #0 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(1241): TCB_Custom_Fields_Shortcode->get_acf_fields(false, Array)
    #1 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-custom-fields-shortcode.php(249): TCB_Custom_Fields_Shortcode->get_all_external_fields()
    #2 /var/www/html/wp-includes/class-wp-hook.php(287): TCB_Custom_Fields_Shortcode->output_custom_fields_variables('')
    #3 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /var/www/html/wp-content/plugins/thrive-visual-editor/inc/functions.php(393): do_action('tcb_get_extra_g...')
    #6 /var/www/html/wp-includes/class-wp-hook.php(287): tve_load_global_var" while reading response header from upstream, client: 31.15.72.251, server: theputtytribe.com, request: "GET /email-waitlist/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm-wp.sock:", host: "theputtytribe.com"

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    It looks like you’ve disabled a plugin that is needed for the page using plugin organizer. Whatever plugin registers the function get_field_objects seems to be the issue. Use the plugin search tab on the Plugin Organizer settings page to see where that plugin has been disabled.

    It turns out the issue was with the Advanced Custom Fields Pro plugin. For some reason, the Thrive Architect pages wouldn’t load properly in an incognito window without also loading Advanced Custom Fields Pro.

    That makes no sense to me. But alas, the problem is solved. And I’m grateful.

    Thanks Jeff!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.