Notifications

No notifications to display.

EVOLUTIONXTREME

Design   /   Development   /   Community

Evo Analytics

Create Discussion Reply
#4830

Original Post:  https://www.headshotdomain.net/modules.php?name=Forums&file=viewtopic&p=8581#8581

This only appeared so far on my website that I know of, but, I fixed it none-the-less. If you are super lazy and want to just download the new file and replace the one you have, that's fine, but I can say that is more work than just doing the code change.

File to fix:
public_html/includes/custom_files/Analytics/web-analytics.php

Find on line 22:

CodeSelect all

define('LAST_RUN_FILE', ANALYTICS_INCLUDES_PATH . 'cache/.last_geoip_cleanup');

Replace with:

CodeSelect all

define('LAST_RUN_FILE', __DIR__  . '/cache/.last_geoip_cleanup');

Save & Close

So far, as long as it isn't putting errors into your error log, then you are okay with keeping it as is, but if you start getting an error like:

[29-Jul-2025 18:17:59 America/New_York] PHP Warning:  file_put_contents(./includes/custom_files/Analytics/cache/.last_geoip_cleanup): failed to open stream: No such file or directory in /home/www/YOUR_SITES_PATH/includes/custom_files/Analytics/web-analytics.php on line 188
[29-Jul-2025 18:17:59 America/New_York] PHP Warning:  chmod(): No such file or directory in /home/www/YOUR_SITES_PATH/includes/custom_files/Analytics/web-analytics.php on line 189

I would fix it.

I wasn't seeing this error until a few days ago. I don't know if my error logging has changed, or I did something, but, what ever it is, this is the fix. I already updated the download on both websites, so if you DL it from after this post was made, the no worries.

Reply