jaidev
January 17, 2012, 7:14pm
#1
Hi,
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:
dharmamountain.com/scheduler/
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?
Regards,
JaiDesign
radyno
January 18, 2012, 9:11am
#2
Hello.
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?
jaidev
January 18, 2012, 10:56am
#3
Yes! then the page loads with normal speed.
jaidev
January 18, 2012, 11:23am
#4
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?
Regards.
jaidev
January 18, 2012, 2:43pm
#5
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
regards
radyno
January 19, 2012, 8:21am
#6
Hi,
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:
<script>
scheduler.config.full_day = true;
</script>
This code will be included before scheduler initialization and config will be used.
jaidev
January 21, 2012, 8:00am
#7
Hi,
and any info on the main question?
Why, file_get_contents() times out?
the host server is running php 5.2.6-1.
radyno
January 23, 2012, 9:07am
#8
Hi,
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?