Blank page after 0.4.4 update


(danodemano) #1

I just updated to 0.4.4 (from 0.4.3) this morning and it said that everything completed without error but now when I go to the login page, it’s simply a blank white page. I have tried clearing out my browser cache and tried to access it from multiple machines, including the server, but I get nothing but this blank page. There is no error displayed nor is there anything logged to the php error log. If I do a “php index.php” on the server I DO actually see the HTML of the login page which is really strange. I suspect this may have something to do with the fact that I am running this under Windows Server 2k3 and ISS. My PHP version is 5.2.11 and MySQL version is 5.1.39. I have the mysqli, pdo, and pdo_mysql extensions enabled and according to the phpinfo page, they are up and running. Any help you could offer would be appreciated. Thanks!

Dan


(zeroathome) #2

Absolutely the same behaviour here. Except, that I got this error message after upgrading from 0.4.3 to 0.4.4

Notice: Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH' in /var/www/servers/stats.firefly-it.de/htdocs/core/View.php on line 44 Backtrace -->#0 Piwik_ErrorHandler(8, Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH', /var/www/servers/stats.firefly-it.de/htdocs/core/View.php, 44, Array ([templateFile] => CoreUpdater/templates/update_one_click_done.tpl,[smConf] => Zend_Config Object ([] => 1,[] => 6,[] => 6,[] => Array ([template_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 3,[] => Array ([0] => plugins,[1] => themes/default,[2] => themes),[] => ,[] => Array ()),[plugins_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 2,[] => Array ([0] => core/SmartyPlugins,[1] => libs/Smarty/plugins),[] => ,[] => Array ()),[compile_dir] => tmp/templates_c,[cache_dir] => tmp/cache,[error_reporting] => 6143,[debugging] => 1),[] => ,[] => Array ()),[filter] => 1,[value] => 1,[key] => debugging)) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/View.php:44] #1 Piwik_View->__construct(CoreUpdater/templates/update_one_click_done.tpl) called at [/var/www/servers/stats.firefly-it.de/htdocs/plugins/CoreUpdater/Controller.php:62] #2 Piwik_CoreUpdater_Controller->oneClickUpdate() #3 call_user_func_array(Array ([0] => Piwik_CoreUpdater_Controller Object ([] => ,[] => Array (),[] => Array (),[] => Array (),[] => CoreUpdater,[] => 2009-10-20,[] => Piwik_Date Object ([] => 1255996800),[] => Array ([label] => General_ColumnLabel,[nb_visits] => General_ColumnNbVisits,[nb_actions] => General_ColumnNbActions,[max_actions] => General_ColumnMaxActions,[sum_visit_length] => General_ColumnSumVisitLength,[nb_uniq_visitors] => General_ColumnNbUniqVisitors,[nb_actions_per_visit] => General_ColumnActionsPerVisit,[avg_time_on_site] => General_ColumnAvgTimeOnSite,[bounce_rate] => General_ColumnBounceRate,[revenue_per_visit] => General_ColumnValuePerVisit,[goals_conversion_rate] => General_ColumnVisitsWithConversions),[pathPiwikZip] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/latest.zip,[pathRootExtractedPiwik] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/piwik),[1] => oneClickUpdate), Array ()) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/FrontController.php:122] #4 Piwik_FrontController->dispatch() called at [/var/www/servers/stats.firefly-it.de/htdocs/index.php:65] Notice: Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH' in /var/www/servers/stats.firefly-it.de/htdocs/core/View.php on line 50 Backtrace -->#0 Piwik_ErrorHandler(8, Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH', /var/www/servers/stats.firefly-it.de/htdocs/core/View.php, 50, Array ([templateFile] => CoreUpdater/templates/update_one_click_done.tpl,[smConf] => Zend_Config Object ([] => 1,[] => 6,[] => 6,[] => Array ([template_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 3,[] => Array ([0] => plugins,[1] => themes/default,[2] => themes),[] => ,[] => Array ()),[plugins_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 2,[] => Array ([0] => core/SmartyPlugins,[1] => libs/Smarty/plugins),[] => ,[] => Array ()),[compile_dir] => tmp/templates_c,[cache_dir] => tmp/cache,[error_reporting] => 6143,[debugging] => 1),[] => ,[] => Array ()),[filter] => 1,[value] => 1,[key] => debugging)) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/View.php:50] #1 Piwik_View->__construct(CoreUpdater/templates/update_one_click_done.tpl) called at [/var/www/servers/stats.firefly-it.de/htdocs/plugins/CoreUpdater/Controller.php:62] #2 Piwik_CoreUpdater_Controller->oneClickUpdate() #3 call_user_func_array(Array ([0] => Piwik_CoreUpdater_Controller Object ([] => ,[] => Array (),[] => Array (),[] => Array (),[] => CoreUpdater,[] => 2009-10-20,[] => Piwik_Date Object ([] => 1255996800),[] => Array ([label] => General_ColumnLabel,[nb_visits] => General_ColumnNbVisits,[nb_actions] => General_ColumnNbActions,[max_actions] => General_ColumnMaxActions,[sum_visit_length] => General_ColumnSumVisitLength,[nb_uniq_visitors] => General_ColumnNbUniqVisitors,[nb_actions_per_visit] => General_ColumnActionsPerVisit,[avg_time_on_site] => General_ColumnAvgTimeOnSite,[bounce_rate] => General_ColumnBounceRate,[revenue_per_visit] => General_ColumnValuePerVisit,[goals_conversion_rate] => General_ColumnVisitsWithConversions),[pathPiwikZip] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/latest.zip,[pathRootExtractedPiwik] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/piwik),[1] => oneClickUpdate), Array ()) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/FrontController.php:122] #4 Piwik_FrontController->dispatch() called at [/var/www/servers/stats.firefly-it.de/htdocs/index.php:65] Notice: Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH' in /var/www/servers/stats.firefly-it.de/htdocs/core/View.php on line 53 Backtrace -->#0 Piwik_ErrorHandler(8, Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH', /var/www/servers/stats.firefly-it.de/htdocs/core/View.php, 53, Array ([templateFile] => CoreUpdater/templates/update_one_click_done.tpl,[smConf] => Zend_Config Object ([] => 1,[] => 6,[] => 6,[] => Array ([template_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 3,[] => Array ([0] => plugins,[1] => themes/default,[2] => themes),[] => ,[] => Array ()),[plugins_dir] => Zend_Config Object ([] => 1,[] => 0,[] => 2,[] => Array ([0] => core/SmartyPlugins,[1] => libs/Smarty/plugins),[] => ,[] => Array ()),[compile_dir] => tmp/templates_c,[cache_dir] => tmp/cache,[error_reporting] => 6143,[debugging] => 1),[] => ,[] => Array ()),[filter] => 1,[value] => 1,[key] => debugging)) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/View.php:53] #1 Piwik_View->__construct(CoreUpdater/templates/update_one_click_done.tpl) called at [/var/www/servers/stats.firefly-it.de/htdocs/plugins/CoreUpdater/Controller.php:62] #2 Piwik_CoreUpdater_Controller->oneClickUpdate() #3 call_user_func_array(Array ([0] => Piwik_CoreUpdater_Controller Object ([] => ,[] => Array (),[] => Array (),[] => Array (),[] => CoreUpdater,[] => 2009-10-20,[] => Piwik_Date Object ([] => 1255996800),[] => Array ([label] => General_ColumnLabel,[nb_visits] => General_ColumnNbVisits,[nb_actions] => General_ColumnNbActions,[max_actions] => General_ColumnMaxActions,[sum_visit_length] => General_ColumnSumVisitLength,[nb_uniq_visitors] => General_ColumnNbUniqVisitors,[nb_actions_per_visit] => General_ColumnActionsPerVisit,[avg_time_on_site] => General_ColumnAvgTimeOnSite,[bounce_rate] => General_ColumnBounceRate,[revenue_per_visit] => General_ColumnValuePerVisit,[goals_conversion_rate] => General_ColumnVisitsWithConversions),[pathPiwikZip] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/latest.zip,[pathRootExtractedPiwik] => /var/www/servers/stats.firefly-it.de/htdocs/tmp/latest/piwik),[1] => oneClickUpdate), Array ()) called at [/var/www/servers/stats.firefly-it.de/htdocs/core/FrontController.php:122] #4 Piwik_FrontController->dispatch() called at [/var/www/servers/stats.firefly-it.de/htdocs/index.php:65] unable to read resource: "CoreUpdater/templates/update_one_click_done.tpl"

