Support » Fixing WordPress » time zone error

  • After moving from old hosting (with help of Duplikator plugin), i’ve got this error.
    I know it is problem with time zones inside WP but i don’t know how to fix it (i can’t log in to wp-admin).

    Any ideas?

    Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Europe/home/danzu/domains/dentalpassion.waw.pl/public_html/Warsaw) in /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php:137 Stack trace: #0 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php(137): DateTimeZone->__construct() #1 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php(81): wp_timezone() #2 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php(2373): current_time() #3 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php(2232): _wp_upload_dir() #4 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-content/plugins/photo-gallery/framework/BWGOptions.php(178): wp_upload_dir() #5 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-content/plugins/photo-gallery/photo-gallery.php(49): WD_BWG_Options->__construct() #6 /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-settings.php(360): i in /home/danzu/domains/dentalpassion.waw.pl/public_html/wp-includes/functions.php on line 137

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    i can’t log in to wp-admin

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Also review https://wordpress.org/support/article/login-trouble/

    Thanks for answer but i didn’t help.
    I’ll try to roll back to wordpress 5.2. If it won’t work i’ll have to recreate site from scratch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘time zone error’ is closed to new replies.