CiviCRM/tech notes: Difference between revisions
(→XML data could not be loaded: Added code snippet) |
(→XML data could not be loaded: Added code snippet and link to a relevant google search) |
||
Line 15: | Line 15: | ||
<ref name="Forum">[http://openfarmtech.org/forum/discussion/93/solved-xml-data-could-not-be-loaded-delete-config.ids.ini OSE forum post]</ref> | <ref name="Forum">[http://openfarmtech.org/forum/discussion/93/solved-xml-data-could-not-be-loaded-delete-config.ids.ini OSE forum post]</ref> | ||
You may need to delete the whole template cache folder to fix the issue, though. Use the code below as an example: | You may need to delete the whole template cache folder to fix the issue<ref>[http://www.google.com.br/search?hl=pt-BR&safe=off&q=Exception+%22XML+data+could+not+be+loaded%22+IDS_Filter_Storage+getFilterFromXML&oq=Exception+%22XML+data+could+not+be+loaded%22+IDS_Filter_Storage+getFilterFromXML&aq=f&aqi=&aql=&gs_sm=e&gs_upl=5415l5554l0l5811l2l2l0l0l0l0l0l0ll0 Google search]</ref>, though. Use the code below as an example: | ||
<pre> | <pre> | ||
cd $DRUPAL_HOME | cd $DRUPAL_HOME | ||
Line 23: | Line 23: | ||
===Menus retaining old URLs=== | ===Menus retaining old URLs=== | ||
In order to rebuild menu URLs after changing the base URL, visit: | In order to rebuild menu URLs after changing the base URL <ref>http://wiki.civicrm.org/confluence/display/CRMDOC33/Base+URL+Change</ref>, visit: | ||
civicrm/menu/rebuild?reset=1 | civicrm/menu/rebuild?reset=1 | ||
===Out of memory errors=== | ===Out of memory errors=== | ||
You might need to update the '''civicrm_domain''' table like this: | You might need to update the '''civicrm_domain''' table like this: | ||
update civicrm_domain set config_backend = null WHERE id = 1 | update civicrm_domain set config_backend = null WHERE id = 1 | ||
Revision as of 13:25, 22 July 2011
Moving
Common Errors
XML data could not be loaded
After moving CiviCRM from another host and updating some paths, I got this error:
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in [...] civicrm_invoke() #6 /home/a_user/site in /home/a_user/site/community/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php on line 220
The solution is to delete or update the contents of the file {DRUPAL_HOME}/sites/default/files/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini to reflect the new paths. [1]
You may need to delete the whole template cache folder to fix the issue[2], though. Use the code below as an example:
cd $DRUPAL_HOME rm -rv sites/default/files/civicrm/templates_c/*
Menus retaining old URLs
In order to rebuild menu URLs after changing the base URL [3], visit:
civicrm/menu/rebuild?reset=1
Out of memory errors
You might need to update the civicrm_domain table like this:
update civicrm_domain set config_backend = null WHERE id = 1