Fatal error: Maximum execution time of 30 seconds exceeded in

45 views
Skip to first unread message

Storm

unread,
Aug 6, 2008, 9:03:27 AM8/6/08
to WP Skype Online Status
I get the following message when clicking on Skype Status...

I have Wordpress 2.6 on Windows installed

Fatal error: Maximum execution time of 30 seconds exceeded in C:
\Inetpub\vhosts\earthcore.co.za\subdomains\intranet\httpdocs\wp-content
\plugins\skype-online-status\skype-functions.php on line 65

Fatal error: Maximum execution time of 30 seconds exceeded in C:
\Inetpub\vhosts\earthcore.co.za\subdomains\intranet\httpdocs\wp-
includes\wp-db.php on line 359

Any help in the matter will be greatly appreciated...

Storm

R.A. van Hagen

unread,
Aug 6, 2008, 11:02:53 PM8/6/08
to wp-skype-on...@googlegroups.com
Hi Storm,

Can you give me the version number of the plugin?

It looks like there is a time-out happening when reading online status from the Skype server. I have no idea how to fix this for Windows machines but you might settle for disabling the online status check ? If you choose a theme with online status depicted by the image, you are still show your status (except to visually impaired visitors) on your blog.

You can set the option "Use Status text for the {status} tag?" to "No" on the Skype Status options page. But if the error is causing the options page to break, you can do the following.

Open the file plugins/skype-online-status/skype-status.php in a simple text editor like Notepad (avoid the use of Wordpad, never use MS Word !) and scroll down to the lines (depending on version, for version 2.6.2.9 around line 120) that look like this:

// Checks wether fopen_wrappers are enabled on your server so the remote Skype status file can be read
// Comment-out (with //) the if..else statements if you want to force this setting in spite of server settings
if (ini_get('allow_url_fopen'))
    define('SOSALLOWURLFOPEN', TRUE);
else
    define('SOSALLOWURLFOPEN', FALSE);

Now put // marks in front of the 3rd, 4th and 5th line, leaving only the last one without // so it looks like this:

// Checks wether fopen_wrappers are enabled on your server so the remote Skype status file can be read
// Comment-out (with //) the if..else statements if you want to force this setting in spite of server settings
//if (ini_get('allow_url_fopen'))
//    define('SOSALLOWURLFOPEN', TRUE);
//else
    define('SOSALLOWURLFOPEN', FALSE);

Save the file and re-upload to the server. Now the call to the Skype server will be skipped and hopefully, the fatal error too...

--ravan


Op woensdag 06-08-2008 om 06:03 uur [tijdzone -0700], schreef Storm:

Storm van der Merwe

unread,
Aug 7, 2008, 6:04:21 AM8/7/08
to wp-skype-on...@googlegroups.com
Hi Ravan,

Thank you for your speedy reply. I am using version 2.6.3.0

Commenting out the code allowed me to get to the Skype Status page and I am now getting the following message:

We have detected that your server settings might prevent this plugin from reading your online status correctly! Please check if your server INI settings allow_url_fopen is set to ON or ask your server admin / hosting provider to take care of this.

I will look into this...

Storm

R.A. van Hagen

unread,
Aug 7, 2008, 9:03:20 PM8/7/08
to wp-skype-on...@googlegroups.com
Hi Storm,

The message is caused by forcing the SOSALLOWURLFOPEN value to FALSE. You can work with the plugin just the same, only some advanced options are now unavailable. Those options are related to the checking of you online status, but since that caused the initial error, you are better off this way.

Let me know what you provider responds to the allow_url_fopen setting. I will be curious to know how this works on a Windows server.

Thanks,
RavanH



Op donderdag 07-08-2008 om 12:04 uur [tijdzone +0200], schreef Storm van der Merwe:

Storm van der Merwe

unread,
Aug 8, 2008, 8:12:32 AM8/8/08
to wp-skype-on...@googlegroups.com, j...@earthcore.co.za
Hi RavanH,

