Forums

Blank site after editing wp-config file (12 posts)

  1. jopy
    Member
    Posted 6 months ago #

    Hi,

    I'm new to WordPress. I have to edit something about language on the page I've got. So, I found in wp-config file there is empty WP_LANG property, and I set it to my language, hr. I ran page and it was blank. So, I deleted value in property WP_LANG and left it empty, as it was before. And page is still blank. wp-admin page is also blank.
    Does anyone have idea what happened and how can I return my page to show data? I didn't change any other file.

  2. SwansonPhotos
    Member
    Posted 6 months ago #

    The language line is needed and should be in the same place as it was originally...If you change the language of your site to another, make sure your computer/device and/or browser supports that language, when viewing it.

    It should be:

    `define('WPLANG', '');'

    by default (English), en, or insert the desired language...syntax and case matter.

    NOTE: Many themes either do not support languages, or only support some. Review with your theme developer.

  3. jopy
    Member
    Posted 6 months ago #

    Yes, I' ve found that. Before editing it was:
    define('WPLANG','');
    And I changed it to:
    define('WPLANG','hr');
    But then my page was blank. So, I returned it back to first state.

    I edited .htaccess to show php errors by adding this line:
    php_admin_flag display_errors on
    And it shows internal server error, so I contacted my host provider.

    Thank you anyway!

  4. jopy
    Member
    Posted 6 months ago #

    New problems..
    My host provider restarted server and he said everything was fine. So I removed line from .htaccess I added before.
    And now, my site is not blank, but it loads lines of code! index.php or wp-admin or any category loads just code.
    Does anyone have idea what should I do?

  5. SwansonPhotos
    Member
    Posted 6 months ago #

    Check this and please review the whole article. Maybe a more advanced member of the hosting team at your host is working 9-5?

  6. jopy
    Member
    Posted 6 months ago #

    You think it's database?
    I tried to upload file test.php whith this code: <?php phpinfo() ?>. Because in some other thread it says that maybe php server is not running. So, test.php returns again just code, not informations about php.

  7. SwansonPhotos
    Member
    Posted 6 months ago #

    Please provide a link to your site.

  8. jopy
    Member
    Posted 6 months ago #

    Oh, yes. This is link http://www.hciti.hr.

  9. SwansonPhotos
    Member
    Posted 6 months ago #

    I am declining to review it.

  10. jopy
    Member
    Posted 6 months ago #

    Ok. And can you tell me why? I'm just curious.

  11. SwansonPhotos
    Member
    Posted 6 months ago #

    My choice on a non listed webhost.

  12. jopy
    Member
    Posted 6 months ago #

    Ok. Thank you anyway for helping.

Reply

You must log in to post.

About this Topic