• Resolved devsc2768

    (@devsc2768)


    My websites autoupdated to 3.1.6 and it caused a fatal error:

    2024/06/20 12:05:43 [error] 56488#56488: *170522 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot redeclare fs_dynamic_init() (previously declared in /www/somewebsite_552/public/wp-content/plugins/wpcf7-redirect/licensing_fs.php:4) in /www/somewebsite_552/public/wp-content/plugins/ocean-extra/includes/freemius/start.php on line 552” while reading response header from upstream, client: 66.249.64.225, server: somewebsite[.]com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-somewebsite.sock:”, host: “somewebsite[.]com:36100”

    I rolled back to 3.1.5 and the website is now back online.

    • This topic was modified 4 months ago by devsc2768.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Themeisle

    (@themeisle)

    Hi there,

    Thank you for reporting, we are looking into it.

    jaredush

    (@jaredush)

    A temporary fix I found for if a website experiences a critical error due to this plugin is to un-install via hosting file manager (or something like FTP) and to re-install it. Seems to be only crashing only when updating on an existing install.

    • This reply was modified 4 months ago by jaredush.
    erikjandelange

    (@erikjandelange)

    Same problem here.

    fs_dynamic_init() is already declared by another plugin which doesnt check if the function exists. So when your plugin is loaded sooner, it will create this function and afterwards they will create the same.

    The problem in this case is with the other plugin. BUT. When the also check if it exists they use your fs_dynamic_init() function because your plugin is loaded sooner. This can also create errors because the functions can differ.

    Please prefix your functions, this will prevent compatibility issues with other plugins.
    So make it for example: wpcf7_fs_dynamic_init()

    I’ve also created a topic for the other plugin with the same problem.

    Cheers!
    Erik

    Plugin Author Themeisle

    (@themeisle)

    Hi there,

    The most recent release fixes this issue.

    Thank you!

    Thread Starter devsc2768

    (@devsc2768)

    Thanks for the quick response and fix

    erikjandelange

    (@erikjandelange)

    Yup! This fixes the issue.
    Thanks for the quick response and fix.

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