I encountered this error when installing fresh new dokuwiki.
i am using the 'dokuwiki-2012-01-25a' version. after installation, everything
seemed nice except when i (as admin) tried to log in. after login everything went
white. it simply died!!FATAL ERROR
i trace the codes and discovered that 'checkUpdateMessages doku.php:82 ' is the one
that causes this! this function tries to get information about newer version
but when it is the newest version, it fails somehow! when i change the function to
look for older version's update, everything went back to normal.
//$data = $http->get(DOKU_MESSAGEURL.$updateVersion);
$data = $http->get('http://update.dokuwiki.org/check/36');
so i dig more in the code and find out what actually causes the problem.
inc/HTTPClient.php:339 > if(@stream_select($sel_r,$sel_w,$sel_e,1) === false)
the code fails when $sel_r is NULL which was my case!
i add a simple if statement for when $sel_r is not NULL, and it worked (but i don't
know exactly what this function does!)
if($sel_r) if(@stream_select($sel_r,$sel_w,$sel_e,1) === false)
It doesn't make much sense that checking a different version should make any difference at that particular line of code.
Can you give a bit more details? What Server, OS, PHP version are you running on?
Can you reliably reproduce the error?
If you can reproduce it, can you remove the @ from @stream_select and see if you get any error messages in the browser or your error logs?
sorry for long pause! Holidays :)
here is the information you asked about:
PHP ver: 5.2.17
Server : Linux 2.6.18-274.17.1.el5PAE
Error : Warning: stream_select() has been disabled for security reasons in /home/mlug/public_html/wikid/inc/HTTPClient.php on line 345
There you go. Your hoster crippled your installation. Ask them to reenable the function and ask what else they disabled. If they don't comply, get a better hoster.
OK you are Right,
thank you for your kind consideration.