SOLVED - Error in Latest Release?

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Thu Aug 12, 2010 12:16 pm
The problem was my fault, I had forgotten to switch to php5

Hi

I have downloaded and installed the myStore quick start package, the first time i got anerror after removing the Installation folder and trying to go to admin of:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/sites/e-learn.ae/public_html/plugins/system/plg_jamenuparams.php on line 95

This is lines 94 - 98 of that file:

Code: Select all
      $html = new simple_html_dom($bodyContent);
      $html->find("#menu-pane", 0)->innertext .= $str;
      
      return $html->outertext;
   }



So i redownloaded and re-installed thinking it may have been a corrupted file and get the same problem

Any ideas?
User avatar
Gold Boarder

GK User
Fri Aug 13, 2010 12:38 am
I think that it is connected with PHP version which no support chaining of methods. Please try to change code:
Code: Select all
$html->find("#menu-pane", 0)->innertext .= $str;

return $html->outertext;


to:

Code: Select all
$node_el = $html->find("#menu-pane", 0);
$node_el->innertext .= $str;

return $node_el->outertext;
User avatar
Administrator


cron