Piwik 1.5 : Unable to start session

Please try updating to these latest files in trunk:
http://dev.piwik.org/trac/export/4961/trunk/core/ErrorHandler.php core/ErrorHandler.php
http://dev.piwik.org/trac/export/4958/trunk/core/Session.php core/Session.php
http://dev.piwik.org/trac/export/4958/trunk/libs/Zend/Db/Table/Abstract.php libs/Zend/Db/Table/Abstract.php

Hi Anthon,

thx a lot for your help but nothing changes after installing these files. I did it twice to make sure it is all correct with path etc.
Delete the browser cash and reload the site.
There is the same thing.

any other ideas?
greets
Cyb

I’ll need ftp or ssh access to troubleshoot further. The fix in Zend/Db/Table/Abstract.php is to work around a php bug.

Try the new files from trunk:

http://dev.piwik.org/trac/export/4970/trunk/core/Session.php core/Session.php (overwrite the existing)
http://dev.piwik.org/trac/export/4970/trunk/core/Session/SaveHandler/DbTable.php core/Session/SaveHandler/DbTable.php (new!)

[s]The reason there’s no backtrace is because ZF is throwing an exception in one of its callbacks, e.g., read.

Everyone: if you can’t provide ftp/ssh access, but are willing to do some troubleshooting, here’s some guidance. Find out where it’s throwing the exception, and then step backwards to find out the root cause failure condition. I suggest beginning at:

libs/Zend/Session/SaveHandler/DbTable.php - the read() function is the first callback; the _getPrimary() function is where it confirms we have an index on the ‘id’ column of the piwik_sessions table.

libs/Zend/Db/Table/Abstract.php - the find() function is an obfuscated SELECT; the _setupPrimaryKey is where metadata is loaded and cached; $this->_metadata should be a valid value

If you run across something weird (eg var_dump outputs UNKNOWN:0), then it may be a php bug. Post here and we’ll see if we can brainstorm a workaround.[/s]

hi Anthon,
thx again . I copied the files and open the new dir. core/session/savehandler doesn´t exist before.
However it changes nothing. I tested the old 1.4 but there are no graphs further and no data.
Perhaps it is by updating the db? Last the only way is to give up or you the access.

greets
Cyb

Cyberurmel: you can’t switch back to 1.4 without rolling back the schema changes in 1.5 or restoring from a backup of your pre-1.5 database.

I’ll post a link to the trunk nightly build which you can install.

Hello Anthon,

ok. Thank you for your help and information. I´ll waitin for a link.

greets
Cyb

http://qa.piwik.org:8080/nightly/piwik-svn-r4995.zip

[quote=Anthon]
http://qa.piwik.org:8080/nightly/piwik-svn-r4995.zip[/quote]\

Hi is this a fix or a rollback edition to 1.4?

thanks

This is a snapshot of trunk … what will be included in the 1.5.1 update.

[quote=Anthon]
This is a snapshot of trunk … what will be included in the 1.5.1 update.[/quote

Hi
thanks for the follow up. This new snapshot did not solve my problem. I have the same issue as the original poster.

HI Anthon,

i would install it - but i dont know what i have to do at the point DB tables. I locked my old pw and db name there. But then it comes that the tables have the same name like piwik want to create. Now i could take go back and rename the prefix or overwrite.
What should i do here?

hope there is a change anyway because Kartal wrote : …did not solve the problem… ?

thx
greets
Cyb

Cyberurmel, you are right it did not help me and I cannot access my Piwik.

Editing the session.php enables login but the some stuff like realtime stats is broken.

The other issue shows up when I try to see “all sites”. Here is what I get

“SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘revenue_subtotal’ in ‘field list’”

thanks

Hi

Will there be any fix with this issue ?:frowning: I am locked out

Hi Anthon,

could you give me please instructions how i have to go on?? … i wrote:

I locked my old pw and db name there. But then it comes that the tables have the same name like piwik want to create. Now i could take go back and rename the prefix or overwrite.
What should i do here?

thx
greets
Cyb

wierd thing is i updated to 1.5 a while ago and it has been working fine until today

i tried that and i can login then but realtime stats dont work with error

SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_4b4_0.MYI' (Errcode: 22)

i have two installations of piwik , on one site i got no errors and a notice to upgrade to 1.5.1 i ran the update in the browser - no problems, i decided to manually upgrade to 151 on the installation that had the errors as it wasnt giving me the notification, after upoading all the files and replacing my config file , there was no database upgrade script, and still getting the same error

SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_4b4_0.MYI' (Errcode: 22)

in the ‘visitors in real time’ widget.
any ideas

This error usually means the partition is full or something similar

ah sorry was due to a problem with the disk on my server

i updated to 1.5.1 too but nothing changes…
i got the error

unable to start session… Fatal error: Exception thrown without a stack frame in Unknown on line 0

i don´t know how i could use piwik again…nothing helps… and a way to 1.4 back is not work…

greets
Cyb