Errors/backtrace


#1

Notice: Undefined property: Piwik_Log_APICall::$_writers in D:\inetpub\wwwroot\piwik\libs\Zend\Log.php on line 331

Backtrace -->
#0 Piwik_ErrorHandler(8, 1 => ‘Undefined property: Piwik_Log_APICall::$_writers’, 2 => ‘D:\inetpub\wwwroot\piwik\libs\Zend\Log.php’, 3 => 331, 4 => array ()) called at [D:\inetpub\wwwroot\piwik\libs\Zend\Log.php:331]#1 Zend_Log->__destruct(array () called at [:]


There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: Invalid argument supplied for foreach() in D:\inetpub\wwwroot\piwik\libs\Zend\Log.php on line 331

Backtrace -->
#0 Piwik_ErrorHandler(2, 1 => ‘Invalid argument supplied for foreach()’, 2 => ‘D:\inetpub\wwwroot\piwik\libs\Zend\Log.php’, 3 => 331, 4 => array ()) called at [D:\inetpub\wwwroot\piwik\libs\Zend\Log.php:331]#1 Zend_Log->__destruct(array () called at [:]


(vipsoft) #2

What Piwik and PHP versions?


#3

PHP Version 5.2.8 / FastCGI / Windows IIS 6
Piwik Version 1.5


(vipsoft) #4

Sorry, I’m unable to reproduce this on my Linux devbox, and the oldest php version I have on Windows IIS is 5.2.14.

Please try updating to a newer PHP version. I’m guessing it’s a winphp bug.

Looking at the Zend Framework code, it shouldn’t fail like that because _writers is a protected data member – hence visible to its subclasses – yet isn’t redeclared anywhere.


(vipsoft) #5

Can you use the latest files in:

See if that changes anything.


#6

I’ve modified the files to the ones that Anthon posted.

Yielded the following results:



