This reactivates the report made 4 yrs 6 mos ago that was closed.
The latest version, 0.19, still conflicts with Events Calendar (and all other time related plugins) correct display of dates/times due to THIS plugin’s manipulation of the site time zone setting.
Here is a fix:
SELECT AND DELETE LINES 96 – 102 in front-page-scheduler.php
INSERT THE FOLLOWING ON LINE 96
// if ( $tz = get_option( 'timezone_string' ) ); date_default_timezone_set( $tz );
// This conditional BREAKS time calcs in all other plugins, causing times to be displayed with a UTC
// offset from current time zone, BUT commenting this line out breaks THIS plugin, so
// we need to save the current TZ, let this plug do it's time calcs, then restore
// the original TZ.
//
// ************ MOD: ****************
// Try a new way: Read comments
if ($tz = get_option('timezone_string')) { // get WP TZ. If set
$tztemp = date('e'); // save current server TZ
date_default_timezone_set($tz); // set TZ to WP TZ
}
// ************ END *****************
// get the current time
$tnow = intval( date( 'Hi' ) ); // 24-hr with leading zeros: 08:05
// get the week day (today)
$twday = intval( date( 'w' ) ) + 1;
// get the week day (yesterday)
$twyes = ( ( $twday + 6 ) % 8 ) + 1;
// ************ MOD: Set TZ back to original *************
date_default_timezone_set($tztemp);
// ************ END *****************
]]>
After saving a new rule, the website will break and show the following error in the logs:
PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /data/sites/web/{website-name}/wp-content/plugins/front-page-scheduler/front-page-scheduler.php:177
I tried digging in a bit myself, without much success. Any idea how I can fix this?
According to the server logs, there is an error on the front-page-scheduler plugin :
‘PHP message: PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /NAS2/vhosts/WH17111/thhshop.eu/public_www/wp-content/plugins/front-page-scheduler/front-page-scheduler.php
This shuts doen access to ~Wordpress platform until it has been disabled through FTP renaming of plugin
]]>So I’ve set my time zone and set the front page. When I add a rule for the alternate front page (I’ve set the time at 30 minutes from now- 13:00) and select the day of week (today). I’ve left “Stop at” empty but also tried with a 23:00 value.
When I save, the front page is immediately switched to the alternate.
What am I doing wrong?
Thanks for your help!
]]>Warning: This plugin has not been tested with your current version of WordPress.
hi guys,
is ur plugin compatible with the current WP version?
Please advise
thank you!
]]>I am trying to get the pages to change on specific days for the whole day. I entered 00:00 for start and 24:00 for end but the changes did not take place. Is there a different format for the start and end times if I want to have the switch for a whole day? An all day selector would be nice, unless it is already the default behavior. Thanks.
]]>Heyho,
is it possible that it’ll change every week. i’ll create home-1, home-2, home3,— and it will automatically change to the next number?
thanks
]]>hi , i need refresh after page load, because if you are in the front-page, it don’t change
]]>Hi Guys, and thank you for a great little nifty plugin.
I have a suggestion that I know will likely be somewhat tricky to do coding wise, but that I think would greatly increase the use cases of the plugin:
To be able to specify start/end dates and times in rules.
For instance: that would make it super easy to add a different home page for vacations, or for Christmas greetings (Hello snowflake-effects!), or Valentine Day Messages, or 4th of July celebrations, or… you get it! ??
I think adding a time and date option for both start and end points would be awesome!
]]>Dear support,
I installed the plugin (very good idea) but is not working.
It is not considering the rules in the plugin.
It is using just the default home page
I set a different page for every day of the week.
Tryide php 7.1 and 7.3 but didn’t work.
I having no error in php log and no error in chrome console
I have wordpress 5.3.2
this is a screenshot of the settings: https://nimb.ws/iTSbKC
Any idea on how to investigate ?
]]>Hey,
The Front Page Scheduler is causing The Events Calendar to ignore all WordPress timezone settings. I went through the plugin code and removed the line that sets the timezone. Removing this line fixed The Events Calendar but caused The Front Page Scheduler plugin to stop working. Just thought you guys might want to know.
Thanks!
]]>Hi!
I really like this plugin, thank you for developing this! I do have one suggestion though… I’d like to use this plugin too to show different homepage per week/month. So for example, I’ve created 12 different homepages based on theme’s throughout the year. I’d like to show these automatically each month and probably per week as well, depending on what holiday is active during a specific week.
Is this something you guys can add?
]]>Hello,
as said in this post, when I activate the plugin I get the following error on the front end:
Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home/gosrl/webapps/wptestletter/wp-content/plugins/front-page-scheduler/front-page-scheduler.php on line 62
Thank you
]]>Hello,
When I am installing this plugin on our site. It’s breaking our website and showing this error: https://prntscr.com/giasx0
Warning: array_key_exists() expects parameter 2 to be array, boolean given in /home1/newsince/public_html/wp-content/plugins/front-page-scheduler/front-page-scheduler.php on line 62
please take a look at this. I appreciate your effort on this plugin. Hope you will keep this plugin useful updating this.
Thanks.
]]>Hello,
Could you be induced to expand this plugin to have it apply specifically by day or tie into a calendar?
Thanks!
https://www.ads-software.com/extend/plugins/front-page-scheduler/
]]>chuld this plugin backend options Add to the admin menu no behind the reading?i want it to be independently.how can i come true?
https://www.ads-software.com/extend/plugins/front-page-scheduler/
]]>