• Hi, my host has disabled the getmypid() function for security reasons. Can you take action to fix this problem in your plugin? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter metalinedev

    (@metalinedev)

    Other details:

    This function throws a fatal error on this host:

    2022/12/12 13:01:40 [error] 43293#43293: *15039 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function Logeecom\Infrastructure\Utility\getmypid() in /www/fisioscience_255/public/wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/Utility/GuidProvider.php:52
    Stack trace:
    #0 /www/fisioscience_255/public/wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/TaskExecution/TaskRunnerWakeupService.php(105): Logeecom\Infrastructure\Utility\GuidProvider->generateGuid()
    #1 /www/fisioscience_255/public/wp-content/plugins/packlink-pro-shipping/vendor/packlink/integration-core/src/Infrastructure/TaskExecution/TaskRunnerWakeupService.php(53): Logeecom\Infrastructure\TaskExecution\TaskRunnerWakeupService->doWakeup()
    #2 /www/fisioscience_255/public/wp-content/plugins/packlink-pro-shipping/Components/Utility/class-task-queue.php(82): Logeecom\Infrastructure\TaskExecution\TaskRunnerWakeupService->wakeup()
    #3 /www/fisioscience_255/public/wp-content/plugins/packlink" while reading response header from upstream, client: 195.32.112.33, server: www.fisioscience.it, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-fisioscience.sock:", host: "www.fisioscience.it:27354", referrer: "https://www.fisioscience.it/wp-login.php?itsec-hb-token=f10e"

    I temporarily fixed the problem by changing line 52 of the GiudProvider.php file from return uniqid(getmypid() . '_', true); to return uniqid(mt_rand() . '_', true); but I don’t know if it’s the correct solution.

    Thread Starter metalinedev

    (@metalinedev)

    Hi, can you tell me something about it?

    Hi,
    I have the same problem in Kinsta hosting with php 8.
    Any updates on this topic?

    i am on KINSTA, was experiencing fatal error with php8 with packlink plugin

    i did your trick

    I temporarily fixed the problem by changing line 52 of the GiudProvider.php file from?return uniqid(getmypid() . '_', true);?to?return uniqid(mt_rand() . '_', true);?but I don’t know if it’s the correct solution.

    i dont have anymore problems …all running well on php8

    BIG THXXXX

    Thread Starter metalinedev

    (@metalinedev)

    I too have used this solution and have not encountered any problems. The fact remains that the author’s support for this plugin is non-existent.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘getmypid() has been disabled for security reasons’ is closed to new replies.