• Resolved randomanon12

    (@randomanon12)


    Hi there. Sorry if i don’t follow the correct posting etiquette, first post here.

    Every month or so i generate a backup of my site. When i make a big update, i try to do it first on a local version. When i try to open wp-admin with my most recent backup, i’m presented with the following message:

    ‘ . __( ‘Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab above the screen title.’ ) . ‘
    ‘; $screen = get_current_screen(); $screen->add_help_tab( array( ‘id’ => ‘overview’, ‘title’ => __( ‘Overview’ ), ‘content’ => $help, ) ); // Help tabs. $help = ‘
    ‘ . __( ‘The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.’ ) . ‘

    ‘; $help .= ‘
    ‘ . __( ‘Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.’ ) . ‘

    ‘; $screen->add_help_tab( array( ‘id’ => ‘help-navigation’, ‘title’ => __( ‘Navigation’ ), ‘content’ => $help, ) ); $help = ‘
    ‘ . __( ‘You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.’ ) . ‘

    ‘; $help .= ‘
    ‘ . __( ‘Screen Options — Use the Screen Options tab to choose which Dashboard boxes to show.’ ) . ‘

    ‘; $help .= ‘
    ‘ . __( ‘Drag and Drop — To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.’ ) . ‘

    ‘; $help .= ‘
    ‘ . __( ‘Box Controls — Click the title bar of the box to expand or collapse it. Some boxes added by plugins may have configurable content, and will show a “Configure” link in the title bar if you hover over it.’ ) . ‘

    ‘; $screen->add_help_tab( array( ‘id’ => ‘help-layout’, ‘title’ => __( ‘Layout’ ), ‘content’ => $help, ) ); $help = ‘
    ‘ . __( ‘The boxes on your Dashboard screen are:’ ) . ‘

    ‘; if ( current_user_can( ‘edit_posts’ ) ) { $help .= ‘
    ‘ . __( ‘At A Glance — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.’ ) . ‘

    ‘; } $help .= ‘
    ‘ . __( ‘Activity — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.’ ) . ‘

    ‘; if ( is_blog_admin() && current_user_can( ‘edit_posts’ ) ) { $help .= ‘
    ‘ . __( “Quick Draft — Allows you to create a new post and save it as a draft. Also displays links to the 3 most recent draft posts you’ve started.” ) . ‘

    ‘; } $help .= ‘
    ‘ . sprintf( /* translators: %s: WordPress Planet URL. */ __( ‘WordPress Events and News — Upcoming events near you as well as the latest news from the official WordPress project and the WordPress Planet.’ ), __( ‘https://planet.wordpress.org/’ ) ) . ‘

    ‘; if ( current_user_can( ‘edit_theme_options’ ) ) { $help .= ‘
    ‘ . __( ‘Welcome — Shows links for some of the most common tasks when setting up a new site.’ ) . ‘

    ‘; } $screen->add_help_tab( array( ‘id’ => ‘help-content’, ‘title’ => __( ‘Content’ ), ‘content’ => $help, ) ); unset( $help ); $screen->set_help_sidebar( ‘
    ‘ . __( ‘For more information:’ ) . ‘

    ‘ . ‘
    ‘ . __( ‘Documentation on Dashboard’ ) . ‘

    ‘ . ‘
    ‘ . __( ‘Support’ ) . ‘

    ‘ ); require_once ABSPATH . ‘wp-admin/admin-header.php’; ?>
    user_email !== get_option( ‘admin_email’ ) ) ); if ( $hide ) { $classes .= ‘ hidden’; } ?>

    I can work with older backups without issue, but in the last month i have made many different changes in the site. Do you have any idea what can be working incorrectly? Is the php not working? Why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Everything you displayed is PHP. The website isn’t running the PHP it just being displayed in your browser. My guess is that your web server isn’t running for some reason or it having problems with its configuration and not running PHP files. The __( are functions from the i18n library.

    Thread Starter randomanon12

    (@randomanon12)

    I don’t understand why this is only happening with newer backups. Does anybody know where the problem could be?

    Thread Starter randomanon12

    (@randomanon12)

    Managed to find the problem. In htaccess the following piece of code causes the error

    <FilesMatch “.(php4|php5|php3|php2|php|phtml)$”>
    SetHandler application/x-lsphp74
    </FilesMatch>

    After deleting it, i have no problem with the local page. Don’t know if the problem is with php 7.4 itself or what is specifically causing the problem, but i can finally work locally, so I’m happy for now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress localhost not working’ is closed to new replies.