News:

Support the VirtueMart project and become a member

Main Menu

PHP warning on vponepagecheckout

Started by JacoboPS, September 30, 2015, 11:55:35 AM

Previous topic - Next topic

JacoboPS

Hello, checking my site, I have discovered this PHP Warning:

[29-Sep-2015 16:03:16 America/Detroit] PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/xxxxxx/public_html/plugins/system/vponepagecheckout/cart/cartview.html.php on line 246

But I'm don't understand  :-\ what the Warning is telling me, so I don't know how to solve it.

This is the code from 239 to 251 lines:

// Get payment options
            $this->lSelectPayment();
            $payment_html = $this->renderPlgLayout('default_payment');
            $payment_script = array();
            $payment_scripts = array();
            $dom = new DOMDocument;
            $dom_state = libxml_use_internal_errors(true);
            $dom->loadHTML($html);          => this is line 246
            libxml_clear_errors();
            libxml_use_internal_errors($dom_state);
            $scripts = $dom->getElementsByTagName('script');
            if($scripts->length)
            {

Could you please help me to understand -and solve- what is happening here?

Thank you very much!
Learning, pulling hair out, learning...

GJC Web Design

1. sorry -- 3rd party extensions aren't supported -- ask VPlanet

2. It is only a warning .. does no harm-- in a perfect world of course it should be got rid of
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

JacoboPS

Quote from: GJC Web Design on September 30, 2015, 12:06:43 PM
1. sorry -- 3rd party extensions aren't supported -- ask VPlanet

2. It is only a warning .. does no harm-- in a perfect world of course it should be got rid of

Thank you GJC. I know it is only a warning, but sometimes when trying to isolate a problem, I prefer to get rid of all potential problems (or warnings). I'll look for VPlanet.
Learning, pulling hair out, learning...

GJC Web Design

assume something like

if(isset($html)){
$dom->loadHTML($html);
}
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation