• Resolved Insect Trojan

    (@insecttrojan)


    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]

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi @insecttrojan,

    Could you give me more information?

    – What settings are you using?
    – Are you getting any errors? In your console, or php logs?

    Thread Starter Insect Trojan

    (@insecttrojan)

    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.

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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.

    Thread Starter Insect Trojan

    (@insecttrojan)

    i did it in the cache files of caos analytics the analytics.js is empty there 0 bytes .

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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.

    Thread Starter Insect Trojan

    (@insecttrojan)

    i did all but it creates empty analytics.js ??

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    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.

    Thread Starter Insect Trojan

    (@insecttrojan)

    the same again outside the cache directory in creates at wp-content caos-analytics directory but empty analytics.js again

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    I suggest you should contact your hosting provider. Obviously something is wrong with your Server’s permissions configuration.

    Keep me posted!

    Thread Starter Insect Trojan

    (@insecttrojan)

    thanks a lot for your time Daan

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Just making sure, but you’re not using a PHP version lower than 5.1, right?

    Thread Starter Insect Trojan

    (@insecttrojan)

    no 7.3.8 php Daan

    Thread Starter Insect Trojan

    (@insecttrojan)

    hello again Daan nothing with the permissions i checked everything is right any ideas ? thanks a lot

    Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    @daanvandenbergh,

    Could you ask your hosting provider if allow_url_fopen is 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.php and 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!

    Thread Starter Insect Trojan

    (@insecttrojan)

    thanks a lot Daan i did it finnaly was the allow_url_fopen thanks for your time .

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘caos not working’ is closed to new replies.