• In 8.0, with no plugins and 2014 theme – I have a page with an image already embedded in it. I also experienced this issue in 7.1 with the 2013 theme (which prompted the upgrade).

    I click the image icon in the image and through the menu I can change the alignment, and update it.

    But as soon as I insert anything into the caption, the alignment gets removed from the image, and the caption entered is never shown.

    Here’s a short video demo:
    https://screencast.com/t/WryWFiq3l

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Nicholas Pickering

    (@2nickpick)

    I installed a fresh 8.0 on a different server (each server is using Windows Server 2008). The problem did not exist.

    So what could be causing this feature to work on one server and not the other (same OS Version, same WP version, same theme, no plugins activated on either).

    Could a previously active plugin or a WP setting be causing problems? Could some kind of transient data cause this issue?

    Thread Starter Nicholas Pickering

    (@2nickpick)

    I’ve installed a fresh 8.0 on the same server as the initial problem site. I slowly installed all of the plugins installed on the old site and the problem did not appear. So, I exported a copy of the database from the problem site to the new site, and the problem reappeared.

    I’m going to regress the new site back to before the import, and try just importing the wp_posts table to see if the problem is in there.

    Thread Starter Nicholas Pickering

    (@2nickpick)

    It seems the problem is in the wp_posts table. With wp_posts table empty, the caption functionality works fine. With a copy of my old wp_posts table, the problem appears. Finally getting somewhere.

    Just to recap the problem:
    When trying to assign a caption to an image in a post or page via the Edit Image tab in the content editor, the caption is not saved and the alignment is removed. This only occurs with my current copy of wp_posts, and does not appear any other time.

    Does anyone have any insight as to what in my wp_posts table could be causing this problem?

    I’m sorry but I can’t replicate your issue using the default 2014 theme. Could you perhaps have some damage in that table? Have you tried repairing it? Anything in your site’s error logs?

    Thread Starter Nicholas Pickering

    (@2nickpick)

    Thanks for the response esmi. My test site is running the 2014 theme, and didn’t show the problem until I imported a copy of my wp_posts from the live site.

    My wp_posts table is InnoDB, and PhpMyAdmin reports that the table’s engine doesn’t support repair.

    I could have some damage in the table, but I’m not sure what would’ve caused it or how to find it. The only symptom I’m seeing is the inability to add a caption to an image.

    I ran a CHECK TABLE on wp_posts and received an “OK” response.

    There aren’t any relevant javascript errors (via Firefox/Chrome debugging tools) when loading the page or trying to add the caption. There don’t seem to be any ajax calls being made during the process either (according to HTTPFox Firefox tool).

    I’ll look into finding some server logs.

    Thread Starter Nicholas Pickering

    (@2nickpick)

    Exporting and Importing the Posts and Pages using WordPress’s Import/Export tool results in the same. With everything cleaned out, captions work fine. With posts imported from the other blog, captions start acting as above. So I don’t think the table is corrupted. There’s something weird in the posts that survives through the WordPress Export.

    Sounds like the content of your posts has been damaged in some way. ??

    Do you have a database backup that you could use?

    Thread Starter Nicholas Pickering

    (@2nickpick)

    Unfortunately, we don’t have backups. It’s a new site and the content was all added at about the same time anyways.

    Thanks for your help, not sure there’s an effective way to continue debugging this.

    You could try importing the Theme_Unit_Test data into a fresh install and see if that works OK. If it does, then it confirms that the content of your wp_posts table has been irreparably damaged.

    Thread Starter Nicholas Pickering

    (@2nickpick)

    Thanks, I’ll try that tomorrow.

    Interestingly enough, if I add the caption manually (by generating the snippet from a WP install that’s working), then I can manage that caption via the Edit Image tab as expected, and for any further images in the same post/page.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding Captions to Images embedded in Page removes alignment’ is closed to new replies.