• Uploading an image through media in the menu works fine.
    But when I try to add an image to a post or page, the following happens:

    – Nothing appears in the post or image
    – I am logged out
    – URL’s don’t work anymore. The url of the site itself shows a site without CSS, the admin-pages are not found, and I can’t even log in.
    I have to manually destroy all cookies for the site, and then everything works again.

    I checked the console of Firefox, and I see the following:
    when adding an image, a call is made to
    POST https://loesrulandenerikdelange.nl/wp-admin/admin-ajax.php 200 OK

    When I choose add to page, a call to that url is made again, but then it says:
    POST https://loesrulandenerikdelange.nl/wp-admin/admin-ajax.php 404 NotFound

    After that, the problems I described above appear.

    Deleting the cookies makes that I can find everything again, but the only way I can insert an image in a post or page is manually, through HTML.

    The link to the site is obviously https://loesrulandenerikdelange.nl; I’m working on it: it is kind of bare..

Viewing 3 replies - 1 through 3 (of 3 total)
  • It sounds like you may have identified the problem is with cookies, which WordPress uses to determine if you are logged in, but it’s really odd that it is not consistent. It’s weird too that you get an intermittent 404 for admin-ajax.php. I’d verify that a non-corrupted version of the file is there, then probably take a look at the cookie settings in Firefox to make sure they aren’t causing an issue.

    If you have access to another PC and/or browser, I would also try to see if it’s related to just Firefox or that machine’s settings.

    It would also be worth looking at the cookie settings for your server’s PHP configuration.

    Thread Starter sylviastuurman

    (@sylviastuurman)

    [ It’s weird too that you get an intermittent 404 for admin-ajax.php.]

    It’s not just intermittant. It’s consistently exactly after I click on “add to page”. I get exactly the same problem when I use the image facility of TinyMCE.

    [I’d verify that a non-corrupted version of the file is there,]

    Check

    [then probably take a look at the cookie settings in Firefox to make sure they aren’t causing an issue.]

    I have the same problem with Opera, IE and Chrome. That can’t be the cause.

    [It would also be worth looking at the cookie settings for your server’s PHP configuration.]

    That is just the configuration of WordPress, nothing else.

    The last time I heard of something like this, the person’s web host had been fooling with the PHP version on their server. I don’t know what else to tell you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding an image to a post or page causes problems’ is closed to new replies.