Broken Cron Image Appearing In Footer

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
User avatar
Mulsiphix
Registered User
Posts: 205
Joined: Sun Oct 25, 2015 3:14 am
Location: USA

Broken Cron Image Appearing In Footer

Post by Mulsiphix »

It was recommended that I try creating a topic here. However, my problem is already fully detailed in this topic. I'll ask my question again, for convenience of the readers here:

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:

Image


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" />');
To be fully thorough, I backed up my version of Prosilver and then deleted it. I then uploaded a fresh version. In the ACP I Purged The Cache and Purged All Sessions. The problem continues to persist.

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.
Last edited by Mulsiphix on Thu Dec 12, 2019 2:06 pm, edited 1 time in total.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: Broken Cron Image Appearing In Footer

Post by 3Di »

A link to your board pls.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Mulsiphix
Registered User
Posts: 205
Joined: Sun Oct 25, 2015 3:14 am
Location: USA

Re: Broken Cron Image Appearing In Footer

Post by Mulsiphix »

3Di wrote: Thu Dec 12, 2019 2:05 pm A link to your board pls.
The forum is private. I do not wish to share the URL in a public place. I have sent you a PM with the URL. To anyone else interested, please just request it and I will send. Sorry for any inconvenience :oops:.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: Broken Cron Image Appearing In Footer

Post by 3Di »

I haven't got any PM. Got it, investigating...

Edit2: still my reply PM is in Outbox (not read). I will see when I get back.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Mulsiphix
Registered User
Posts: 205
Joined: Sun Oct 25, 2015 3:14 am
Location: USA

Re: Broken Cron Image Appearing In Footer

Post by Mulsiphix »

Thanks to 3Di and EA117, this problem has been completely resolved. Thank you both so very much!

Return to “[3.2.x] Styles Support & Discussion”