Support Forum
No errors in there. Just some notices re subscriptions plugin.
I've tired deactivating all the other SP plugins, uninstalling and re-installing post by email. No difference unfortunately.
I don't understand code too well, but are there really many differences between manual and automatic crons?
No real difference. WP Cron is not true, server side Cron (they should have used a different name really). It is only actioned when someone accesses the site. So when the site is requested, Wo looks at the Cron list to see if any task has been scheduled to run since the last site access and now and if found runs it. That's the theory.
So manually running the task is just the same really.
I need to think about what might be going on here and confer with the team.
Meanwhile - is it at all possible that there is an email waiting in your inbox that might - due to some content or other - be causing an issue that is stopping things working. If there is any chance you could take a look at them to see if you can spot anything unusual it would be perhaps helpful. Not sure what I have in mind here exactly but you might spot something... I guess if there is anything embedded other than just plain text for example.
YELLOW
SWORDFISH
|
So our best assessment is that the Cron just doesn't run. and I have no real idea why this might be the case when other cron tasks clearly are running and no errors are being reported.
Steve... any ideas why the cron job for this task would not run. Can be run manually and other tasks do appear to be functioning.
YELLOW
SWORDFISH
|
no, not really... its almost as if its erroring out... but then should be something in the error log...
as a test, can you add
do_action('sph_emailpost_cron');
in your spFunctions.php file? and see if emails get processed?
that is overkill and will force the cron to run on every page load, so wouldnt want that there permanently, but wont hurt for testing...
Visit Cruise Talk Central and Mr Papa's World
I added do_action('sph_emailpost_cron'); below the last add_filter in my spFunctions.php this gave me a site-wide 500 Http error.
This is my functions file -
# --------------------------------------------------------------------------------------
#
# Simple:Press Theme custom function file
# Theme : Default
# File : custom functions
# Author : Simple:Press
#
# The 'functions' file can be used for custom functions & is loaded with each template
#
# --------------------------------------------------------------------------------------
add_action('init', 'spDefault_textdomain');
# load the theme textdomain for tranlations
function spDefault_textdomain() {
sp_theme_localisation('spDefault');
}
if (function_exists('sp_FontResizer')) {
add_action('sph_BeforeDisplayStart', 'spDefault_spShowFontResize');
}
function spDefault_spShowFontResize() {
$tipMinus = __sp('decrease forum font size');
$tipReset = __sp('reset forum font size');
$tipPlus = __sp('increase font size');
sp_FontResizer('tagClass=spFontSizeControl spRight', $tipMinus, $tipReset, $tipPlus);
sp_InsertBreak('direction-right');
}
/* Functions for Breadcrumb Z-Index Sorting */
function spSortBreadcrumbs($breadCrumbs, $a='', $crumbEnd='', $crumbSpace='', $treeCount='') {
global $no;
$no = substr_count($breadCrumbs, 'spLink') + 2;
$breadCrumbs = preg_replace_callback(
'|href=|',
create_function(
'$matches',
'global $no; $no--; return \'ID="BreadcrumbPosition\'.$no.\'" \" style="z-index:\'.$no.\'" \'.$matches[0];'
),
$breadCrumbs);
return $breadCrumbs;
}
add_filter('sph_BreadCrumbs', 'spSortBreadcrumbs');
?>
I dont see:
do_action('sph_emailpost_cron');
in there... also, be sure to use caution when copying that... do a raw code copy to make sure the single quotes come out right... or retype them by hand...
Visit Cruise Talk Central and Mr Papa's World
Re-copied and pasted in case I did it wrong!
What I have just realised that if there emails in the mailbox I get the 500 http error. If there are no emails then it loads.
# --------------------------------------------------------------------------------------
#
# Simple:Press Theme custom function file
# Theme : Default
# File : custom functions
# Author : Simple:Press
#
# The 'functions' file can be used for custom functions & is loaded with each template
#
# --------------------------------------------------------------------------------------
add_action('init', 'spDefault_textdomain');
# load the theme textdomain for tranlations
function spDefault_textdomain() {
sp_theme_localisation('spDefault');
}
if (function_exists('sp_FontResizer')) {
add_action('sph_BeforeDisplayStart', 'spDefault_spShowFontResize');
}
function spDefault_spShowFontResize() {
$tipMinus = __sp('decrease forum font size');
$tipReset = __sp('reset forum font size');
$tipPlus = __sp('increase font size');
sp_FontResizer('tagClass=spFontSizeControl spRight', $tipMinus, $tipReset, $tipPlus);
sp_InsertBreak('direction-right');
}
/* Functions for Breadcrumb Z-Index Sorting */
function spSortBreadcrumbs($breadCrumbs, $a='', $crumbEnd='', $crumbSpace='', $treeCount='') {
global $no;
$no = substr_count($breadCrumbs, 'spLink') + 2;
$breadCrumbs = preg_replace_callback(
'|href=|',
create_function(
'$matches',
'global $no; $no--; return \'ID="BreadcrumbPosition\'.$no.\'" \" style="z-index:\'.$no.\'" \'.$matches[0];'
),
$breadCrumbs);
return $breadCrumbs;
}
add_filter('sph_BreadCrumbs', 'spSortBreadcrumbs');
do_action('sph_emailpost_cron');
?>
so it means you are getting the errors while processing the emails... and that code segment is correct...
but will need Andy on what might be heading south while processing the emails...
might help him out if would be able to provide him with some ftp access so he can insert some debug code... if so, do so via pm please...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)