caos not working
-
hello please can you help me my caos analytics 1 week now is not working i deactivated it but i need because it is so good for my speed
The page I need help with: [log in to see the link]
-
Hi @insecttrojan,
Could you give me more information?
– What settings are you using?
– Are you getting any errors? In your console, or php logs?i have the default settings no php error nothing on console or logs i dont understand whats going wrong i have it with autoptimize and w3 total cache 1 year now i have enabled the caos analytics now on header but not counting.
-
This reply was modified 6 years, 8 months ago by
Insect Trojan.
Try the following, perhaps this could help me pinpoint a bug.
Try doing the following:
– Click ‘save changes’,
– Click ‘update analytics.js’.I tried opening your analytics.js-file, but I got a blank page. The request is however returning a 200-status, which means success. So perhaps something is changed in the file’s permissions. Doing the steps above should fix that.
i did it in the cache files of caos analytics the analytics.js is empty there 0 bytes .
Ok, so then it definitely is a permissions issue. Which means that something or someone has changed the permissions of either the configured cache-folder or the analytics.js-file itself.
Could you remove CAOS’ entire cache-folder? e.g.
/wp-content/cache/caos-analytics. (DO NOT remove the ‘cache’-folder, but only the ‘caos-analytics’ folder inside of it). Then run ‘update analytics.js’ again. This should re-create the folder and file, with correct permissions. If this fails, then it means that the ‘cache’-folder’s permissions are incorrect and PHP/WordPress isn’t able to write files.i did all but it creates empty analytics.js š
I think you should contact your hosting provider. It must be a permission issue, causing WordPress/PHP not being allowed to write to files.
Alternatively, you could try changing CAOS’ cache directory to something outside the cache directory, e.g.
/caos-analytics/(mind the slashes!). After saving changes, generate the stylesheet again.But honestly, I suggest contacting your hosting provider, because this permission issue might influence more under water than just CAOS.
the same again outside the cache directory in creates at wp-content caos-analytics directory but empty analytics.js again
I suggest you should contact your hosting provider. Obviously something is wrong with your Server’s permissions configuration.
Keep me posted!
thanks a lot for your time Daan
Just making sure, but you’re not using a PHP version lower than 5.1, right?
no 7.3.8 php Daan
hello again Daan nothing with the permissions i checked everything is right any ideas ? thanks a lot
Could you ask your hosting provider if
allow_url_fopenis set to 1 in the PHP settings?And while you’re at it, could you try the following:
open
wp-content/plugins/host-analyticsjs-local/includes/class-caos-update.phpand on line 25 change:return file_put_contents($localFile, fopen($remoteFile, 'r'));to:
return file_put_contents($localFile, file_get_contents($remoteFile));Trigger a manual update and see if analytics.js is populated. Let me know!
thanks a lot Daan i did it finnaly was the allow_url_fopen thanks for your time .
-
This reply was modified 6 years, 8 months ago by
The topic ‘caos not working’ is closed to new replies.