• Resolved RockSolid Design

    (@cfmwebdesign)


    Hi Daan,

    I can’t get the plugin to work. I installed the plugin and then it created the /wp-content/cache/caos-analytics folder with analytics.js file. In the dasboard it said the cron was working and updated.

    Then when I run GTMetrix again, it still gave the Expired Header issue. So I then saved the settings again and tried manually updating the analytics.js. But the update button does not work. So then I removed the caos-analytics folder from cache and clicked again but now it says cron is not working. Also it does not create a new folder.

    I am a 100% sure it is not a permission issue. The folder permissions are set to 755 and other plugins have no problem creating folders. It only happens with CAOS. I also tried changing the folder location to root and some other directories, but it just won’t create a new folder.

    fopen is also set to allowed.

    Do you have any idea what can be the problem? Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Hi RockSolid,

    What’s the site you need help with? If you don’t want to share it here, please send it to me using my contact form.

    Thread Starter RockSolid Design

    (@cfmwebdesign)

    Thanks, I have sent it to you via the contact form.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Well, it probably still gave the Expired Header issue, because you’re using ExactMetrics GADWP along side CAOS. So the expired header issue must’ve still been for the ExactMetrics analytics.js-file loaded from google-analytics.com. Probably enabling the GADWP compatibility mode in CAOS would’ve resolved your issue. 🙂

    But now CAOS can’t recreate the file. What happens if you try to make the folder manually and in that folder create an empty analytics.js file? Do you still get errors when you trigger ‘update analytics.js’?

    Thread Starter RockSolid Design

    (@cfmwebdesign)

    Thanks for the answer.
    Ok so I have created the folder and analytics.js file myself and it does not give the error anymore.

    On top it now says: J

    Jouw cron draait goed.
    analytics.js Laatst bijgewerkt op: 26 januari 2020 om 12:42:58 UTC
    Volgende update gepland op: 26 januari 2020 om 15:29:53 UTC

    However it will not update the file. The size stays 0 bytes and when I click the update button, literally nothing happens. I created the folder and file at 12:42 but when I click update it will not change to current time.

    I hope you can give me another suggestion on how to fix this..

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Ok, are you getting any errors in your PHP logs?

    What happens if you delete the analytics.js file, leave the folder, and then try to update?

    Thread Starter RockSolid Design

    (@cfmwebdesign)

    Hi Daan,

    I tried deleting the analytics.js file but then the “analytics.js is al meer dan twee dagen niet geüpdatet. Draait jouw cron wel?” error again.

    This is what I get in the error log:

    [26-Jan-2020 13:20:09 UTC] PHP Warning:  filemtime(): stat failed for /public_html/wp-content/cache/caos-analytics/analytics.js in /public_html/wp-content/plugins/host-analyticsjs-local/includes/admin/class-functions.php on line 27
    
    Thread Starter RockSolid Design

    (@cfmwebdesign)

    Hi Daan,

    I have it fixed. I uninstalled the CAOS plugin and reinstalled it again, but now set the compatibility mode to Exactmetrix and updated the plugin. It is working correctly now.

    Thanks for your help!

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Hi RD,

    Just wanted to let you know that this bug is fixed in v3.3.1. the filemtime() function throws a warning if the file doesn’t exist. Which makes sense upon first install, or when changing from gtag.js to analytics.js, for example.

    This warning is now suppressed.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘CAOS won’t update’ is closed to new replies.