PHP Startup: Unable to load dynamic library ‘/usr/local/php-7.0.6/lib/php/20151012/zip.so’ - /usr/local/php-7.0.6/lib/php/20151012/zip.so: cannot open shared object file: No such file or directory
http://experiments.waltercolindres.com/panel/login
Runs great on local machine. Errors out when I push to server for testing. My guess is that the server is misconfigured. Any thoughts?
Local MAMP: 5.6.10
I think we are running 7 on the server.
There seems to be this zip.so
file missing on your server. Since this is a PHP startup error, it has nothing to do with Kirby.
You could check your php.ini file and either comment out the line that tries to load the module, or add the correct path to the module.
Could this be a plugin issue?
I am using uniform form plugin.
We went down to PHP 5.6 and this error came back:
PHP Startup: Unable to load dynamic library ‘/usr/local/php-5.6.21/lib/php/20131226/zip.so’ - /usr/local/php-5.6.21/lib/php/20131226/zip.so: cannot open shared object file: No such file or directory
This is a php error, so no, it shouldn’t go away. Does the error go away if you remove the plugin?
Edit: Interestingly, the error only appears when trying to load the panel, not when loading the frontend
Exactly. Quite baffling. I did remove the plugins and it still failed. My guess is the installs my server does may not be adding some basic folders for PHP.
Quick update: Installed a clean kirby instance and it still fails. Has to be a server config. Will dig in!
Have you checked if the zip.so file exists where it is expected and commented out the line in the php.ini that tries to load it?
The folder is missing. However for fun I pushed the site to a clean Heroku repo and experienced a lot of issues.
I am running a test on a Heroku stack:
remote: -----> Bootstrapping…
remote: -----> Installing platform packages…
remote: - php (5.6.28)
remote: - ext-mbstring (bundled with php)
remote: - apache (2.4.20)
remote: - nginx (1.8.1)
remote: -----> Installing dependencies…
remote: Composer version 1.2.4 2016-12-06 22:00:51
Issue is very similar to this: Panel keeps logging me out
And the console shows the unexpected error for <
Additionally, If I do not explicitly tell it composer to install ext-mbstring I can not reach the panel.
To login in I must click the login button twice.
I am running Kirby 2.4.1.
Site can be found here:
https://gentle-peak-44833.herokuapp.com
Gist:
gistfile1.txt
Initial Login
2017-02-09T04:44:20.094247+00:00 app[web.1]: 10.71.208.240 - - [09/Feb/2017:04:44:20 +0000] "GET /panel/plugins/css?v=2.4.1 HTTP/1.1" 302 - "https://gentle-peak-44833.herokuapp.com/panel/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
2017-02-09T04:44:19.884085+00:00 heroku[router]: at=info method=POST path="/panel/login" host=gentle-peak-44833.herokuapp.com request_id=49bf9ab3-a619-40c9-9375-c674664c49e0 fwd="68.12.108.155" dyno=web.1 connect=0ms service=84ms status=302 bytes=588
2017-02-09T04:44:20.001308+00:00 heroku[router]: at=info method=GET path="/panel/" host=gentle-peak-44833.herokuapp.com request_id=aa80b5e4-6eaa-4024-bd34-c4945fa4992b fwd="68.12.108.155" dyno=web.1 connect=0ms service=45ms status=200 bytes=11972
2017-02-09T04:44:20.089653+00:00 heroku[router]: at=info method=GET path="/panel/plugins/css?v=2.4.1" host=gentle-peak-44833.herokuapp.com request_id=82d9816f-115f-4768-8f1c-91777062a890 fwd="68.12.108.155" dyno=web.1 connect=1ms service=9ms status=302 bytes=507
2017-02-09T04:44:20.082964+00:00 heroku[router]: at=info method=GET path="/panel/assets/css/form.min.css?v=2.4.1" host=gentle-peak-44833.herokuapp.com request_id=36257b56-7e38-4107-afdc-a728033ffa39 fwd="68.12.108.155" dyno=web.1 connect=1ms service=1ms status=304 bytes=128
2017-02-09T04:44:20.296697+00:00 heroku[router]: at=info method=GET path="/panel/login" host=gentle-peak-44833.herokuapp.com request_id=a8168f78-b100-43d4-b222-971aa28e14c6 fwd="68.12.108.155" dyno=web.1 connect=0ms service=12ms status=200 bytes=2396
2017-02-09T04:44:20.216034+00:00 heroku[router]: at=info method=GET path="/panel/plugins/js?v=2.4.1" host=gentle-peak-44833.herokuapp.com request_id=b78a97a8-1e9e-4ecb-80ea-d7b9ae946b8f fwd="68.12.108.155" dyno=web.1 connect=1ms service=9ms status=302 bytes=445
2017-02-09T04:44:20.195940+00:00 heroku[router]: at=info method=GET path="/panel/login" host=gentle-peak-44833.herokuapp.com request_id=68558705-4133-494e-9b3a-46aa006993fc fwd="68.12.108.155" dyno=web.1 connect=1ms service=15ms status=200 bytes=2396
2017-02-09T04:44:20.228382+00:00 heroku[router]: at=info method=GET path="/panel/assets/js/dist/form.min.js?v=2.4.1" host=gentle-peak-44833.herokuapp.com request_id=a33d3452-9007-4cfd-9e5c-ed3a99a21e9b fwd="68.12.108.155" dyno=web.1 connect=1ms service=1ms status=304 bytes=128
This file has been truncated. show original
I did go back to my testing server and drop in a version running off of Kirby 2.3.1 and it works perfectly.
Interestingly there is another issue that is just the other way around . To be honest I have no idea why either of those issues happen, Kirby doesn’t try to load any PHP modules on its own as far as I know.
texnixe
February 9, 2017, 8:37pm
10
Yes, that’s what I also wondered if these two issues might be related in any way. Unfortunately my research did not uncover any hint to what might be causing these startup errors.