• Resolved mtharward

    (@mtharward)


    When replace an image, the image stays in an Unattached state. When I insert a new image and delete the old one, the new one goes into an Attached state. Am I doing something wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mtharward

    (@mtharward)

    btw, I am using WP Blog and Widget’s Blog object and not the traditional Post object.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your question, although I am not sure that MLA is playing any part in the issue you are reporting.

    You wrote “When replace an image, the image stays in an Unattached state.” I can think of several meanings for “replace an image” and I will need more details from you to determine the specific action. Can you tell me the steps you follow to “replace an image”? Are you referring to a Gutenberg “Image” or “Gallery” block, or the “Add Media…” feature of the Classic Editor, or some other action?

    You mentioned “WP Blog and Widget“. Are you using this plugin:

    WP Blog and Widget
    By WP OnlineSupport

    If so, I am not familiar with it and have not used or tested it. Your question/issue may be better addressed in their support forum.

    I will leave this topic unresolved for now. If you give me more details on your issue I can investigate further. Thanks for your interest in MLA.

    Thread Starter mtharward

    (@mtharward)

    Thanks for your reply.

    I am using classic editor to create and maintain a blog
    I use the blog object from MP Blog and Widget plugin; I also use the Post object from classic WP
    I insert media into the blog/post entry using Add Media button
    When I want to switch out an image with a new one, I will edit the blog/post
    Then I will select the image to be replaced
    Then click the pencil to edit
    I click the Replace button to choose a different image
    I select the replacement image
    I click the Replace button
    The new image replaces the old one
    I save/update the blog/post
    I go to MLA and find the replacement image
    It is still in an Unattached status

    Hope this helps. Let me know if you need more info.

    • This reply was modified 5 years, 8 months ago by mtharward.
    • This reply was modified 5 years, 8 months ago by mtharward.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for the details on the steps you followed to create the problem.

    I have just run a quick test on my system. Here are my steps:

    1. I disabled all of my installed plugins except the “Classic Editor” plugin.
    2. I started a new post with Post/Add New
    3. I gave the post a Title, then clicked in the post content area and clicked the “Add Media…” button.
    4. I selected an unattached image and clicked “Insert into post”.
    5. I published the post, then went to the Media/Library admin screen and verified that the image had been attached to the new post.
    6. I edited the post, clicked in the image and clicked the pencil icon to edit the image.
    7. I clicked the “Replace” button, selected a different unattached image and clicked “Replace”.
    8. I updated the post, then went to the Media/Library admin screen and verified that the replacement image was still unattached.

    As a second test, I disabled the Classic Editor plugin and repeated the above steps using a “Classic” block in the Gutenberg editor. I got the same results.

    As you can see, the problem you reported is caused by WordPress core behavior and MLA plays no role in it. I do not believe the WP Blog and Widget plugin has any effect on the problem either. You can try reporting this problem to the WordPress team, but I doubt they will act on it.

    I am marking this topic resolved simply because MLA does not seem to be involved. I regret the news is not better, but I hope you can live with manually changing the “Uploaded to” status of the images when you perform replacements in the body of a post. Thanks for your interest in MLA.

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

The topic ‘Replace image leaves in Unattached state’ is closed to new replies.