• Resolved wprookie46

    (@wprookie46)


    I get this error:

    PHP Fatal error: Cannot redeclare myplugin_update_db_check() (previously declared in /wp-content/plugins/header-footer-code-manager/99robots-header-footer-code-manager.php:61

    I think you need to rename that function and the call for it, the name you using is taken from an example code, others might use it and it gives an error 500 that crashes the site.

    I renamed it like this on row 60
    function robots_header_footer_code_manager_update_db_check() {...

    And this on row 91
    add_action( 'plugins_loaded', 'robots_header_footer_code_manager_update_db_check' );

Viewing 1 replies (of 1 total)
  • Plugin Support 99robotsteam

    (@99robotsteam)

    Hello – Thank you for bringing this to our notice. We have updated this along with a few other code optimization changes in the latest version – 1.0.9

    Thank you again,

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot redeclare myplugin_update_db_check()’ is closed to new replies.