flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.35k stars 834 forks source link

Error 500 when logging in using Github #1116

Closed areyi closed 7 years ago

areyi commented 7 years ago

I got error 500 Internal Server Error when logging in with Github

Screenshot:

Deprecated: The third argument to Zend\Stratigility\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101

Deprecated: Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php on line 435
500 Internal Server Error

Something went wrong on our server.

Bug report

Flarum info

Flarum core 0.1.0-beta.6
PHP 7.0.13-0ubuntu0.16.10.1
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
EXT flarum-approval v0.1.0-beta.6
EXT flarum-bbcode v0.1.0-beta.5
EXT flarum-emoji v0.1.0-beta.6
EXT flarum-english v0.1.0-beta.6
EXT flarum-flags v0.1.0-beta.6
EXT flarum-auth-github v0.1.0-beta.6
EXT flarum-likes v0.1.0-beta.6
EXT flarum-lock v0.1.0-beta.6
EXT flarum-markdown v0.1.0-beta.5
EXT flarum-mentions v0.1.0-beta.6
EXT flarum-sticky v0.1.0-beta.6
EXT flarum-subscriptions v0.1.0-beta.6
EXT flarum-suspend v0.1.0-beta.6
EXT flarum-tags v0.1.0-beta.7
Base URL: http://128.199.150.205
Installation path: /var/www/html

Additional comments

Problem found here

 protected function getProvider($redirectUri){
        return new Github([  //here
        ]);
}

Log files

tail -f /var/log/apache2/error.log 
[Thu Feb 02 03:05:10.157838 2017] [:error] [pid 29664] [client 14.192.213.94:4385] PHP Deprecated:  Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php on line 435, referer: http://128.199.150.205/
[Thu Feb 02 03:06:51.314337 2017] [:error] [pid 29663] [client 14.192.213.94:4357] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://128.199.150.205/
[Thu Feb 02 03:06:52.421095 2017] [:error] [pid 29663] [client 14.192.213.94:4357] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://128.199.150.205/
[Thu Feb 02 03:06:53.472424 2017] [:error] [pid 29663] [client 14.192.213.94:4357] PHP Deprecated:  Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php on line 435, referer: http://128.199.150.205/
[Thu Feb 02 03:07:51.847224 2017] [:error] [pid 29667] [client 14.192.213.94:4410] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://128.199.150.205/
[Thu Feb 02 03:07:52.908220 2017] [:error] [pid 29667] [client 14.192.213.94:4410] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://128.199.150.205/
[Thu Feb 02 03:07:53.965106 2017] [:error] [pid 29667] [client 14.192.213.94:4410] PHP Deprecated:  Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php on line 435, referer: http://128.199.150.205/
[Thu Feb 02 03:10:45.718759 2017] [:error] [pid 29691] [client 14.192.213.94:4381] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: http://128.199.150.205/
[Thu Feb 02 03:10:49.074543 2017] [:error] [pid 29691] [client 14.192.213.94:4381] PHP Deprecated:  The third argument to Zend\\Stratigility\\MiddlewarePipe() ($out) will be required starting with Stratigility version 2; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php on line 101, referer: https://github.com/
[Thu Feb 02 03:10:50.058116 2017] [:error] [pid 29691] [client 14.192.213.94:4381] PHP Deprecated:  Usage of error middleware is deprecated as of 1.3.0, and will be removed in 2.0.0; please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for details on how to update your application to remove this message. in /var/www/html/vendor/zendframework/zend-stratigility/src/Next.php on line 435, referer: https://github.com/
luceos commented 7 years ago

Thanks for your elaborate bug report, this issue is already known #1069 and a solution is provided on the forums 4218-zend-stratigility-debug-message-after-composer-update.

franzliedke commented 7 years ago

@Luceos Hmm, but that issue should not cause a 500, right, only warnings?

luceos commented 7 years ago

@franzliedke depends on your php configuration. "Sane" configurations simply ignore deprecations and notices in order to guarantee production environments stay up, even if you didn't pre-instantiate an array for instance.

franzliedke commented 7 years ago

Oh, good point.

I just wanted to make sure we're not missing something else... :)