symphonists / cachelite

Dead simple caching extension for the Symphony CMS. Uses the CacheLite library.
Other
19 stars 11 forks source link

Symphony Warning: DOMDocument::loadXML(): AttValue: " or ' expected in Entity, line: 1 #29

Closed wdebusschere closed 9 years ago

wdebusschere commented 9 years ago

Symphony Warning: DOMDocument::loadXML(): AttValue: " or ' expected in Entity, line: 1 An error occurred in /data/sites/web/thesite/www/extensions/cachelite/extension.driver.php around line 361 356
357 } 358 359 # Parse any Event or Section elements from the page XML 360 public function parse_page_data($context) { 361 $xml = DomDocument::loadXML($context['xml']->generate()); 362 $xpath = new DOMXPath($xml); 363 364 $sections_xpath = $xpath->query('//section[@id and @handle]'); 365 $sections = array(); Backtrace [:0] GenericErrorHandler::handler(); [/data/sites/web/thesite/www/extensions/cachelite/extension.driver.php:361] DOMDocument->loadXML(); [/data/sites/web/thesite/www/symphony/lib/toolkit/class.extensionmanager.php:706] extension_cachelite->parse_page_data(); [/data/sites/web/thesite/www/symphony/lib/toolkit/class.frontendpage.php:213] ExtensionManager::notifyMembers(); [/data/sites/web/thesite/www/symphony/lib/core/class.frontend.php:106] FrontendPage->generate(); [/data/sites/web/thesite/www/symphony/lib/boot/func.utilities.php:232] Frontend->display(); [/data/sites/web/thesite/www/symphony/lib/boot/func.utilities.php:212] symphony_launcher(); [/data/sites/web/thesite/www/index.php:17] symphony();

[0.0007] SELECT SQL_CACHE id,handle,parent,plh_t-en,plh_h-en,plh_t-pt,plh_h-pt FROM sym_pages AS p WHERE 1 ORDER BY sortorder ASC; [0.0006] SELECT SQL_NO_CACHE * FROM sym_cache WHERE hash = 'c2b44b440e21f24b96dca4168653316d' AND (expiry IS NULL OR UNIX_TIMESTAMP() <= expiry) LIMIT 1; [0.0005] SELECT SQL_NO_CACHE * FROM sym_cache WHERE hash = 'c2b44b440e21f24b96dca4168653316d' AND (expiry IS NULL OR UNIX_TIMESTAMP() <= expiry) LIMIT 1; [0.0021] SELECT SQL_NO_CACHE * FROM sym_cache WHERE hash = 'c2b44b440e21f24b96dca4168653316d' AND (expiry IS NULL OR UNIX_TIMESTAMP() <= expiry) LIMIT 1; [0.0014] SELECT SQL_NO_CACHE * FROM sym_cache WHERE hash = 'c2b44b440e21f24b96dca4168653316d' AND (expiry IS NULL OR UNIX_TIMESTAMP() <= expiry) LIMIT 1;

wdebusschere commented 9 years ago

Problem has nothing to do with cachelite extension.

nitriques commented 9 years ago

;)

wdebusschere commented 9 years ago

Nicolas, yes, but i get the error sometimes when i load the multilanguage text field with html without quotes.. will see on the symphony issues or validate html input. Thx

nitriques commented 9 years ago

error sometimes when i load the multilanguage text field with html without quotes

You you need to check "output with CDATA" when dealing with html. html is not valid xml. (I mean when the html is directly create in the text field, not using a formatter)