array_merge() warning coming from OnDocFormSave case
I gave it a quick spin in MODX 3, but I can't get it to work. Tried it with all the system events and just OnSiteRefresh + OnSiteRefresh. The statcache folder is present in root.
No files are generated and no errors are logged, except for 1:
[2022-03-16 05:21:43] (ERROR @ /home/hugo/Localhost/pagbagsak/core/src/Revolution/modContext.php : 162) PHP warning: array_merge(): Expected parameter 1 to be an array, null given
This error disappears when disabling the StatCache plugin.
MODX 3.0.0-rc2 PHP 7.4
Same issues in 2.8.3. I added the Nginx config now too, although I don't think that should matter for generating the files? Changed a few property settings too, but no luck.
Is this plugin dead in the water?
Aaaah, it doesn't generate anything if there are uncached elements on the page. I was using the default BaseTemplate, which ships with <base href="[[!++site_url]]" />. Got it :)
Only thing remaining is the error:
[2022-03-16 09:35:29] (ERROR @ /home/hugo/Localhost/dev/modx3/core/src/Revolution/modContext.php : 162) PHP warning: array_merge(): Expected parameter 1 to be an array, null given
It seems to come from the OnDocFormSave part. Case almost closed.
BTW: I feel it would be nice if this oldie receives a little love again. I think it's a valuable addition to the ecosystem. BTW2: Tested it again in MODX 3 and all seems to work as expected after changing the same [[!++site_url]] tag.