SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress website linking to localhost

    I have a website uploaded. www.arenabadminton.com.my

    The problem is all the links point to localhost. I have no idea on what to do because all this while i developed it locally, now i'm having troubles going to www.arenabadminton.com.my/wp-admin.

    Thanking you in advance,
    Jaysone
    Jaysone

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The links seem to be working correctly from here, I don't see localhost links anywhere. I did notice however that it's trying to load something from localhost, which is the image on the frontpage.

    I would go into your WP database (using phpMyadmin), and do a search for localhost, you should find entries relating to this, changing it should help solve the situation.
    DILIGENThost.com, High-availability Canadian hosting 24/7 support
    cPanel/WHM 11 + Fantastico, PHP4&5, Private nameservers...
    Unlimited domains, Self Serve DNS, No Overselling!
    | Forum & packet loss monitoring @ Webmasters-Inside.com

  3. #3
    SitePoint Enthusiast Logicb0x's Avatar
    Join Date
    Apr 2008
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe u use SQL dump from your localhost without change localhost links...
    My Signature Talk About Info Lombok | Gadis Bugil | Bisnis Online

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you manually edit any of your connection files or templates? This happened to me one before when making custom edits to templates
    Download Software - Your place to Download Software
    PPC Management - Premium SEM, PPC Management Service
    Web Design - Award Winning Website Design

  5. #5
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've managed to sort one part of the problem, now there's a new problem. But please allow me to tell you what i did.

    I deleted everything on my webhost's root folder. I made backups to the database before doing that. I opened my webhost's tools and i went on to the database section to create a new database with the same name as the database i created locally. I managed to do that. Then i wanted to manage that database with phpMyAdmin but i wasn't allowed to do so. Error: There are no users created yet to manage the database. So i created a new user with the same details as the user of the database on my local installation. When i did that, i got another error that didn't allow me to create the user.

    error: User kenneth already exists.

    So what i did was i opened wp_config.php (locally) and edited the

    define('DB_USER', 'kenneth');

    to

    define('DB_USER', 'kennethjaysone');

    Then i went back to my Webhost's tools and attempted to create a new user (kennethjaysone) and it allowed me to do that.

    Since the database has been created, the user created, i was allowed to go into phpMyAdmin to manage the database. Then i imported the tables (database that i backed up on my desktop). So my database is up.

    I transfered my wordpress files that i developed locally to the webserver using filezilla.

    Everything was in place, then when i hit the URL (http://www.arenabadminton.com.my), the page appeared giving me hope that everything turned out alright...then to my horror, all the links we're pointing to the localhost.

    I solved that by going to the database (going to wp_options) table. I browsed the table in phpMyAdmin and look for the option_name called siteurl. The value for siteurl was http://localhost/arenabadminton. So i figured out that i had to change that to http://www.arenabadminton.com.my.

    Then i had another problem, the images that we're intended to be on the posts we're missing? So since the site was live, i tried to upload the pics into the posts, i get a new error:

    Unable to create directory /home/httpd/vhosts/arenabadminton.com.my/httpdocs/wp-content/uploads/2009/01. Is its parent directory writable by the server?


    Now i found the article to solve that problem and i'm just about to read it.

    Just a note: I went in to my webserver and found that there is no uploads folder inside the wp-content folder.

    I may need some help on changing file permissions so i'll read up and if i'm unsure about anything i will come back here. Thank you all for you support.

    One more thing. If you've seen the site http://www.arenabadminton.com.my, you'll notice the awkward contact us link in the middle. I simply don't know how to push it to the end.

    The template tag that was used to generate the navigation is

    PHP Code:
    <?php wp_page_menu('show_home=1&menu_class=mainnav'); ?>
    The version of wordpress i'm using is 2.7

    Thank you all again. I just wanted to document this long journey of mine so that people who are facing the same problem can find this post of help.

    Thanks a million! sorry if this is a long post.
    Jaysone

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think ur site is working now???

  7. #7
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything's working fine except that i'm trying to move the contact us link to the right side way to the end and i'm having difficulty doing so..

    Thanks everyone.
    Jaysone


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •