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

Error 500 after upgrading from 2.1.26 to 2.1.27.1 #1686

Closed
dataegg opened this issue Mar 13, 2017 · 3 comments
Closed

Error 500 after upgrading from 2.1.26 to 2.1.27.1 #1686

dataegg opened this issue Mar 13, 2017 · 3 comments
Labels

Comments

@dataegg
Copy link

dataegg commented Mar 13, 2017

  1. Download 2.1.27,1
  2. Unzip over 2.1.26
  3. open upgrade.php in browser
  4. upgrade finisches succesfull
    5.After logging in I get an pop up with the message 'Internal Server Error [500]'
    6.When choosing an folder from the tree I get the same Internal Server Error message, no password items are shown

Apache error log show me following:

xxx.xxx.xxx.xxx - - [13/Mar/2017:21:04:17 +0100] "POST /sources/items.queries.php HTTP/1.1" 500 - "https://teampass-test.mydomain.com/index.php?page=items&language=english" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0"

php-fpm log:
[13-Mar-2017 21:04:17 Europe/Amsterdam] PHP Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /webroot/teampass-test/html/sources/items.queries.php on line 3727

Expected behaviour

No errors

Actual behaviour

See above

Server configuration

Operating system: Centos 7

Web server:
Apache/2.4.6

Database:
MySQL

PHP version:
5.5

Teampass version:
Upgrade from 2.1.26 (release) to 2.1.27.1

Updated from an older Teampass or fresh install:
Updated

Client configuration

Browser:
Firefox 51.0.1

Operating system:
windows 10

Logs

Web server error log

Insert your webserver log here
xxx.xxx.xxx.xxx - - [13/Mar/2017:21:04:17 +0100] "POST /sources/items.queries.php HTTP/1.1" 500 - "https://teampass-test.mydomain.com/index.php?page=items&language=english" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0"

php-fpm log:
[13-Mar-2017 21:04:17 Europe/Amsterdam] PHP Parse error:  syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /webroot/teampass-test/html/sources/items.queries.php on line 3727

#### Firebug log ([How to?](http://teampass.net/2014-02-09-how-to-communicate-an-error-log))

Insert the Firebug log here


@dataegg
Copy link
Author

dataegg commented Mar 13, 2017

Tried to uprade two times with the same result. Also tried with Internet Explorer as client. Same result.

@nilsteampassnet
Copy link
Owner

nilsteampassnet commented Mar 14, 2017

Strange error.

Nevertheless I can see an error in this line. Can you please do the next change?
IN /webroot/teampass-test/html/sources/items.queries.php
Replace

                        '<td style="">'.(!empty($record['raison'] && $record['action'] !== "at_creation") ? (count($reason) > 1 ? $LANG[trim($reason[0])].' : '.handleBackslash($reason[1]) : ($record['action'] == "at_manual" ? $reason[0] : $LANG[trim($reason[0])])):'').'</td>'.

by

                        '<td style="">' . (!empty($record['raison']) && $record['action'] !== "at_creation" ? (count($reason) > 1 ? $LANG[trim($reason[0])].' : '.handleBackslash($reason[1]) : ($record['action'] == "at_manual" ? $reason[0] : $LANG[trim($reason[0])])) : '') . '</td>'.

nilsteampassnet added a commit that referenced this issue Mar 14, 2017
Fix for #1686
@dataegg
Copy link
Author

dataegg commented Mar 16, 2017

This resolves the issue. Thank you. Now I'll look further why my encrypted attachements are unreadble after the upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants