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

PHP Notice: Undefined variable: convertedUri in ConvertCommand.php:172 #4

Open
razvanphp opened this issue Nov 26, 2014 · 6 comments
Open
Assignees
Labels

Comments

@razvanphp
Copy link

Hello,

For some of our endpoints we get those errors:

PHP Notice:  Undefined variable: convertedUri in phar:///usr/local/bin/blueman/vendor/pixelfusion/blueman/src/Blueman/Console/Command/ConvertCommand.php on line 172
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/local/bin/blueman/vendor/pixelfusion/blueman/src/Blueman/Console/Command/ConvertCommand.php on line 161

Do you have any clue why? In any case, your code should initialize the variable so the notice is avoided.

@kielabokkie
Copy link
Owner

Can you give me an example markdown of one of the endpoints that gives you these notices and warnings?

@kielabokkie
Copy link
Owner

Hi @razvanphp, can you update (e.g. blueman self-update) to the latest version (v1.1.3) and check if this problem is solved for you?

@kielabokkie kielabokkie self-assigned this Jan 5, 2015
@razvanphp
Copy link
Author

Hey @kielabokkie, now some of the errors are gone, but we still get this one:

PHP Notice: Trying to get property of non-object in phar:///usr/local/bin/blueman/vendor/pixelfusion/blueman/src/Blueman/Console/Command/ConvertCommand.php on line 198

Thanks for the support!

@kielabokkie
Copy link
Owner

Hi @razvanphp, if you can give me an example markdown file with the endpoint that fails then that would be great so I can test it.

@razvanphp
Copy link
Author

Hey @kielabokkie, here it is, sorry for the delay.

http://pastebin.com/Lccky11Y

@razvanphp razvanphp reopened this Jan 13, 2015
@kielabokkie
Copy link
Owner

Thanks @razvanphp, I see what the issue is now. This error occurs when your endpoint has query parameters but you haven't described those under the parameters part of your API blueprint.

I think I will make it so it shows a nice warning telling you what parameters haven't been described for which endpoint so you can update your documentation (as it is important to document those too ;)).

@kielabokkie kielabokkie added bug and removed bug labels Jan 13, 2015
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