Wordpress: Scheduler page waits 1 minute before page loads


a very strange behaviour has occurred on one site of mine that uses the scheduler wordpress plugin.

When you load the page it waits exactly 1 minute saying. See here:

and see attached image.

  • This used to work before.
  • I did not do any Wordpress updates (I did one now but no change)
  • I am using the latest version of the plugin
  • All other pages loads as normal

Any idea what is going on?


Hm… it looks like there is sleep call in plugin php code. Really weird issue.
Try to open dhtmlxSchedulerConfigurator.php file and find method schedulerInit, modify it like:

public function schedulerInit($usertype, $locale, $url, $loader_url, $scheduler_id) {
    return "scheduler is here";

Does it load page quickly after that?

Yes! then the page loads with normal speed.

We have found that this call in dhtmlxSchedulerConfigurator.php generates the time out:

@$include_content = file_get_contents($url.$this->scheduler_include_file);

after this call the page waits for 1 minute.

any ideas?


I have hack fixed it by setting:

@$include_content = false; 

and commenting out the call to file_get_contents().

What is the purpose of the include file anyway?: wp-content/plugins/event-calendar-scheduler/scheduler_include.html


this file is used for scheduler config customization.
For example you like to configure option which is not provided in admin panel but may be used in scheduler.
So you may add into scheduler_include.html file the follow code:

scheduler.config.full_day = true;

This code will be included before scheduler initialization and config will be used.


and any info on the main question?

Why, file_get_contents() times out?

  • the host server is running php 5.2.6-1.

it seems that something is different in php configuration.
Try to replace file in dhtmlxSchedulerConfigurator.php the follow line:

@$include_content = file_get_contents(__DIR__.$this->scheduler_include_file);

with the next one:

$include_content = file_get_contents(__DIR__.$this->scheduler_include_file);

After that load scheduler. Does any warning occur?