Timed publish stopped working

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Timed publish stopped working

Postby razz » Fri Jun 01, 2012 10:12 am

Hello,

I'm running db files with PivotX - 2.2.6.
Since a day or two my timed entries doesnt get published.
I haven't changed any setting at all.

1 week ago i only switched from server. There is a time difference of 6 hours between both servers but i don't think this should be a problem.
I did changed time offset a few minutes ago and tested a timed entry again but without success.

Anyone have any idea on what happened here all over suddenly ?


thank you
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm

Re: Timed publish stopped working

Postby razz » Fri Jun 01, 2012 11:19 pm

Just hoping to get more clear about this issue i have some config options listed below.

check_for_timed_publish : 150
diffdate_format : %ordday% %monname% '%ye% -
Time Offset : 6

I'm having a feeling something goes wrong because of the server move i did recently.. from europe to USA.. however i'm pretty sure it worked the first few days on the new server..
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm

Re: Timed publish stopped working

Postby Harm10 » Sat Jun 02, 2012 4:39 pm

Before you are going to check further better upgrade first. Current version is 2.3.3.
Always a wise thing to do when you encounter problems....... ;)
Quality is in the detail of things............
Harm10
Developer
 
Posts: 1608
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Timed publish stopped working

Postby razz » Sat Jun 02, 2012 5:46 pm

İ'm not sure if i can just update since i remember i (and hans) did edit some core files once..

İt was working perfectly though on2.2.6
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm

Re: Timed publish stopped working

Postby Harm10 » Sat Jun 02, 2012 7:56 pm

If you remember what files were edited then you can just skip them when file comparing. Otherwise you have to wait for hans to read and reply...... ;)
Quality is in the detail of things............
Harm10
Developer
 
Posts: 1608
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Timed publish stopped working

Postby razz » Sat Jun 02, 2012 8:05 pm

or somebody gives me the ultimate tip on fixing this issue :D
Either way, i'm patiently waiting :)
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm

Re: Timed publish stopped working

Postby hansfn » Mon Jun 04, 2012 8:58 am

First check if you have disabled the scheduler - check the advanced configuration: dont_run_scheduler. If you have disabled it, you probably had a cron job on the old server that ran "wget example.org/pivotx/scheduler.php" or similar. If you haven't disabled it, you have to check the server time.

PS! I remember that I changed scheduler.php on your site - commented out (or removed) the "cleanCache();" line. It's trivial to reapply that change after upgrading to PivotX 2.3.3.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Timed publish stopped working

Postby razz » Mon Jun 04, 2012 10:51 am

hansfn wrote:First check if you have disabled the scheduler - check the advanced configuration: dont_run_scheduler. If you have disabled it, you probably had a cron job on the old server that ran "wget example.org/pivotx/scheduler.php" or similar. If you haven't disabled it, you have to check the server time.

PS! I remember that I changed scheduler.php on your site - commented out (or removed) the "cleanCache();" line. It's trivial to reapply that change after upgrading to PivotX 2.3.3.


Hello Hans,
First of all, thank you for your (always valuable) input.

"dont_run_scheduler" is on 1. Not sure but 1 means enabled right ? In this case it does not run ?

I digged in my emails for a while and found your emails from 12 months ago regarding this issue.

1) I have disabled the scheduler[1] - doesn't make sense that all of your
visitors try to run it. (It won't run for each visitor, but just
checking is wasting resources.) I suggest that you (or your hoster)
add a cron job that runs every 15 minute that loads
http://www.youramateurporn.com/pivotx/scheduler.php
(Typically done with wget, curl or similar tools.)
The scheduler checks for timed publish which is important for you, and
does some additional cleaning up.


also in scheduler.php
// Here we call the functions that need to be run.
// Disablde cleanCache since it kills files that is still needed. (Added by hansfn, 2011.07.01.)
// cleanCache();
$PIVOTX['db']->checkTimedPublish();
$PIVOTX['pages']->checkTimedPublish();
if ($PIVOTX['config']->get('moblog_active')) {
$moblog = new Moblog();
$messages = $moblog->execute();
if (!empty($messages)) {
debug(implode("\n",$messages));
}
}



What do you advice in this case, best way is to ask hosting to add a cron to run scheduler again ?
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm

Re: Timed publish stopped working

Postby hansfn » Mon Jun 04, 2012 11:30 am

Yes.
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Timed publish stopped working

Postby razz » Wed Jun 06, 2012 10:30 pm

thank you very much..

working 100% again. :!:
razz
 
Posts: 32
Joined: Thu Jun 30, 2011 9:28 pm


Return to 2.x Support Forum

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron