• dr cortex

    (@dr-cortex)


    Hi guys,
    I am having a problem with the website I am working on which is sitting on a Windows machine running XAMMP. On the local server viewing the site is fine, although when I view site from a remote machine the images do not display – Links between pages are ok. Looking at the source code I see the problem:

    <link rel="shortcut icon" href="http://127.0.0.1/wordpress/wp-content/uploads/2015/09/logo1.gif" />

    All image links are looking for the localhost. How can I fix this site wide?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Take a look at the Search and Replace plugin.

    This has worked for me in the past when my URL’s were still referring to localhost.

    ~Tanveer

    Thread Starter dr cortex

    (@dr-cortex)

    Hi Tanveer,
    Thanks for the response. The search and replace plugin seems to work, I managed to change 11 urls from local host to the servers ip address, although when I upload the modified database to wordpress I get these errors:

    Warning: mysqli::multi_query(): MySQL server has gone away in C:\xampp\apps\wordpress\htdocs\wp-content\plugins\search-and-replace\inc\Database\Importer.php on line 25

    Warning: mysqli::multi_query(): Error reading result set’s header in C:\xampp\apps\wordpress\htdocs\wp-content\plugins\search-and-replace\inc\Database\Importer.php on line 25

    And I the links are still broken… Any idea how to overcome this?

    Cheers.

    Hi,

    Sorry to hear you are still having issues. I think in my workflow, I had downloaded and installed the plugin directly on my server and not in localhost. Also, another colleague of mine has had success using the following plugin too:

    https://wordpress.org/plugins/velvet-blues-update-urls/

    Before addressing the SQL error can you try the approach where you put back your old database on the server, let the images not show and rather show localhost URL and then install the Search and Replace plugin on the server and then replace the links in them?

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

The topic ‘Image link problem’ is closed to new replies.