Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anonymous-matomo-user opened this issue Jul 8, 2009 · 10 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

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 :

@anonymous-matomo-user
Copy link
Author

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 !

@anonymous-matomo-user
Copy link
Author

The very same setup had a 0.2.32 install working just fine

@anonymous-matomo-user
Copy link
Author

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)

@anonymous-matomo-user
Copy link
Author

Attachment: Running of the test-suite on the machine I'm having this issue on
Piwik - running all tests.html

@robocoder
Copy link
Contributor

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...

@anonymous-matomo-user
Copy link
Author

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 adding support for windows phone 7 version 7.5 #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

@anonymous-matomo-user
Copy link
Author

Attachment: Output of phpinfo();
PHP_INFO.txt

@anonymous-matomo-user
Copy link
Author

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

@robocoder
Copy link
Contributor

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.

@anonymous-matomo-user
Copy link
Author

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 !

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.4.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants