• Resolved Jürgen

    (@trimension)


    Again and Again… I found lots of documents, all describing the same Thing: Just move to the new Server, change home and siteurl-option and change the links in your post… and it should work…

    but it doesm’t!

    What I have done:

    I’m installing a Test-System running with Debian and Apache-Webserver and its own (local) domain. I copied the whole installation from the developing System including images to the new Test-Server

    Then I made a dump from my development database and restored it into the test’s system db… all just fine

    I changed the URL’ within the wp_options table and I can see the site with the Browser but without Images!

    The Images reside in the <wproot>/media folder and in wp-config I set the define(‘UPLOADS’, ‘media’); exacly like the documentation says…

    Well, after changing all the URL’s within the posts it still does not work!

    When I inspect the html-code with the browser I see the correct Links to the Images! When I put these Links directly into the Browser’s Address Line, it shows me the image like expected…..

    All seems to be configured right. But it looks like WordPress does not use these links at all. Seems that it looks somewhere else. How can I fix this problem and what is the problem at all ?

    I’m still try to fix this problem since about three days and I do not understand whats going on here and what very exotic magic wordpress is using here.

    Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    what’s the URL of your new site?

    Thread Starter Jürgen

    (@trimension)

    this is not a public url. its a local url within the local private network. I installed a virtualbox server to test the new developed theme. the public site is still a static site, which should be replaced later with the new wordpress installation.

    My problem is the initital moving from the development server (local vm) to the testing (staging) server which is another local vm and later to the production server which is a real dedicated server.

    to solve the problem is primary to understand, how wordpress handles the media files both, within the media library and the template processing.

    the configuration moved works fine on the development server, therefore I cannot understand, why the copied installation is not working on the destination server. I changed all the url’s (except the guid’s) in the database but it seems that this is not enough.

    I have to compare again the dev working installation with the new test configuration and then I will try to analyze the code to understand how it works to find the problem.

    I’d be very happy about any kind of helpful information about the technical process to handle the media files.

    Thread Starter Jürgen

    (@trimension)

    I found out, that the Links in the final HTML Page are korrekt and the URL’s are reachable, when I put them directly into the Browser’s Address Line.

    The whole site is running under SSL (HTTPS) and all the (internal) links use https-urls, also the media-files. When I change the media-URL to http: directly within the Browser’s Development Tools, the images will be displayed.

    I do not understand this very exotic behaviour, because this works at the other (dev) system very well…

    Anybody any idea ?

    Using WP 4.4 !!
    home and siteurl options set to https://local.test.url

    Thread Starter Jürgen

    (@trimension)

    SOLVED ! Mistake of mine !

    The Problem was, the Webserver-Config’s Security Settings for “hot-link prevention”. There still worked a RewriteRule against the Development-Server’s URL.

    Thanx all…
    This was a really great monologue ??

    but maybe helpful for someone reading this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Again: After Moving WordPress and Uploads Folder, Images not shown by WordPress’ is closed to new replies.