Crash after 0.43-Update

i just updated from 0.42 to 0.43

the first time i opened piwik after the update everything was ok.
know i want to open it again and i got this error:

Warning: fwrite() expects parameter 1 to be resource, null given in /users/theo/www/piwik/core/Piwik.php on line 999 Backtrace -->#0 Piwik_ErrorHandler(2, fwrite() expects parameter 1 to be resource, null given, /users/theo/www/piwik/core/Piwik.php, 999, Array ([aUrl] => http://api.piwik.org/1.0/getLatestVersion/?piwik_version=0.4.3&php_version=5.3.0&url=http%3A%2F%2Fwww.theo.bplaced.net%2Fpiwik%2F&trigger=,[timeout] => 2,[userAgent] => ,[destinationPath] => ,[followDepth] =>  0,[file] => ,[url] => Array ([scheme] => http,[host] => api.piwik.org,[path] => /1.0/getLatestVersion/,[query] => piwik_version=0.4.3&php_version=5.3.0&url=http%3A%2F%2Fwww.theo.bplaced.net%2Fpiwik%2F&trigger=),[host] => api.piwik.org,[port] => 80,[path] => /1.0/getLatestVersion/?piwik_version=0.4.3&php_version=5.3.0&url=http%3A%2F%2Fwww.theo.bplaced.net%2Fpiwik%2F&trigger=,[errno] => ,[errstr] => ,[fsock] => )) #1 fwrite(, GET /1.0/getLatestVersion/?piwik_version=0.4.3&php_version=5.3.0&url=http%3A%2F%2Fwww.theo.bplaced.net%2Fpiwik%2F&trigger= HTTP/1.0 Host: api.piwik.org User-Agent: Piwik/0.4.3 Referer: http://91.63.160.70/ Connection: close ) called at [/users/theo/www/piwik/core/Piwik.php:999] #2 Piwik::sendHttpRequest(http://api.piwik.org/1.0/getLatestVersion/?piwik_version=0.4.3&php_version=5.3.0&url=http%3A%2F%2Fwww.theo.bplaced.net%2Fpiwik%2F&trigger=, 2) called at [/users/theo/www/piwik/core/UpdateCheck.php:35] #3 Piwik_UpdateCheck::check() called at [/users/theo/www/piwik/core/FrontController.php:237] #4 Piwik_FrontController->init() called at [/users/theo/www/piwik/index.php:64]

???

thanks!

i deleted my config
run the setup
at the end (after step 5 - “super login, password, e-mail,…”) i got the same message.

nobody any ideas?

This was rewritten for 0.4.4…

In the meantime, you can either comment out the update check in core/FrontController.php, or change line 985 of core/Piwik.php to:

if (($fsock = @fsockopen($host, $port, $errno, $errstr, $timeout)) === false || !is_resource($fsock))

ich changed core/piwik.php
know i´get this error:

Error while connecting to: api.piwik.org. Please try again later.
Backtrace:

#0 /users/theo/www/piwik/core/UpdateCheck.php(35): Piwik::sendHttpRequest('http://api.piwi...', 2)
#1 /users/theo/www/piwik/core/FrontController.php(237): Piwik_UpdateCheck::check()
#2 /users/theo/www/piwik/index.php(64): Piwik_FrontController->init()
#3 {main}

which section in frontcontroller.php should i comment out? which lines?

line 237

all i see now is a complete blank page. no error-message. just nothing… style_emoticons/<#EMO_DIR#>/sad.gif

tried this with modified piwik.php and the original.

can you say something about the release-date of 0.44?

You might have to remove cached file in tmp/templates_c/* and clear your browser cache. If that doesn’t work, check your server log file. You shouldn’t be getting a blank page.

-i set up a complete new piwik installation
-same error as i wrote at the beginning
-modified piwik.php and frontcontroller.php
-deleted tmps and cache
-after setup point 5, i got this error

Error while connecting to: api.piwik.org. Please try again later.
Backtrace:

#0 /users/theo/www/piwik/plugins/Installation/Controller.php(290): Piwik::sendHttpRequest('http://api.piwi...', 2)
#1 /users/theo/www/piwik/plugins/Installation/Installation.php(60): Piwik_Installation_Controller->generalSetup()
#2 [internal function]: Piwik_Installation->startInstallation(Object(Piwik_Event_Notification))
#3 /users/theo/www/piwik/libs/Event/Dispatcher.php(213): call_user_func_array(Array, Array)
#4 /users/theo/www/piwik/core/PluginsManager.php(356): Event_Dispatcher->addObserver(Array, 'FrontController...')
#5 /users/theo/www/piwik/core/PluginsManager.php(242): Piwik_PluginsManager->addPluginObservers(Object(Piwik_Installation))
#6 /users/theo/www/piwik/core/PluginsManager.php(157): Piwik_PluginsManager->loadPlugins()
#7 /users/theo/www/piwik/core/FrontController.php(203): Piwik_PluginsManager->setPluginsToLoad(Array)
#8 /users/theo/www/piwik/index.php(64): Piwik_FrontController->init()
#9 {main}

using an old config-file i get a blank page.
my browser-error-console shows nothing
and a server-log-file is not available from my hoster.

mmmmmpf style_emoticons/<#EMO_DIR#>/sad.gif

Since fsockopen is disabled on your system, the best route would be to edit Piwik.php. Insert at the top of the sendHttpRequest function:

return '';

now

Parse error: syntax error, unexpected T_RETURN, expecting T_FUNCTION in /users/theo/www/piwik/core/Piwik.php  on line 947

Fatal error: Class 'Piwik' not found in /users/theo/www/piwik/core/FrontController.php on line 157

line 947 and 948 are looking now like this

    
return '';
static public function sendHttpRequest($aUrl, $timeout, $userAgent = null, $destinationPath = null, $followDepth = 0)

correct?

Try this:

static public function sendHttpRequest($aUrl, $timeout, $userAgent = null, $destinationPath = null, $followDepth = 0)
{
    return '';

empty page…

if you could say: “just wait a few days/a week and 0.44 will be released” we could stop this and I´ll wait…

End of next week.

when 0.44 is working it is totally ok style_emoticons/<#EMO_DIR#>/wink.gif

and thanks a lot!

Piwik 0.4.4 just released.