• Resolved Hunter Nelson

    (@tnhsaesop)


    I reached out to my hosting provider flywheel about this, but they said that php_uname is blocked for security reasons. This seems to be related to helpscout support and I only have this issue appearing on one site. Is there any way to disable this code?

    Error Details
    =============
    An error of type E_ERROR was caused in line 39 of the file /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php. Error message: Uncaught Error: Call to undefined function php_uname() in /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php:39
    Stack trace:
    #0 /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php(20): WPSEO_Tracking_Server_Data->get_server_data()
    #1 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(237): WPSEO_Tracking_Server_Data->get()
    #2 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(201): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->get_server_info()
    #3 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(156): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->get_session_data()
    #4 /wordpress/wp-includes/class-wp-hook.php(307): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->output_beacon_js(”)
    #5 /wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wordpress/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #7 /wordpress/wp-admin/admin-footer.php(78): do_action(‘admin_footer’, ”)
    #8 /wordpress/wp-admin/admin.php(297): require_once(‘/wordpress/wp-a…’)
    #9 {main}
    thrown

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Hunter Nelson

    (@tnhsaesop)

    I see some filters here in the code that look like you may be able to change a setting, but I’m not sure how to edit it:

    protected function filter_settings() {
    		/**
    		 * Filter: 'wpseo_helpscout_beacon_settings' - Allows overriding the HelpScout beacon settings.
    		 *
    		 * @api string - The HelpScout beacon settings.
    		 */
    		$filterable_helpscout_setting = [
    			'products'  => $this->products,
    			'pages_ids' => $this->pages_ids,
    		];
    
    		$helpscout_settings = \apply_filters( 'wpseo_helpscout_beacon_settings', $filterable_helpscout_setting );
    
    		$this->products  = $helpscout_settings['products'];
    		$this->pages_ids = $helpscout_settings['pages_ids'];
    	}
    Thread Starter Hunter Nelson

    (@tnhsaesop)

    Just for troubleshooting help, I tried disabling all plugins except yoast and reverting to both 2020 and 2022 theme. The issue still persists after taking all these steps.

    Thread Starter Hunter Nelson

    (@tnhsaesop)

    I tracked this down to an incompatibility with php 8.1 I worked with my host to get PHP downgraded to 7.4 which resolved the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error In Uname From Helpscout Beacon’ is closed to new replies.