Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

wordpress importer error.


Go to End


11 Posts   6304 Views

Avatar
RobertM

Community Member, 26 Posts

13 September 2008 at 9:22am

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?

Avatar
Phalkunz

Community Member, 69 Posts

13 September 2008 at 6:10pm

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.

Avatar
RobertM

Community Member, 26 Posts

13 September 2008 at 11:10pm

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


Avatar
Phalkunz

Community Member, 69 Posts

14 September 2008 at 12:30pm

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

Avatar
Phalkunz

Community Member, 69 Posts

14 September 2008 at 12:54pm

Hi RobertM,

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

Cheeer.

Avatar
RobertM

Community Member, 26 Posts

15 September 2008 at 3:56am

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;
	}

Avatar
Phalkunz

Community Member, 69 Posts

16 September 2008 at 7:08pm

Hi Robert,

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

Avatar
RobertM

Community Member, 26 Posts

17 September 2008 at 9:53am

Edited: 17/09/2008 9:54am

Sure here it is...

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

Go to Top