• Hi,

    I’m helping a friend, whose website cannot be accessed at all. His website has been up and running for one and a half years with no problem when all of a sudden, out of nowhere, you get a server error 500 when you try to access his website.

    The current version he’s running is 4.0.10. The current Swedish version to download is 4.4.2 as far as I can see. The theme is based on TwentyEleven but changed a lot as far as I can see.

    The website is:

    https://ronnmarks.se

    Does anybody know what could be causing this error? What can we do to access the website again? Does the theme conflict with the new upgrades of WordPress? Or is it a database question? Or a .htaccess-file error or any other file error?

    I guess I can try a fresh install of wordpress and then import his database and theme. But since I’m not sure it’s not the theme that is wrong in some way I’m afraid I will encounter the same error again.

    So if anybody knows a fix of some sort or even how it may have happened I would be much appreciative.

    Many thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’d use ftp to temporarily rename the plugins folder and the specific theme folder. That should force WordPress to load without plugins and use the default theme. Also check the .htaccess file didn’t get corrupted and looks like the default:
    https://codex.www.ads-software.com/htaccess

    Thread Starter Cebe_tyr

    (@cebe_tyr)

    Hi Dan!

    Many thanks for your reply! I tried that but it didn’t work unfortunately.

    Now I have have created a subdomain, installed the new version av WordPress (4.4.2), created a new sql database, imported the copy of the previous one, added a copy of the theme and plugins from the domain to the subdomain.

    The name of the domain’s db is: ronnmarks
    The name of the subdomain’s db is: ronnmarksny

    The installation of WordPress went fine. But the database doesn’t seem to work. The posts, media, css and navigation etc cannot be found in the new installation when the table_prefix in the wp-config.php is named ronnmarksny_.

    When I on the other hand name the table_prefix to ronnmarks_ I can see that the subdomain uses the right theme’s css and navigation (though the other content is still missing). What also happens is that I am prompted to log in again to the admin panel and gets a server error 500 and thus can no longer log in.

    $table_prefix = ‘ronnmarksny_’;

    So it’s so confusing. And I don’t know how to proceed. Can you find a solution or a way out of this “mess”?

    Many thanks in advance!
    Cecilia

    Hey Cecilia – since you’re using two different databases you don’t need to customize table_prefix. I’d recommend keeping it simple and sticking with the default wp_ prefix just to get things working. If you try installing again you might want to walk through step by step using the info here:
    https://codex.www.ads-software.com/Installing_WordPress

    Some web hosts provide a one-click WordPress installation which might be worth switching to also.

    Thread Starter Cebe_tyr

    (@cebe_tyr)

    Hey and thanks for your response!

    Yes, you’re absolutely right. But in this case, the db of the current theme and website has the table_prefix ronnmarks_, in where all the content seems to be (posts, meta, etc).

    Since I’m using the subdomain to create a new version of the website, I did what you suggested and changed the table_prefix to wp_ in the wp-config-file. Then the website does not connect at all to the db. When I use the table-prefix ronnmarksny (where I import the copy of the present on at the main domain) the website connects at least to the stylesheet and navigation (but no unfortunately still no content and no access to the admin-panel – server error 500).

    So I’m at a loss here…

    Best regards,
    Cecilia

    Do you have access to the php error log? Your host might provide info on how to access that. If you can post the error message from the log file that should help figure out what’s causing the issue.

    Since the error occurs when using the default Twenty Sixteen theme, no plugins, and default .htaccess file, you might want to test if you can just get a clean WordPress install working on that server starting from scratch (no prefix renaming or connecting to legacy databases).

    Thread Starter Cebe_tyr

    (@cebe_tyr)

    Thanks, I’ll see if I can get hold of the php error log.

    And I’ll try a fresh install of WP without adding any theme, db, etc. I’ll come back later.

    Здравствуйте, Я на существующем сайте поменяла поддамен, сайт был пустой, по этому в принципе риска ни какого, но у меня теперь нет доступа к сайту, WP ссылается на старый адрес сайта, что делать. https://ti.svetoik.ru

    Я имела ввиду WP ссылается на старый адрес сайта

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot access the website or the website admin: Server error 500’ is closed to new replies.