Ticket #858 (closed Bug: wontfix)

Opened 7 months ago

Last modified 7 months ago

Clean install of Top-of-Tree ends up in a redirect loop

Reported by: Ecco Owned by:
Priority: critical Milestone: Piwik 0.4.2
Component: Core Keywords:
Cc: Sensitive:

Description

After a brand new clean install finished (no error message), if I try to login as the admin (the only user available), I get an error :

Attachments

Piwik - running all tests.html Download (20.2 KB) - added by Ecco 7 months ago.
Running of the test-suite on the machine I'm having this issue on
PHP_INFO.txt Download (25.5 KB) - added by Ecco 7 months ago.
Output of phpinfo();

Change History

Changed 7 months ago by Ecco

Apache configuration :

Alias /logs "/var/www/piwik" <Directory "/var/www/piwik">

# Allow access from any host Order allow,deny Allow from all

</Directory>

And… that's pretty much it !

Changed 7 months ago by Ecco

The very same setup had a 0.2.32 install working just fine

Changed 7 months ago by Ecco

Interestingly, some parts of Piwik still work :

  • "index.php?module=SitesManager" works
  • "index.php?module=CoreAdminHome" works fine (Safari and Firefox)
  • "index.php?module=Feedback" works too

I get a redirect loop on CoreHome, API, and Widgetize though. (Tested with 4 different browsers)

Changed 7 months ago by Ecco

Running of the test-suite on the machine I'm having this issue on

Changed 7 months ago by vipsoft

It looks like your version or build of php is at fault.

The exception in DocumentationGenerator.test.php shows it picked up the wrong database name (piwik vs piwik_tests), but got the right prefix?

The other 30 or so errors show the wrong year used. Bizarre doesn't even come to describing this. It's like 1999...

Changed 7 months ago by vipsoft

  • milestone set to 1 - Piwik 0.4.2

Changed 7 months ago by Ecco

Hum… That's weird !

Here are some infos about this box :

  • PowerPC processor (Big-endian. I don't know if that changes anything. I ain't no PHP expert, but a scripting language should abstract this implementation detail, shouldn't it ?)
  • uname -a : Linux 2.6.27.10 #1 Sun Dec 21 17:37:35 CET 2008 ppc 740/750 PowerMac2,1 GNU/Linux
  • PHP is build with the following USE flags (== ./configure options) : (those prefixed by '-' are disabled)

dev-lang/php-5.2.10 USE="apache2 bzip2 cgi cli crypt ctype curl curlwrappers* filter* ftp gd gdbm hash iconv ipv6 json mysql mysqli ncurses nls pcre pdo posix readline reflection session sharedext* simplexml snmp soap sockets spl sqlite ssl sysvipc* threads tokenizer* truetype unicode xml xmlreader* xmlrpc xmlwriter* zip* zlib (-adabas) -bcmath -berkdb (-birdstep) -calendar -cdb -cjk -concurrentmodphp (-db2) -dbase (-dbmaker) -debug -discard-path -doc (-empress) (-empress-bcs) (-esoob) -exif -fastbuild* (-fdftk) (-firebird) -flatfile -force-cgi-redirect (-frontbase) -gd-external -gmp -imap -inifile (-interbase) -iodbc (-java-external) -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql (-oci8) (-oci8-instant-client) -odbc -pcntl -pic -postgres -qdbm -recode -sapdb -sharedmem (-solid) -spell -suhosin (-sybase) (-sybase-ct) -tidy -wddx -xpm -xsl -yaz" 0 kB

Changed 7 months ago by Ecco

Output of phpinfo();

Changed 7 months ago by Ecco

Ok, so part of the problem is in PHP itself (god I hate it) :  http://bugs.php.net/bug.php?id=48708

On big-endian machines, date("Y-m-d") replies "0000" for the current year…

Changed 7 months ago by vipsoft

  • status changed from new to closed
  • resolution set to wontfix

Sorry, closing as a "cantfix". I don't see an obvious workaround and it's well outside Piwik's scope to fix platform bugs in php.

Yes, as a high-level interpreted language, PHP should abstract lower level details to applications like Piwik. However, cross-platform portability & compatibility with so many processors, operating systems, libraries (and versions thereof) in use... is no easy task.

Changed 7 months ago by Ecco

Rolled back my PHP to 5.2.9. Works like a charm ! …

Seriously, I can't believe it :-S Anyway, I'm glad my Piwik install is back up !

Note: See TracTickets for help on using tickets.