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

Crash when opening admin page #273

Closed
fcpwiz opened this issue Aug 27, 2015 · 17 comments
Closed

Crash when opening admin page #273

fcpwiz opened this issue Aug 27, 2015 · 17 comments

Comments

@fcpwiz
Copy link

fcpwiz commented Aug 27, 2015

Just installed Flarum, and when I go to the Admimistration page I get a crash:

PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_filepro.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_filepro.dll: cannot open shared object file: No such file or directory

@pcrumm
Copy link

pcrumm commented Aug 27, 2015

filePro isn't a dependency for flarum--instead, this looks like a PHP configuration issue. The good news is that it's pretty easy to fix :)

Head to your php.ini file (probably in C:\windows), search for filepro.dll in that file, and add a semicolon (;) to the beginning of any line that mentions it. That line should look something like this:

extension=php_filepro.dll

@fcpwiz
Copy link
Author

fcpwiz commented Aug 27, 2015

@pcrumm Thanks for the reply! I haven't messed with the php.ini file for a bit. How would I find it via FileZilla?

@pcrumm
Copy link

pcrumm commented Aug 27, 2015

@fcpwiz what host are you on?

@fcpwiz
Copy link
Author

fcpwiz commented Aug 27, 2015

Godaddy VPS.

@pcrumm
Copy link

pcrumm commented Aug 27, 2015

@fcpwiz It looks like you can just drop a php.ini file in the root directory from FileZilla, but I haven't been able to find a sensible default for what you can use as a basis there.

Safest next step is to contact GoDaddy support (with the error message you initially supported here) and ask them to point you in the right direction.

@tobyzerner
Copy link
Contributor

Closing this, assuming it's not a Flarum issue.

@fcpwiz
Copy link
Author

fcpwiz commented Aug 27, 2015

@pcrumm I added the semicolon at the end of it, and I'm still getting the error.

@pcrumm
Copy link

pcrumm commented Aug 27, 2015

Start, not end :)
On August 27, 2015 at 11:36:23 AM, fcpwiz ([email protected]) wrote:

@pcrumm I added the semicolon at the end of it, and I'm still getting the error.


Reply to this email directly or view it on GitHub.

@fcpwiz
Copy link
Author

fcpwiz commented Sep 22, 2015

@pcrumm It's been a month and I still have this issue. Please reply.

@franzliedke
Copy link
Contributor

He did. You're supposed to add the semicolon at the beginning, not the end.

@fcpwiz
Copy link
Author

fcpwiz commented Sep 22, 2015

@franzliedke I did do that but I'm still getting the issue.

@franzliedke
Copy link
Contributor

You're getting the same error message about the filepro extension? That means it's still being loaded (albeit unsuccessfully). Please contact your host then.

@fcpwiz
Copy link
Author

fcpwiz commented Sep 22, 2015

Yeah the error is a bit different from before:

PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_fileinfo.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_fileinfo.dll: cannot open shared object file: No such file or directory

@fcpwiz
Copy link
Author

fcpwiz commented Sep 22, 2015

Ah! I was in the wrong php.ini file. I fixed that error but now I have a new one:

Flarum\Http\RouteNotFoundException thrown with message ""

Stacktrace:
#14 Flarum\Http\RouteNotFoundException in /home/forums/public_html/flarum/vendor/flarum/core/src/Http/RouterMiddleware.php:60
#13 Flarum\Http\RouterMiddleware:__invoke in <#unknown>:0
#12 call_user_func in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Dispatch.php:79
#11 Zend\Stratigility\Dispatch:__invoke in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Next.php:113
#10 Zend\Stratigility\Next:__invoke in /home/forums/public_html/flarum/vendor/flarum/core/src/Api/Middleware/ReadJsonParameters.php:32
#9 Flarum\Api\Middleware\ReadJsonParameters:__invoke in <#unknown>:0
#8 call_user_func in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Dispatch.php:79
#7 Zend\Stratigility\Dispatch:__invoke in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Next.php:113
#6 Zend\Stratigility\Next:__invoke in /home/forums/public_html/flarum/vendor/flarum/core/src/Forum/Middleware/LoginWithCookie.php:47
#5 Flarum\Forum\Middleware\LoginWithCookie:__invoke in <#unknown>:0
#4 call_user_func in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Dispatch.php:79
#3 Zend\Stratigility\Dispatch:__invoke in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/Next.php:113
#2 Zend\Stratigility\Next:__invoke in /home/forums/public_html/flarum/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php:75
#1 Zend\Stratigility\MiddlewarePipe:__invoke in /home/forums/public_html/flarum/vendor/zendframework/zend-diactoros/src/Server.php:166
#0 Zend\Diactoros\Server:listen in /home/forums/public_html/index.php:60

@franzliedke
Copy link
Contributor

Which server are you using? Apache?

Also, can you share a screenshot of the full error page? The variables and stuff shown on the right-hand side often help with debugging, too...

@fcpwiz
Copy link
Author

fcpwiz commented Sep 25, 2015

@franzliedke Sorry, I should've said that I got this fixed. My .htaccess file was outdated.

@franzliedke
Copy link
Contributor

Awesome. 👍

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

No branches or pull requests

4 participants