Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Fatal error: Call to a member function on a non-o


Recommended Posts

I posted this in general support forum, but I guess it really belongs here.


I am getting this error right after choosing my shipping option(UPS XML):


Fatal error: Call to a member function on a non-object in /home/site1/fst/var/www/html/includes/classes/xmldocument.php on line 57


function getValueByPath($path) {
  $pathArray = split("/", $path);
  if ($pathArray[0] == $this->root->getName()) {
    //print_r("Looking for " . $pathArray[0] . "<br>");
    $newPath = implode("/", $pathArray);
    return $this->root->getValueByPath($newPath);


Anyone know what goes wroing??

Link to comment
Share on other sites

Well, I had never had this error occur before I saw your post and one other in the last couple of days. Now it's popping up on my checkout_shipping page as well. It seems to be random, and 1 or 2 refreshes of the page invariably will finally render the page as it should be.


I suspect that the error has to be coming from the call to either "root" or "getName", but they are both declared in the xmldocument file, so I don't know if its a matter of something not being presented in the correct order or some other reason.


The upsxml.php "requires" the xml document - I don't know if "require once" might be appropriate here??? Or has something changed recently either with PEAR, CURL or the UPS servers themselves?


I'm grasping at straws here - hopefully someone with a better knowledge of coding will come forward with a solution.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...