JWORDPRESS 4.3.1

A quick post for an important update

WHAT’S NEW

  • Updated to the upstream WordPress 4.3.1
  • Permalinks with date now supported
  • More control on Quercus thanks to Kaz Nishimura repository

As always you can download the jwordpress.war or create your project based on it

6 Responses to “JWORDPRESS 4.3.1

  • Thanks for putting this together. Unfortunately, the wordpress-importer plugin (latest version 0.6.1) still does not work due to the lack of simplexml_import_dom(); this means all posts have to be manually copy-and-pasted.
    The add-from-server plugin, although last updated back in May 2013, does work, so at least the media referenced from posts can be imported in semi-bulk mode (it is best to copy one year, or even one month, worth of media at a time into the wp-content folder for importation).

  • Can you please update jWordPress to include the latest version 4.4 of WordPress?

    • Thanks for the notify. I’ll update it soon, I’ve also found a workaround for the wordpress-importer plugin: simply avoiding to check for the simplexml_* functions cause to fallback to other (older) xml functions that are implemented in quercus. That’s why the old version works.

      Sadly implements these functions is not an easy task… even after a look at the PHP ‘spaghetti’ source code.

  • > …simply avoiding to check for the simplexml_* functions cause to fallback to other (older) xml functions that are implemented in quercus. That’s why the old version works.

    Do you mean “an old version of the wordpress-importer” plugin? If so, what version of the plugin works with jWordPress 4.3.1?

    • A little misunderstanding, when you talked about an old plugin that worked. Anyway that’s the point:
      – quercus return true for ” extension_loaded( ‘simplexml’ ) ” even if simplexml_* doesn’t works
      – the latest importer plugin chek for ‘simplexml’ extension, otherwise it use the ‘XML’ extension and it’s functions for parsing the xml
      – the importer seems to work with the others XML functions (not 100% sure, I’ve used an xml with encoding problems)

      THE VERY UGLY WORKAROUND:
      – download/install the wordpress-importer-0.6.1 plugin
      – edit the parser.php file
      – remove the if branch “if ( extension_loaded( ‘simplexml’ ) ) {“

      • OK, so I assume that there is no other way to make the importer plugin work with quercus other than by editing its parsers.php file located in wp-content/plugins/wordpress-importer.

        From what you wrote, after modifications the code fragment should read:

        class WXR_Parser {
        function parse( $file ) {
        // Attempt to use proper XML parsers first
        if ( extension_loaded( ‘xml’ ) ) {
        $parser = new WXR_Parser_XML;
        $result = $parser->parse( $file );

        // If XMLParser succeeds or this is an invalid WXR file then return the results
        if ( ! is_wp_error( $result ) || ‘XML_parse_error’ != $result->get_error_code() )
        return $result;
        }

        Is this correct?

Leave a Reply

Your email address will not be published. Required fields are marked *