Active
Project:
CiviCRM Starter Kit
Version:
7.x-4.x-dev
Component:
Pantheon
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Sep 2013 at 03:50 UTC
Updated:
17 Oct 2017 at 16:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kreynen commentedComment #2
populist commentedI am also seeing similar problems on my test sites when multiple front end servers are used to manage requests. This results in an error like "XML data could not be loaded. Make sure you specified the correct path." I tested this out, but I am still seeing these errors.
In terms of narrowing the problem down, the immediate issue is that getFilterFromXML() seems to not be able to read the XML file at /srv/bindings/0daa2b186e8c47f190c1a4dd0ec815b9/code/profiles/civicrm_starterkit/modules/civicrm/packages/IDS/default_filter.xml because presumably that binding changes.
Comment #3
kreynen commentedjust so I'm clear, these explicit bindings are defined in the civicrm.settings.php and are different for the dev, test, and live sites?
I don't think your error is related to the items in the civicrm_cache table, but IDS...
https://github.com/civicrm/civicrm-packages/blob/master/IDS/Filter/Stora...
IDS can be turned off in the civicrm.settings.php. That would resolve the error, but then IDS is off.
IDS writes a file to sites/default/files/civicrm/ConfigAndLog/Config.IDS.ini. This is what https://drupal.org/project/civicrm_base_jumper was written to resolve, but shouldn't have been required since 4.3.
Perhaps CiviCRM regressed somewhere?
Comment #4
populist commentedI believe that CiviCRM regressed. Despite running 4.3.6, I am still seeing trouble with the PHPIDS cache.
Installing https://drupal.org/project/civicrm_base_jumper + using this patch solves the problem.
Comment #5
nubeli commentedI believe these errors are related to this issue:
The site is running CiviCRM 4.4.14.
I haven't included this patch because I didn't see it as part of the make file for civicrm_starterkit. Is there a reason it's not included? Even if this isn't perfect I'm tempted to use this patch since this error is "catastrophic" from the perspective of the client.
That file, though, seems to work slightly different now. It seems to be setting the cache with the results of $data. I don't see how that'll change this patch however so worth a try.
Comment #6
nubeli commentedThere are a lot of potential server paths that might be saved in the database. Instead of taking the approach of listing them all manually and rewriting the paths, I'm trying out the approach of just skipping the cache entirely when loading config from CRM_Core_Config::singleton(). So I've commented out the attempt to load the config from cache and also writing to the cache after rebuilding it.
I haven't seen an appreciable difference in performance nor errors, but I'll have to see how it handle under heavy usage.
Since I've pushed my patch on the live site I've noticed the binding has changed a few times (perhaps as a backup server is spun up) but CiviCRM is still working.
I was almost at my wits end so I hope I'm on the right path here (pun intended?). The bigger goal is to convince the CiviCRM core developers to formally support dynamic systems like Pantheon.
Note, I haven't been using civicrm_base_jumper so I don't think that's a problem AFAIK.
Comment #7
nubeli commentedVersion for CiviCRM 4.6 of patch to skip cache when trying to load/write config.
Comment #8
brightboldThanks — the patch in #6 seems to have fixed the problem for me. A lifesaver!
Comment #9
nubeli commentedI'm leaving this open, even though most of this is solved, especially in 4.7.x. I just noticed in civicrm_cache, a record under group_name = js_strings which saves the paths to various JS files. E.g. snippet:
a:78:{s:108:"/srv/bindings/0fc20ec91ca9478bbd43e0fa82c68999/code/profiles/civicrm_starterkit/modules/civicrm/js/Common.js";a:17:{i:0;s:7:"new tag";i:1;s:10:"%1 Created";i:2;s:5:"Clear";i:3;s:4:"Time";i:4;s:16:"Refine search...";i:5;s:10:"- select -";i:6;s:17:"Toggle fullscreen";i:7;s:25:"You have unsaved changes.";i:8;s:9:"Saving...";i:9;s:5:"Saved";i:10;s:58:"Sorry an error occurred and your information was not saved";i:11;s:5:"Error";i:12;s:7:"Confirm";i:13;s:34:"Are you sure you want to continue?";i:14;s:6:"Cancel";i:15;s:8:"Continue";i:16;s:7:"Preview";}I'm not sure anyone has noticed an issue with JS when the binding changes so this might not be an issue. It's called in CRM/Core/Resources.php and might be created in Civi/Core/Container.php.
Comment #10
nubeli commented