In the VM account settings area, this save cart plugin creates a tab to recall shopping cart data. If sh404sef is disabled, it works exactly as it should. When I enable it and then go to account setting for VM, it doesn't crash, but the page render is all mess up and unusable. If i disable the saved cart plugin, the render of account settings is fine.
It may be because they are still using some deprecated methods, but that shouldn't cause the screen to not render correctly when 404 is enable if it is working with 404 disabled. I'm not sure where to turn and their support is not great. I need to have this 3rd party for cart recalling but I want to continue to use 404 as well.
The problem is in this area of code. If I comment out the last line, everything renders, but the tab disappears, but ultimate doesn't cause the page to render incorrectly:
I've tried:
and
But neither fix the issue, if I comment out:
The page will load correclty
Any ideas?
Thanks,
Chris
It may be because they are still using some deprecated methods, but that shouldn't cause the screen to not render correctly when 404 is enable if it is working with 404 disabled. I'm not sure where to turn and their support is not great. I need to have this 3rd party for cart recalling but I want to continue to use 404 as well.
The problem is in this area of code. If I comment out the last line, everything renders, but the tab disappears, but ultimate doesn't cause the page to render incorrectly:
protected function onProfileFE() { $db = JFactory::getDbo(); $user = JFactory::getUser(); //load CSS $this->loadCss(); //load JS $this->loadJs(); //get upload widget $content = $this->loadView(); // get output buffer $buffer = JResponse::getBody(); //process DOM $xml=new DOMDocument(); $xml->loadHtml($buffer); $xpath = new DOMXPath($xml); $tabs = $xpath->query('//*[@id="ui-tabs"]')->item(0); //insert widget if($tabs) { $node = $xml->createElement("foo"); $tabs->appendChild($node); $buffer = str_replace('<foo></foo>',$content,$xml->saveHTML()); } //$buffer = $xml->saveHTML(); // set output buffer JResponse::setBody($buffer); }
I've tried:
JResponse::setBody($buffer); >>> JFactory::getApplication()->setBody();
and
JResponse::setBody($buffer); >>> JFactory::setBody($buffer);
But neither fix the issue, if I comment out:
JResponse::setBody($buffer);
The page will load correclty
Any ideas?
Thanks,
Chris