• Hi,

    I have a strange problem with WP install/transfer.
    After I installed WP on localhost, everything was OK but when I moved it to a web server I have some errors and when I click on a link it turn on the localhost installation!
    Here are also some error message:

    Warning: Cannot modify header information – headers already sent by (output started at /path/wp-login.php:1) in /path/wp-login.php on line 349

    Warning: Cannot modify header information – headers already sent by (output started at path/wp-login.php:1) in path/wp-login.php on line 361

    I can’t login nor logout!
    I removed any space before and after PHP tags (following the instructions given here:
    http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F
    But this didn’t solved my problem!
    I may suspect the coding format as I was forced to register some php files (e.g. functions.php) in UT8 coding. I need that to add language characters which is not recognize in ANSI encoding.
    Could this be really the cause?
    Any suggestion to solve this issue?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there.
    You probably still have references to your localhost install either in the wp-config.php file or in your database.
    Try opening wp-config.php and make sure your Databae name, username, and password match the ones on your remote installation.
    Also, try to sign in to your hosting’s control panel, more particularly, to your phpMyAdmin and look for references to your old localhost URI.
    If you have access to your WP admin panel, try installing the Search and Replace plugin instead of logging in to phpMyAdmin. It is easier to use and has very cool features for search and replace in your DB.
    Cheers!

    Thread Starter wpreser

    (@wpreser)

    Thanks Marventus.
    The web host is also set up to localhost in the config file, so it is hard to make difference based on this feature, but the database name and username should differentiate the path.
    Anyway, I removed the installation to re-start properly from scratch.
    Thanks for the plugin link. It seems a cool one. Do you know if we can use it to re-name WP folders (wp-content, wp-admin, includes) for more security issue (security by obscurity, as pointed by WP developers)?

    Cheers!

    No pb.
    The plugin I shared is for search and replace in the DB only. If I were you, I look for a tutorial on how to rename core folders and then register those changes in your functions.php or something, so as not to break Template tags, dynamic paths, etc.

    Thread Starter wpreser

    (@wpreser)

    Thank you, Marventus.

    Hi!
    Did you figure this out? If so, could you please mark the thread as resolved?
    Thanks!

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

The topic ‘Web-installed WP goes back to localhost install! "UT8 encoding"?’ is closed to new replies.