After that nothing but a blank page. php index.php gives me the right html output, but nothing when accessing via the webserver.

Using lighttpd 1.4.x, reverting to 0.4.3 works with the same tables…


(vipsoft) #3

If your tmp/latest folder contains a piwik folder, it’s an indicator that the auto-update did not complete successfully. (Please check your max_execution_time in php.ini.)

Either copy tmp/latest/piwik to your root piwik folder, or download latest.zip and extract. If you re-run the installer, select “reuse existing tables”.


(danodemano) #4

[quote=vipsoft @ Oct 21 2009, 03:18 PM]If your tmp/latest folder contains a piwik folder, it’s an indicator that the auto-update did not complete successfully. (Please check your max_execution_time in php.ini.)

Either copy tmp/latest/piwik to your root piwik folder, or download latest.zip and extract. If you re-run the installer, select “reuse existing tables”.[/quote]

If I attempt to re-install, it says that I don’t have PDO, PDO_MYSQL, or MYSQLI even though all are enabled and show up when I do a phpinfo(). There is no piwik folder in the tmp/latest and I already tried replacing all the files manually. Max execution time is 120 seconds.


(vipsoft) #5

Dan: sorry, your topic was hijacked.

I’m on the road right now, so I can’t investigate further until I get back to the office, but I do have questions because we tested Piwik on PHP 5.2.11 and IIS to deploy Piwik over Microsoft’s Web Application Gallery.

