WordPress.org

Ready to get started?Download WordPress

Forums

Code Snippets
[resolved] Import Fatal Error (4 posts)

  1. imageDESIGN
    Member
    Posted 1 year ago #

    When importing an XML file from another sites Code Snippets export, I get the following Error:
    PHP Fatal error: Call to a member function children() on a non-object in /home/usernm/public_html/wp-content/plugins/code-snippets/code-snippets.php on line 1783

    It appears that simplexml_load_file() is not able to load from the tmp_name. I ran a few tests and output file_load_contents( $file) within the import() function in code-snippets.php and it shows the XML file contents, but a var_dump on $xml variable within import() comes up with a bool(false)

    Any ideas what the problem might be? Running on fresh install, no other plugins activated and default 2012 theme.

    http://wordpress.org/extend/plugins/code-snippets/

  2. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing this out; it appears to be a bug in the plugin. I'll get onto fixing it.

  3. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Code Snippets 1.8 has been released; do you still get this error?

  4. imageDESIGN
    Member
    Posted 1 year ago #

    Yes, this new update does fix the error - thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags