I worked for a month to setup a new forum. I then took a month off. I've came back today and noticed a problem that did not exist before. I'm at a loss as to how this happened. I'm pretty positive it isn't the result of anything I've done to overall_foot.html. Here is what I see on the login page:
When I looked at the source of the page, I found this:
Code: Select all
<div>
<a id="bottom" class="top-anchor" accesskey="z"></a>
<img src="./cron.php?cron_type=cron.task.core.tidy_sessions" width="1" height="1" alt="cron" /></div>
When I looked inside overall_footer.html, I found this:
Code: Select all
<div>
<a id="bottom" class="top-anchor" accesskey="z"></a>
<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</div>
Eventually I found this in
includes/functions.php
at line 4784:
Code: Select all
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
Finally, I decided to test that bit of code from overall_footer.html by removing it. As soon as I did the broken cron image disappeared. So this appears to be the source of the problem. The question now is, why is this happening?
Additional Notes:
- Mick suggested the issue is related to the page loading slowly. I find this unlikely because the first month I was working on installing the forum it never appeared. I've been away for a month and this issue was waiting for me when I got back. I have not changed web hosts and my website appears to be loading snappy.
- I found a way to hide the broken cron image. However, there is obviously a problem happening so I'd like to deal with it if at all possible.
- P_I posted on my other topic and informed me how I could set "Run periodic tasks from system cron" to OFF in the ACP, and run the cron tasks through CPanel instead. I'm open to doing this but was wondering if there was any other way to handle this. I'm worried this issue may be indicative of a larger one.