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

file_get_contents(): Filename cannot be empty #84

Closed
cweiske opened this issue Aug 18, 2017 · 2 comments
Closed

file_get_contents(): Filename cannot be empty #84

cweiske opened this issue Aug 18, 2017 · 2 comments

Comments

@cweiske
Copy link
Contributor

cweiske commented Aug 18, 2017

I wanted to post a reply to commentpara.de and got the error

Your endpoint did not return a Location header.
See Creating a Micropub Endpoint for more information.

When inspecting the network traffic, I saw:

Slim Application Error
The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: file_get_contents(): Filename cannot be empty
File: /web/sites/quill.p3k.io/lib/helpers.php
Line: 127
Trace

#0 [internal function]: Slim\Slim::handleErrors(2, 'file_get_conten...', '/web/sites/quil...', 127, Array)
#1 /web/sites/quill.p3k.io/lib/helpers.php(127): file_get_contents('')
#2 /web/sites/quill.p3k.io/lib/helpers.php(88): micropub_post('https://comment...', Array, 'ZW1vamk9JTVDMzY...', NULL, false)
#3 /web/sites/quill.p3k.io/controllers/micropub.php(61): micropub_post_for_user(Object(ORM), Array)
#4 [internal function]: {closure}()
#5 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Router.php(172): call_user_func_array(Object(Closure), Array)
#6 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Slim.php(1222): Slim\Router->dispatch(Object(Slim\Route))
#7 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Middleware/Flash.php(86): Slim\Slim->call()
#8 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Middleware/MethodOverride.php(94): Slim\Middleware\Flash->call()
#9 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#10 /web/sites/quill.p3k.io/vendor/slim/slim/Slim/Slim.php(1174): Slim\Middleware\PrettyExceptions->call()
#11 /web/sites/quill.p3k.io/public/index.php(25): Slim\Slim->run()
#12 {main}

2017-08-18 auswahl_001

@cweiske
Copy link
Contributor Author

cweiske commented Aug 18, 2017

Maybe it's because of #79 that anoweco still uses. In any case, there should be better error handling on quill's PHP side.


No, it isn't.

@aaronpk
Copy link
Owner

aaronpk commented Aug 18, 2017

This was caused by #82 and then I fixed it in ae4cbc4 but forgot to deploy it. It's deployed now!

@aaronpk aaronpk closed this as completed Aug 18, 2017
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

2 participants