( ! ) Fatal error: Class 'Piwik_Session_SaveHandler_DbTable' not found in D:\inetpub\wwwroot\piwik\core\Session.php on line 69
Call Stack
#	Time	Memory	Function	Location
1	0.0363	129216	{main}( )	..\index.php:0
2	0.1686	298528	Piwik_FrontController->init( )	..\index.php:52
3	1.4089	2285488	Piwik_Session::start( )	..\FrontController.php:267
Variables in local scope (#3)

$config =

	

array
  'name' => string 'piwik_session' (length=13)
  'primary' => string 'id' (length=2)
  'modifiedColumn' => string 'modified' (length=8)
  'dataColumn' => string 'data' (length=4)
  'lifetimeColumn' => string 'lifetime' (length=8)
  'db' => 
    object(Piwik_Db_Adapter_Mysqli)[89]
      protected '_numericDataTypes' => 
        array
          0 => int 0
          1 => int 1
          2 => int 2
          'INT' => int 0
          'INTEGER' => int 0
          'MEDIUMINT' => int 0
          'SMALLINT' => int 0
          'TINYINT' => int 0
          'BIGINT' => int 1
          'SERIAL' => int 1
          'DEC' => int 2
          'DECIMAL' => int 2
          'DOUBLE' => int 2
          'DOUBLE PRECISION' => int 2
          'FIXED' => int 2
          'FLOAT' => int 2
      protected '_stmt' => 
        object(Zend_Db_Statement_Mysqli)[117]
          protected '_keys' => 
            array
              ...
          protected '_values' => 
            array
              ...
          protected '_meta' => 
            object(mysqli_result)[111]
              ...
          protected '_stmt' => 
            object(mysqli_stmt)[114]
              ...
          protected '_adapter' => 
            &object(Piwik_Db_Adapter_Mysqli)[89]
          protected '_fetchMode' => int 2
          protected '_attribute' => 
            array
              ...
          protected '_bindColumn' => 
            array
              ...
          protected '_bindParam' => 
            array
              ...
          protected '_sqlSplit' => 
            array
              ...
          protected '_sqlParam' => 
            array
              ...
          protected '_queryId' => null
      protected '_defaultStmtClass' => string 'Zend_Db_Statement_Mysqli' (length=24)
      protected '_config' => 
        array
          empty
      protected '_fetchMode' => int 2
      protected '_profiler' => 
        object(Zend_Db_Profiler)[90]
          protected '_queryProfiles' => 
            array
              ...
          protected '_enabled' => boolean false
          protected '_filterElapsedSecs' => null
          protected '_filterTypes' => null
      protected '_defaultProfilerClass' => string 'Zend_Db_Profiler' (length=16)
      protected '_connection' => 
        object(mysqli)[91]
      protected '_caseFolding' => int 0
      protected '_autoQuoteIdentifiers' => boolean true
      protected '_allowSerialization' => boolean true
      protected '_autoReconnectOnUnserialize' => boolean false

$currentSaveHandler =

	

string 'files' (length=5)

$db =

	

object(Piwik_Db_Adapter_Mysqli)[89]
  protected '_numericDataTypes' => 
    array
      0 => int 0
      1 => int 1
      2 => int 2
      'INT' => int 0
      'INTEGER' => int 0
      'MEDIUMINT' => int 0
      'SMALLINT' => int 0
      'TINYINT' => int 0
      'BIGINT' => int 1
      'SERIAL' => int 1
      'DEC' => int 2
      'DECIMAL' => int 2
      'DOUBLE' => int 2
      'DOUBLE PRECISION' => int 2
      'FIXED' => int 2
      'FLOAT' => int 2
  protected '_stmt' => 
    object(Zend_Db_Statement_Mysqli)[117]
      protected '_keys' => 
        array
          0 => string 'language' (length=8)
      protected '_values' => 
        array
          0 => &null
      protected '_meta' => 
        object(mysqli_result)[111]
      protected '_stmt' => 
        object(mysqli_stmt)[114]
      protected '_adapter' => 
        &object(Piwik_Db_Adapter_Mysqli)[89]
      protected '_fetchMode' => int 2
      protected '_attribute' => 
        array
          empty
      protected '_bindColumn' => 
        array
          empty
      protected '_bindParam' => 
        array
          empty
      protected '_sqlSplit' => 
        array
          0 => string 'SELECT language FROM piwik_user_language WHERE login = ' (length=55)
          1 => string '?' (length=1)
          2 => string ' ' (length=1)
      protected '_sqlParam' => 
        array
          0 => string 'SELECT language FROM piwik_user_language WHERE login = ' (length=55)
          1 => string '?' (length=1)
          2 => string ' ' (length=1)
      protected '_queryId' => null
  protected '_defaultStmtClass' => string 'Zend_Db_Statement_Mysqli' (length=24)
  protected '_config' => 
    array
      empty
  protected '_fetchMode' => int 2
  protected '_profiler' => 
    object(Zend_Db_Profiler)[90]
      protected '_queryProfiles' => 
        array
          empty
      protected '_enabled' => boolean false
      protected '_filterElapsedSecs' => null
      protected '_filterTypes' => null
  protected '_defaultProfilerClass' => string 'Zend_Db_Profiler' (length=16)
  protected '_connection' => 
    object(mysqli)[91]
  protected '_caseFolding' => int 0
  protected '_autoQuoteIdentifiers' => boolean true
  protected '_allowSerialization' => boolean true
  protected '_autoReconnectOnUnserialize' => boolean false

$e	Undefined
$saveHandler	Undefined

$sessionName =

	

string 'PIWIK_SESSID' (length=12)




(vipsoft) #7

core/Piwik/Session/SaveHandler/DbTable.php is a new file. Use the nightly build at http://qa.piwik.org:8080/nightly/


#8

Anton,

Changed the files to the nightly. Was able to get past the login screen, but takes several minutes to return the dashboard page, and all other pages.

On the dashboard page there are no websites listed.

Any further ideas?


(vipsoft) #9

We expect a delay on the initial signin because Piwik is re-merging/minifying static assets (javascript and css). But several minutes and delays on other pages is unusual. Can you check the web server logs? It sounds like the minification is not completing.


(raj) #10

I got the following error: Pls help me to solve this error.

There is an error. Please report the message (Piwik 2.0.3) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined offset: 4 in E:\piwik\core\DataArray.php on line 109

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [E:\piwik\core\DataArray.php:109]
#1 Piwik\DataArray->doSumVisitsMetrics(…) called at [E:\piwik\core\DataArray.php:54]
#2 Piwik\DataArray->sumMetricsVisits(…) called at [E:\piwik\plugins\CustomVariables\Archiver.php:105]
#3 Piwik\Plugins\CustomVariables\Archiver->aggregateFromVisits(…) called at [E:\piwik\plugins\CustomVariables\Archiver.php:77]
#4 Piwik\Plugins\CustomVariables\Archiver->aggregateCustomVariable(…) called at [E:\piwik\plugins\CustomVariables\Archiver.php:55]
#5 Piwik\Plugins\CustomVariables\Archiver->aggregateDayReport(…) called at [E:\piwik\core\ArchiveProcessor\PluginsArchiver.php:95]
#6 Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins(…) called at [E:\piwik\core\ArchiveProcessor\Loader.php:120]
#7 Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(…) called at [E:\piwik\core\ArchiveProcessor\Loader.php:74]
#8 Piwik\ArchiveProcessor\Loader->prepareArchive(…) called at [E:\piwik\core\Archive.php:793]
#9 Piwik\Archive->prepareArchive(…) called at [E:\piwik\core\Archive.php:612]
#10 Piwik\Archive->cacheArchiveIdsAfterLaunching(…) called at [E:\piwik\core\Archive.php:554]
#11 Piwik\Archive->getArchiveIds(…) called at [E:\piwik\core\Archive.php:494]
#12 Piwik\Archive->get(…) called at [E:\piwik\core\Archive.php:343]
#13 Piwik\Archive->getDataTableFromNumeric(…) called at [E:\piwik\plugins\MultiSites\API.php:211]
#14 Piwik\Plugins\MultiSites\API->buildDataTable(…) called at [E:\piwik\plugins\MultiSites\API.php:107]
#15 Piwik\Plugins\MultiSites\API->getAll(…) called at [E:\piwik\plugins\MultiSites\Controller.php:74]
#16 Piwik\Plugins\MultiSites\Controller->getSitesInfo(…) called at [E:\piwik\plugins\MultiSites\Controller.php:47]
#17 Piwik\Plugins\MultiSites\Controller->index(…) called at [:]
#18 call_user_func_array(…) called at [E:\piwik\core\FrontController.php:117]
#19 Piwik\FrontController->dispatch(…) called at [E:\piwik\index.php:62]


(Matthieu Aubry) #11

@raj this bug was fixed in latest 2.1 RC: 301 Moved Permanently