Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » wordpress importer error.

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 4240 Views
  • RobertM
    Avatar
    Community Member
    26 Posts

    wordpress importer error. Link to this post

    Processing...

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: /tmp/phpzUA15t:1002: parser error : Entity 'raquo' not defined
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: <wp:comment_author>NorthWales.biz &raquo; Blog Archive &raquo; Recent Events</wp
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: ^
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: /tmp/phpzUA15t:1002: parser error : Entity 'raquo' not defined
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: <wp:comment_author>NorthWales.biz &raquo; Blog Archive &raquo; Recent Events</wp
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    FATAL ERROR: simplexml_load_file() [function.simplexml-load-file]: ^
    At line 30 in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php

    simplexml_load_file(/tmp/phpzUA15t)
    line 30 of WpParser.php

    WpParser->__construct(/tmp/phpzUA15t)
    line 56 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * filename =

    /tmp/phpzUA15t

    Cannot open file.

    Can anyone explain?

  • Phalkunz
    Avatar
    69 Posts

    Re: wordpress importer error. Link to this post

    simple_xml module has problem parsing some of the HTML entities and in case your case, it is &raquo;

    if you can, try open it in text editor and remove &raquo; from the source file by using find-and-replace command.

  • RobertM
    Avatar
    Community Member
    26 Posts

    Re: wordpress importer error. Link to this post

    Well that sorted that particular error...

    What about this one:

    Processing...

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    Notice: Undefined index: wfw in /opt/lampp/htdocs/Carnyx/wordpressimport/code/WpParser.php on line 58

    FATAL ERROR: Object::__call() Method 'parentStack' not found in class 'BlogEntry'
    At line 199 in /opt/lampp/htdocs/Carnyx/sapphire/core/Object.php

    user_error(Object::__call() Method 'parentStack' not found in class 'BlogEntry',256)
    line 199 of Object.php

    Object->__call(parentStack,Array)

    BlogEntry->parentStack()
    line 893 of SiteTree.php

    SiteTree->getPriority()
    line 113 of ViewableData.php

    ViewableData->__get(Priority)
    line 803 of SiteTree.php

    SiteTree->onBeforeWrite()
    line 512 of DataObject.php

    DataObject->write()
    line 69 of WpImporter.php

    WpImporter_Controller->doUpload(Array,Form)
    line 238 of Controller.php

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(/WpImporter_Controller/)
    line 158 of main.php
    Context
    Debug (Debug::showError() in line 180 of Debug.php)

    * this =
    Database record: BlogEntry
    o ID :

    0

    o ProvideComments :

    1

    o ShowInMenus :

    1

    o ShowInSearch :

    1

    o Status :

    New page

    o CanCreateChildren :
    + 0 =

    10

    o Viewers :

    Anyone

    o Editors :

    LoggedInUsers

    o IdentityURL :

    o Date :

    2007-06-22 12:09:30

    o ParentID :

    12

    o Title : SimpleXMLElement::__set_state(array( ))
    o Link : SimpleXMLElement::__set_state(array( ))
    o Author : SimpleXMLElement::__set_state(array( ))
    o Tags :

    Concerts

    o Content :

    John Kenny, Hugh Webb and the Edinburgh Quartet performed the first concert in the series of concerts (named "Embracing the Unknown" after one of the pieces performed) on Saturday 9 June 2007 at the University of Glasgow's Concet Hall.

    This Concert, a showcase of several new works commissioned by Carnyx &amp; Co. for the unusual combination of Trombone, Harp and String Quartet, was a wonderful example of the exciting and interesting developments happening in contemporary composition.

    Embracing the Unknown will continue in the future with further commissions from Nigel Osbourne and John Kenny and an album release on the BML Label.

    Carnyx &amp; Co. would like to thank the Scottish Arts Council for their generous support for this project.

    o UrlTitle : SimpleXMLElement::__set_state(array( ))
    o Comments :
    o Sort :

    o URLSegment :

    embracing-the-unknown

    * methodName =

    parentStack

    * args =
    * lowerMethodName =

    parentstack

  • Phalkunz
    Avatar
    69 Posts

    Re: wordpress importer error. Link to this post

    Can you can tell what version of wordpress you import the xml file from?

  • Phalkunz
    Avatar
    69 Posts

    Re: wordpress importer error. Link to this post

    Hi RobertM,

    Can you look in sapphire/core/model/Hierarchy.php to see whether hierarchy.php has parentStack function or not?

    Cheeer.

  • RobertM
    Avatar
    Community Member
    26 Posts

    Re: wordpress importer error. Link to this post

    I have wordpress version 2.2 - does this produce a different xml file?

    yes the parentStack method exists:

    public function parentStack() {
          $p = $this->owner;
          
          while($p) {
             $stack[] = $p;
             $p = $p->ParentID ? $p->Parent() : null;
          }
          
          return $stack;
       }

  • Phalkunz
    Avatar
    69 Posts

    Re: wordpress importer error. Link to this post

    Hi Robert,

    Do you mind posting the wp xml file? I assume there's nothing personal in blog posts.

  • RobertM
    Avatar
    Community Member
    26 Posts

    Re: wordpress importer error. Link to this post

    Sure here it is...

    edit: hmm didn't let me attach the xml file.

    4240 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.