• Hi
    Recently all my sites using caos showing 404 error for analytics.js bec during cron the file gets deleted ,but due to error the files is not saved again during cron .
    When checked in log this is the error I see .

    2021-04-09 18:05:04: /var/www/wp-content/cache/caos-analytics/ already exists.

    2021-04-09 18:05:04: Saving to /var/www/wp-content/cache/caos-analytics/.

    2021-04-09 18:05:04: File 5efb9696.js successfully deleted.

    File 5efb9696.js could not be saved. Something went wrong: ftp_pwd() expects parameter 1 to be resource, null given

    Can you help me out.

    • This topic was modified 5 years, 1 month ago by Mithu.
Viewing 1 replies (of 1 total)
  • Does this also happen when you save the settings (update manually)?

    Check that the permissions of the directory /var/www/wp-content/cache/caos-analytics/ allow a web program to create files.

    Just in case, make sure the plugin is installed properly by downloading a fresh copy and uploading it to the server with FTP.

    I’m guessing the above output is from the CAOS debug log. Is there anything relevant in error_log or wp-admin/error_log?

Viewing 1 replies (of 1 total)

The topic ‘Analytics file gets deleted when cron , 404 error’ is closed to new replies.