• I there,
    I was trying a theme on my personal website, which I often use to test out stuff. Anyway, I installed a new theme and the site gave me an error page.
    Via FTP I removed the theme so that wP could go back to the previous, which it did. The site is in effect restored and working, however I cannot access the dashboard. When I try to go to wp-admin it gives me an error page.
    What shall I do?
    Any suggestion?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Kindly delete the theme folder, via logging into your site via FTP / Cpanel.

    Thread Starter Mario

    (@marioim)

    …thanks
    I did rename the theme folder and the plugin folder as well, but nothing happened. I get this message: “Parse error: syntax error, unexpected ‘<‘ in /home/amagicas/public_html/wp-config.php on line 97”
    However my config file has 95 lines. So I really don’t know what to think….

    Kindly delete the blank lines/ spabces at teh end of the file

    Thread Starter Mario

    (@marioim)

    Unfortunately there aren’t any blank line or spaces.

    Can you kindly post last 3 likes of the file.

    Thread Starter Mario

    (@marioim)

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);
    <?php
    require_once(ABSPATH . ‘wp-admin/wp-css.php’); ?>

    Thread Starter Mario

    (@marioim)

    If I try to go to wp-settings.php I get this:

    Warning: require(ABSPATHwp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/amagicas/public_html/wp-settings.php on line 21

    Warning: require(ABSPATHwp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/amagicas/public_html/wp-settings.php on line 21

    Fatal error: require() [function.require]: Failed opening required ‘ABSPATHwp-includes/load.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/amagicas/public_html/wp-settings.php on line 21

    If I try to go to wp-settings.php I get this

    wp-settings.php is not intended to be loaded directly.

    Remove:

    <?php
    require_once(ABSPATH . 'wp-admin/wp-css.php'); ?>

    from the bottom of the wp-config.php file. You have introduced an error.

    Thread Starter Mario

    (@marioim)

    It worked!
    Thank you guys!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can't access wp-admin’ is closed to new replies.