View Full Version : cron.php and 404 errors
WhiteOx
08-10-2006, 04:57 AM
Hi,
Just upgraded to vB3.6 and cmps v2.2 everything seems to be working fine except that I keep getting flooded with 404 errors:
File does not exist: /home/website/public_html/cron.php
These errors only appear when someone views the portal when they're not logged in.
Does anyone have any idea why I keep getting these 404's they're driving me nuts? :confused:
Zachery
08-10-2006, 01:17 PM
Make sure cron.php is in the replacements for the footer.
WhiteOx
08-10-2006, 04:21 PM
Thanks Zachery, but how do I do that?
WhiteOx
08-11-2006, 07:02 PM
If you mean by adding cron.php to the 'Footer Replacements' I've already done that and it makes no difference. :(
aos101
08-12-2006, 12:59 PM
I've got the same problem on vBadvanced 2.2.0, and I've added cron.php to my footer replacements and its still not working right.
WhiteOx
08-13-2006, 04:57 AM
OK, I finally found the problem in case anyone else is having it too. :)
Go into your Admin CP:
vBulletin Options >> Site Name / URL / Contact Details
Make sure your full path to your FORUMS INDEX URL and your HOME INDEX URL are correct.
Make sure they are correct in your CMPS settings also.
If that doesn't fix it, download and install this little hack from vb.org.
http://www.vbulletin.org/forum/showthread.php?t=123719
aos101
08-13-2006, 06:43 AM
Thanks WhiteOx but that didn't fix it for me (I don't want to install another plugin to fix a possible bug). Could this be to do with changes in 3.6.0 as to how $cronimage is generated? It now calls create_full_url() to make the URL which it didn't in 3.5.4.
WhiteOx
08-13-2006, 05:41 PM
Your right, I disabled the plugin and the 404's returned. :(
I never had the problem on 3.5.4 either, so I'm thinking it may be a bug in vB 3.6 or CMPS v2.2.0 :confused:
It only seems to be a problem when the cmps_index file is located outside of the forum folder.
My cmps_index is located in:
sitename.com/index.php
My forums are located in:
sitename.com/forum/index.php
The plugin definatly solves the problem of hundreds of 404 errors though, maybe it's worth a try until someone solves this issue.
mikelbeck
08-21-2006, 09:07 AM
I've got the same situation, and my site is setup the same as your's WhiteOx.
Any solution for this yet?
WhiteOx
08-25-2006, 07:15 PM
I'm starting to think that they're not interested in solving it. :(
Zachery
08-25-2006, 08:55 PM
We are I pestered Brian a few times about this.
Basscat
09-06-2006, 03:05 PM
Is there a fix for this yet?
Basscat
09-08-2006, 09:08 PM
^ bump
Zachariah
09-11-2006, 11:11 PM
edit:
forums/includes/vba_cmps_include_bottom.php
Find:
$vbulletin->templatecache['pm_popup_script'] = str_replace('$pmpopupurl', $vbulletin->options['bburl'] . '/$pmpopupurl', $vbulletin->templatecache['pm_popup_script']);
Above Add:
if ($vbulletin->cron <= TIMENOW) {
$cronimage = '<img src="' . $vbulletin->options['bburl'] . '/cron.php?' . $vbulletin->session->vars['sessionurl'] . '&rand=' . vbrand(1, 1000000) . '" alt="" width="1" height="1" border="0" />';
} else {
$cronimage = '';
}
Basscat
09-12-2006, 09:31 PM
Thanks for the fix Zachariah. Your AWESOME!!!!
WhiteOx
09-14-2006, 04:23 PM
Thanks for the fix :) now we just need the people at Photopost to do the same for the Gallery.
RaZor Edge
10-29-2006, 02:31 PM
I had the same problem with cron.php
Glad to have find the fix!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.