• If copy a page to another site while editing it everything looks fine. But if I use the batch copy the result is messed up with a lot of URL:s inserted into the text.

    This is how my page looks like in text mode:

    <h1>My Header</h1>
    <img src="http://www.example.com/wordpress/wp-content/uploads/2016/06/my-image.jpg" />

    But this is what I get when batch copying:

    <h1>My Header<http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06h1>
    <img src="http:http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06www.example.comhttp://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06wordpresshttp://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06wp-contenthttp://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06uploadshttp://www.example.com/myothersite/wp-content/uploads/sites/3/2016/062016http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/0606http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06my-image.jpg" /></h1>

    Is this a known issue?

    It could be a conflict with other plugins, I have not yet tried to disable all other plugins.

    Edit: I de-activated all other plugins, still same error.

    https://wordpress.org/plugins/multisite-post-duplicator/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author MagicStick

    (@magicstick)

    Wow. That is a very strange one. I’ll need to do some debugging on this. Is it just this post or is it other posts that have the same issue? Looks like a bad regular expression match but this is exactly the same function I use on batch processing with normal.

    Thread Starter AdrianB

    (@adrianb)

    I’ve seen it on many pages, so not just this one.

    My pages are copy-pasted from another CMS and I was curious if there where strange characters hidden or something like that, but I could not find any.

    What the code above does not show is that some of the < and > are shown as html entities, like this:

    <h1>My Header<http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06h1&gt;

    Thread Starter AdrianB

    (@adrianb)

    Sorry, they keep getting converted, here I change the semicolon to ordinary colon just to show it:

    <h1>My Header&lt:http://www.example.com/myothersite/wp-content/uploads/sites/3/2016/06h1&gt:

    Thread Starter AdrianB

    (@adrianb)

    (My thinking was that maybe some of my < and > are saved as entities in the database instead of litteral characters, or something like that.)

    Plugin Author MagicStick

    (@magicstick)

    Ah. I think know what’s happening here. You are pasting html into the visual editor. You should be pasting HTML code into the text editor tab.

    Thread Starter AdrianB

    (@adrianb)

    If that was the issue, it would look messed up on both sites, right? Not just the the target.

    Plugin Author MagicStick

    (@magicstick)

    I was just referring to the semicolon issue in your previous post. 🙂

    I’ll try and replicate your problem and get back to you.

    Thread Starter AdrianB

    (@adrianb)

    Ah, the semicolon thing was only about the display here, I couldn’t show the html entities since they are converted, even with backticks for code.

    Anyway, I did a new test. I created a complete new page on my main site, pasted the following code in text editor tab and saved it:

    <h1>My Header</h1>
    <img src="http://www.example.com/wordpress/wp-content/uploads/2016/06/my-image.jpg" />

    …and then used the batch functions from the pages list to copy the page to another site and it still got messed up.

    The thing is, If I erase that image code and insert an image from the library it works, no messed up code. So there is something very weird here…

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

The topic ‘HTML messed up with batch copy’ is closed to new replies.