Thank you for your message.

I ran phpinfo() and the value allow_url_fopen is set to On - http://intranet.earthcore.co.za/phpinfo.php

Is there anything else I should check?

Storm

R.A. van Hagen

unread,
Aug 8, 2008, 10:01:47 AM8/8/08
to wp-skype-on...@googlegroups.com
Hi Storm,

Hmmm, yes, if allow_url_fopen was set to Off (or missing) the Skype plugin would have detected that and automatically switched the remote server checking off... You would never have seen the error ;)

I am still interested in this error so I might write a solution for it in the next version. So if your server admin can tell you anything about the error, please let me know. The error

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\vhosts\earthcore.co.za\subdomains\intranet\httpdocs\wp-content\plugins\skype-online-status\skype-functions.php on line 65

is caused by the command

file_get_contents('http://mystatus.skype.com/'.$skypeid.$format);

where $skypeid is your Skype ID and $format is either .txt or .num ... In both cases, the page returned is a webpage you can access though your normal browser too. Try it ;)

Can your server admin tell what is wrong for Windows with that line? Is it the forward slashes // ? What I am wondering is why the function file_get_contents is (1) timing out and (2) causing the server to throw out this ugly error instead of just returning FALSE on the command...

I will try to look into it but I have no way of testing. Can I call on you in the (near)  future for testing a possible fix ? If I find the time to work in it, that is...

--RavanH



Op vrijdag 08-08-2008 om 14:12 uur [tijdzone +0200], schreef Storm van der Merwe:

RavanH

unread,
Aug 8, 2008, 10:54:21 AM8/8/08
to WP Skype Online Status
In fact, would you be so kind to download and try this version
http://downloads.wordpress.org/plugin/skype-online-status.2.6.3.1.zip

I have just committed this version to SVN. It has a routine to use
cURL when available (as on your server) and it might circumvent the
error. The file should be online any minute now...

Storm van der Merwe

unread,
Aug 15, 2008, 9:45:09 AM8/15/08
to wp-skype-on...@googlegroups.com
Hi RavanH

I have installed the newer version 2.6.3.2 and get the following errors

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\vhosts\earthcore.co.za\subdomains\intranet\httpdocs\wp-content\plugins\skype-online-status\skype-functions.php on line 245

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\vhosts\earthcore.co.za\subdomains\intranet\httpdocs\wp-includes\wp-db.php on line 359

Regards,
Storm

RavanH

unread,
Aug 19, 2008, 6:02:25 PM8/19/08
to WP Skype Online Status
Hmmm, I was hoping that using the alternatively installed cURL to read
the remote status file would circumvent the time-out error. But sadly
that is not the case. I do not know why this is happening so if you
can find out anything more from your server admin about this, please
let me know.

I will be grateful for any info so I might try to fix this for you
(and possibly others) but so far I am sorry to say, I cannot help you
with this :(

If I run into any solutions and am able to fix it, I will post here.
In the mean time, I suggest to disable the status checker function as
described in one of the above replies.

Thanks,
---ravan

On 15 aug, 15:45, "Storm van der Merwe" <storm...@gmail.com> wrote:
> Hi RavanH
>
> I have installed the newer version 2.6.3.2 and get the following errors
>
> *Fatal error*: Maximum execution time of 30 seconds exceeded in *
> C:\Inetpub\vhosts\earthcore.co.za
> \subdomains\intranet\httpdocs\wp-content\plugins\skype-online-status\skype-functions.php
> * on line *245*
>
> *Fatal error*: Maximum execution time of 30 seconds exceeded in *
> C:\Inetpub\vhosts\earthcore.co.za
> \subdomains\intranet\httpdocs\wp-includes\wp-db.php* on line *359
> *
> Regards,
> Storm*
> *
Reply all
Reply to author
Forward
Message has been deleted
0 new messages