Have you changed your php configuration to harden your server? (eg disable_functions)

Do you have a custom web.config file that conflicts with the one in the piwik doc root?


(danodemano) #6

[quote=vipsoft @ Oct 21 2009, 03:57 PM]Dan: sorry, your topic was hijacked.

I’m on the road right now, so I can’t investigate further until I get back to the office, but I do have questions because we tested Piwik on PHP 5.2.11 and IIS to deploy Piwik over Microsoft’s Web Application Gallery.

Have you changed your php configuration to harden your server? (eg disable_functions)

Do you have a custom web.config file that conflicts with the one in the piwik doc root?[/quote]

It wasn’t really, he was/is having the same problem.

I have not hardened the server at all, at least not intentionally. The only things I have changed are the memory limits, execution time, logging, and extensions.

No, I do not have a custom web.config file. In fact, before I updated piwik there was no web.config in the piwik folder.


(vipsoft) #7

Dan: can you pm your phpinfo to me? (edit anything you consider sensitive info)


(danodemano) #8

Just sent it.
Thanks,
Dan


(Slithers) #9

i am having the exact same problem.
running on lighttpd, too.


(sdl) #10

Same problem here when updating. I reuploaded 0.4.4 manualy and tryed to reinstall but i still only get a blank page. I cant go back to 0.4.3 because it told me when i updated that it was updating the DB from 0.4.3 to 0.4.4, errrrrrrrrr i should have known to wait to update.


(vipsoft) #11

Ok, everyone except Dan: if the backtrace shows update_one_click_done.tpl then the update is essentially done. You’ll just have to clear tmp/templates_c/* manually.


(sdl) #12

no go for me. Removed everything in that folder except for the htaccess file and i still get a blank page. The cache and the latest folder are both empty as well.


(vipsoft) #13

Try removing these lines from core/FrontController.php:

                if(isset($_SERVER['PATH_INFO']))
                { 
                                return; 
                }

(danodemano) #14

[quote=vipsoft @ Oct 22 2009, 12:04 AM]Try removing these lines from core/FrontController.php:

                if(isset($_SERVER['PATH_INFO']))
                { 
                                return; 
                }

[/quote]

Is this directed at me or everyone else? At this point I’m not longer sure… :confused:


(vipsoft) #15

That would be everyone.


(zeroathome) #16

[quote=vipsoft @ Oct 22 2009, 12:04 AM]Try removing these lines from core/FrontController.php:

                if(isset($_SERVER['PATH_INFO']))
                { 
                                return; 
                }

[/quote]

That did the trick after all, tried removing “tmp/templates_c/*” before, which didn’t work…

Thanks for digging into it.

One last question: Can this be fixed by any php.ini or webserver configuration setting?


(danodemano) #17

That fixed it for me as well, thanks!!!


(vipsoft) #18

It’ll be patched in the next release.


(sdl) #19

Thank you sir. This fixed it for me as well.


(vipsoft) #20

Thanks for verifying the fix.

We’ve pushed 0.4.5. If Piwik is now working for you, then you’re in no immediate need to update.