• Resolved hubbardfam

    (@hubbardfam)


    Fatal Error with Undefined Function Call to php_uname()

    Description: While using the Give plugin on my WordPress site, I encountered a fatal error related to an undefined function call to php_uname(). This error is occurring within the Give plugin’s tracking feature, specifically in the ServerData.php file at line 48.

    Summarised Error Message:

    [04-Mar-2024 08:27:50 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Give\Tracking\TrackingData\php_uname() in /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/ServerData.php:48

    Full Error Message:

    [04-Mar-2024 08:27:50 UTC] PHP Fatal error: Uncaught Error: Call to undefined function Give\Tracking\TrackingData\php_uname() in /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/ServerData.php:48
    Stack trace: 0 /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/ServerData.php(27): Give\Tracking\TrackingData\ServerData->getServerData() 1 /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/WebsiteData.php(40): Give\Tracking\TrackingData\ServerData->get() 2 /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/WebsiteInfoData.php(44): Give\Tracking\TrackingData\WebsiteData->get() 3 /var/www/wptbox/wp-content/plugins/give/src/Tracking/Repositories/TrackEvents.php(121): Give\Tracking\TrackingData\WebsiteInfoData->get() 4 /var/www/wptbox/wp-content/plugins/give/src/Tracking/Events/WebsiteTracking.php(52): Give\Tracking\Repositories\TrackEvents->storeWebsiteTrackingEvent() 5 [internal function]: Give\Tracking\Events\WebsiteTracking->websiteUpdateTrackingHandler() 6 /var/www/wptbox/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array() 7 /var/www/wptbox/wp-includes/class-wp-hook.php(324): Give\Helpers\Hooks::Give\Helpers{closure}() 8 /var/www/wptbox/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 9 /var/www/wptbox/wp-includes/plugin.php(517): WP_Hook->do_action() 10 /var/www/wptbox/wp-includes/load.php(1260): do_action() 11 [internal function]: shutdown_action_hook() 12 {main}

    thrown in /var/www/wptbox/wp-content/plugins/give/src/Tracking/TrackingData/ServerData.php on line 48

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

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

    (@hubbardfam)

    PHP VERSION: 8.0.25
    WP Memory Limit: 256 MB

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @hubbardfam.

    Glad you reached out.

    php_uname() returns a description of the operating system PHP is running on. This is the same string you see at the very top of the phpinfo() output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will contain the operating system PHP was built on.

    On some older UNIX platforms, it may not be able to determine the current OS information, in which case it will revert to displaying the OS PHP was built on. This will only happen if your uname() library call either doesn’t exist or doesn’t work.

    In this case, can you confirm with your host that this function is enabled on your site? If it isn’t active, there are chances that it will break the website.

    Looking forward to helping you get to the bottom of this!

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi there.

    It’s been a while since we’ve heard back, and I know troubleshooting needs a little extra time. I’m marking this as resolved for now, but if you still have questions, you can send them along right here, and I’ll be happy to hop back in.

    Have a great day!

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

The topic ‘PHP Fatal Error’ is closed to new replies.