• Resolved Fabian Deitelhoff

    (@fdeitelhoff)


    Hello there,

    I’m using BackWPup on a very fresh WordPress installation. The overall backup file is just 26 MB large.

    The backup process runs for just 9 seconds and includes the following error:

    WARNING: XML-ERROR (26): Entity ‘reg’ not defined

    Does someone has an idea what’s this about? What could go wrong while exporting the XML file?

    I’ve looked into a manually created XML file and compared it with the automatically generated one. I’m using the registered character often on my blog. It is encoded as ®.

    The automatically created XML file contains the title element (as an example) like this:

    <title>LEGO® Robotik</title> -> the character is encoded like this: &#174

    BackWPup is created this one:

    <title>LEGO&reg; Robotik</title>

    Maybe this is already the problem? All other ® are in CDATA sections and should get ignored IMHO.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @fdeitelhoff, thanks for reporting this. I suspect you are exactly right. Thanks for finding that and helping us to pin it down.

    We’ll take a look at this and should include a fix for such cases in the next version. I’ll keep you updated in this thread. ??

    @fdeitelhoff Can you try something to see if this works for you?

    In backwpup/inc/class-jobtype-wpexp.php, line 319, change this line:

    $wxr_post .= "\t\t<title>" . apply_filters( 'the_title_rss', $post->post_title ) ."</title>\n";

    To this:

    $wxr_post .= "\t\t<title>" . apply_filters( 'the_title_rss', html_entity_decode( $post->post_title, ENT_COMPAT, 'UTF-8' ) ) ."</title>\n";

    Let me know how that works for you please.

    Thread Starter Fabian Deitelhoff

    (@fdeitelhoff)

    @cocreation

    Tried it but the error is the same. ??

    Update: The output in the exported XML file looks like this now (no changes at all I think):

    <title>LEGO&reg; Robotik</title>

    Hi @fdeitelhoff, I’m assuming this is the title for a post, not for the site as a whole? Or is it for your actual site?

    Thread Starter Fabian Deitelhoff

    (@fdeitelhoff)

    @cocreation Sorry, late reply. It is the title of the whole site. But it is possible to have this character in a post title, too.

    Hi @fdeitelhoff, sorry for the late response myself. Are you able to use the built-in WP exporter to export your posts? BackWPup just uses get_bloginfo_rss, so any error is in that function, though I’ll look for ways of improving this. But if you’re unable to export via BackWPup, then I would guess that you’d also be unable via WP exporter. If not, please let me know, or confirm either way.

    Thread Starter Fabian Deitelhoff

    (@fdeitelhoff)

    Hi @cocreation,

    I tried the export with success. Can not detect any problems at all.

    The data show this as a result for the title:

    <title>LEGO® Robotik</title>

    So I think everything works fine.

    Thanks for your help in advance!

    Plugin Support happyAnt

    (@duongcuong96)

    Hi @fdeitelhoff,
    Great to hear that working for you ;).
    Just want to know that did you recently update WordPress?

    Thread Starter Fabian Deitelhoff

    (@fdeitelhoff)

    Hi @duongcuong96,

    Yes, the auto update to 4.8.1 hit some hours before I did the test.

    Plugin Support happyAnt

    (@duongcuong96)

    Hi @fdeitelhoff,
    Glad that it’s working for you :),
    If you have any question or issues about BackWPUp, feel free to let us know ??
    Have a nice day :).

    Btw, If you find that BackWPUp is useful, please write a review and rating us, it’s really great for us and can encourage us to develop new free features and free support ??

    Thread Starter Fabian Deitelhoff

    (@fdeitelhoff)

    Hi @duongcuong96,

    There’s a misunderstanding. ??

    It works with the WordPress Export mechanism. The plugin throws the same error I reported in this report.

    So it is not working. ??

    Best,
    Fabian

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Backup Error: XML Error (26) Entity ‘reg’ not defined’ is closed to new replies.