Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Post By Email Beta Test
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 15, 2012 - 5:09 am

Something is causing an error when the post is processed clearly.
What about the forum error log (Toolbox) Any actual 'fatal errors' reported there?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 15, 2012 - 3:24 pm

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 16, 2012 - 5:56 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2012 - 1:54 pm

The mail box is empty apart from 1 plain text email with "Test" as the subject and "Test" as the message.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 17, 2012 - 4:58 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 17, 2012 - 11:31 pm

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...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 3:06 pm

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 - 

<?php
# --------------------------------------------------------------------------------------
#
# 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');

?>

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 4:46 pm

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...

Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 5:22 pm

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.

<?php
# --------------------------------------------------------------------------------------
#
# 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');

?>

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 18, 2012 - 5:48 pm

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...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625