Might it be that Matomo does not know how to handle Add-On Domains?
The Internal Sever Error that is created when a user checks or unchecks the opt-in/opt-out checkbox for accepting tracking cookies has not gone away – this despite my best effort to correct the problem.
After changing the value of the log array from screen to file in the global.ini.php file I ran the troubled checkbox. I then went to the tmp folder to look for the piwik.log file. Nothing. So, I created my own piwik.log file, ran the troubled checkbox and looked again. Although the file was still there; it was empty.
The server error is consistently the same: [Sun Apr 15 12:33:20.367548 2018] [:error] [pid 4106] (12)Cannot allocate memory: [client …] couldn’t create child process: /usr/sbin/suphp for … /matomo/index.php, referer: Grammar Captive Overview
Please keep in mind that when the page is refreshed the checkbox is as it should be. In other words the toggle appears eventually to work.
I have two more possible, but untested solutions: one is somewhat drastic, the other is an unwanted, time-consuming bother.
Is it possible that Matomo does not work properly when it tries to communicate with sister add-on domains? I have a site called thegenaproject.com. The installed Matomo package resides in an add-on domains called nudge.online and the troubled checkbox in a different add-on domain called grammarcaptive.com. Would it make a difference, if I were to reinstall the Matomo package inside thegenaproject.com domain – the principal domain?
Please advise and please provide your reasoning in both instances, if not another.