• Resolved SGURYGF

    (@sgurygf)


    Hi,

    After updating the plugin to 3.1 I get the following when I try to access the dashboard area:

    PHP Fatal error: Cannot redeclare get_file_description() in P\x1c\xb0uG\x7f on line 78, referer: https://[my-site]/wp-admin/plugins.php

    When I disable the plugin by renaming its directory the error goes away. When I reactivate I get the error. I tried reinstalling the plugin Files but I still get the same.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter SGURYGF

    (@sgurygf)

    Any help appreciated..

    Plugin Author John Godley

    (@johnny5)

    I suspect you have something else that is including files from the wp-admin directory. Can you try temporarily disabling other plugins or maybe changing your theme?

    Also, do you know what P\x1c\xb0uG\x7f is?

    Getting similar problems since trying to update the plugin. Sorry, but I don’t understand coding. All I can tell you is I get messages like: “Failed opeing….plugins/redirection/api/api-404.php’ for inclusion…..on line 6” or
    “……Failed to open stream….no such file or directory….line 5, 6, 7,…..”
    My host says the problem is with this plugin.
    I did delete it and tried to reinstall and the problem occurred again.
    Just tell me when it’s fixed and then I’ll reinstall.
    Thanks

    I had something similar, and wound up having to roll back our installation entirely. In our case the update caused posts to no longer be found (not just posts with redirections in place, but all posts) throwing a server-level 404 error. We have https in place; don;t know if that was involved.

    • This reply was modified 7 years, 1 month ago by smazsyr.

    I don’t have https. I’ll just wait and hope they fix it soon.

    Thread Starter SGURYGF

    (@sgurygf)

    I don’t know what P\x1c\xb0uG\x7f is, I think it is showing random codes each time.

    I cannot disable all other plugins as the website is live. I doubt its anything else because the problem started as soon as I updated the plugin and it also goes away when I disable it.

    I will try to install an older version to see (if I find it)

    Plugin Author John Godley

    (@johnny5)

    I doubt its anything else because the problem started as soon as I updated the plugin

    Sure. The error is caused because two things are including the same file. One of them is Redirection, but something else is also including it, and this is specific to your site – it doesn’t happen in general. If I knew what else was including the file then it would help with a solution.

    Same problem after updloading pictures

    fatal error: cannot redeclare get_file_description() in x ?? ? on line 78

    • This reply was modified 7 years, 1 month ago by Cavor.

    In the redirection-api.php, update line 13 to an include_once:

    if ( ! function_exists( ‘get_home_path’ ) ) {
    include_once ABSPATH . ‘/wp-admin/includes/file.php’;
    }

    Plugin Author John Godley

    (@johnny5)

    @subatomic sure, I’d like to be able to know where the other definition is being included so I can test for it and make sure it (or something similar) doesn’t happen again.

    We use our site for redirects, so our theme is pretty much blank. It would have to be included with one of our other plugins: Wordfence or WP Super Cache.

    Thread Starter SGURYGF

    (@sgurygf)

    @subatomic

    Perfect, this fixed the issue, at least temporarily.

    Thanks

    p.s: I also use WP-Super-Cache

    Plugin Author John Godley

    (@johnny5)

    The 3.2 beta should fix this problem. Can anyone with the error confirm it for me?

    https://github.com/johngodley/redirection/releases/tag/3.2-beta

    I was able to load the new beta patch and all seems fine. No longer a fatal error message. Thanks!

    @johnny5 Thanks !

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PHP Fatal Error after updating to 3.1’ is closed to new replies.