• Resolved crylike

    (@crylike)


    Hi,

    Hmmm..my last question didn’t get resolve, but I hope this one will, because I am really lost.

    I was trying to upgrade a site with wordpress automatic upgrade. First, I deleted index.php.wpau.bak file for the maintenance mode to activate. It get me pass through that step, but I got more errors which are all the same about permission ( I didn’t get to save what it was). And then, when I hit the next button, it gave me this error :

    Fatal error: Cannot redeclare validate_file() (previously declared in /home/ramjtmp/public_html/wp-includes/functions.php:2245) in /home/ramjtmp/public_html/wp-admin/includes/file.php on line 73

    Now, I can’t get into dashboard because of this error.

    When I got visit the site, this error appears:

    Fatal error: Call to undefined function get_shortcode_regex() in /home/ramjtmp/public_html/wp-includes/formatting.php on line 100

    I don’t know what to do. Please help…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crylike

    (@crylike)

    Sorry, I did not write down what’s on those line.
    Here’s what in line 100 formatting.php

    $pee = preg_replace(‘/<p>\s*?(‘ . get_shortcode_regex() . ‘)\s*<\/p>/s’, ‘$1’, $pee);

    and this is from line 59 to 73 of file.php

    function validate_file( $file, $allowed_files = ” ) {
    if ( false !== strpos( $file, ‘..’ ))
    return 1;

    if ( false !== strpos( $file, ‘./’ ))
    return 1;

    if (‘:’ == substr( $file, 1, 1 ))
    return 2;

    if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) )
    return 3;

    return 0;
    }

    Thread Starter crylike

    (@crylike)

    I forgot to do to the whole process of updating wordpress. I forgot to upload some files…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error : formatting.php and file.php’ is closed to new replies.