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
Failed to locate a schema at location #685
Comments
remove /cc @rande |
// cc @Bladrak |
that may be right, but i have followed the instructions on how to setup up media rest api and got an error, so from my side of view one thing has to be changed: the instructions or the xmlns |
@lsmith77 here's the api.xml routing file:
When we remove the
Not sure where the problem is precisely, but I'm unable to reproduce @scasei's issue. |
I followed the instruction on this page: Full error description: |
This path seems wrong in your log: I've noticed that there was an issue with an earlier version of Symfony (2.0.15 - cf symfony/symfony#4479). Any idea @lsmith77? |
"This path seems wrong in your log": You mean the mixed slahes? Thats not a problem for windows PHP. Will be translated slightly. |
Yep, that's what I meant. Ok then, didn't know about that. I think the issue comes from the fact that you're unable to parse the I think we should wait for @lsmith77 insight about that. :) |
are you using the latest version of the Bundle? |
Our requirement for |
|
@Tobion do you have a hint here? |
from my composer.lock: "name": "friendsofsymfony/rest-bundle",
"version": "1.2.2",
"target-dir": "FOS/RestBundle",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git",
"reference": "7c81a1879c5d8a3727932674509e96b2bb7a796e"
}, |
Hm the errror looks rather strange. Where does "in_memory_buffer" come from? Can't see it referenced anywhere. Probably something internal to PHP. The only possible issue I see is that https://raw.github.com/FriendsOfSymfony/FOSRestBundle/master/Resources/config/schema/routing/rest_routing-1.0.xsd is sent with a text mime type instead of xml. So maybe that's the reason why it cannot be used for validation. |
My server software signature: Is there something i could test or investigate? |
Seems to be a php bug. See symfony/symfony#9731 |
Up ! [2/2] FileLoaderLoadException: Cannot import resource "C:\wamp\www\sandbox\vendor\sonata-project\news-bundle/Resources/config/routing/api.xml" from "C:/wamp/www/sandbox/app/config\routing_api.yml". ([WARNING 1549] failed to load external entity "in_memory_buffer" (in n/a - line 0, column 0) Help! |
@Soulaimaniya What do your |
This is my api.xml :
and this is how my routing_api.yml : NelmioApiDocBundle: sonata_api_news: sonata_api_media: sonata_api_notification: sonata_api_ecommerce_product: sonata_api_ecommerce_order: sonata_api_ecommerce_invoice: sonata_api_ecommerce_customer: sonata_api_ecommerce_basket: sonata_api_page: sonata_api_user: I've tried every single instruction, everything fails. |
It should be fixed by symfony/symfony#10493 which is in v2.3.12. Can you update symfony in your project and try again? |
is there a cmd to upgrade symfony ? mine is v2.3.11 |
composer.phar update symfony/symfony |
updated to symfony 2.3.12, same error. |
You also need to restart php fpm to reset the system.
|
same error in Symfony version 2.5 somebody has solved it ? Maybe the beautifull Soulaimaniya ? |
The solution I remove the bundle Fos rest in the vendor folder \vendor\friendsofsymfony\rest-bundle |
The problem is only in windows (wamp for me). I ll try on a debian machine with success. I don't know how to solve it in windows. It s a fos/rest problem with a fos/restbundle version above 1.1.* on windows only. |
I have the same error:
composer.json:
PHP 5.5.11 My routing.xml file:
|
can you try current master? |
dev-master is working like a charm. :) 2014-06-02 13:29 GMT+02:00 Lukas Kahwe Smith notifications@github.com:
Pozdrawiam, |
at http://friendsofsymfony.github.io/schema/rest/ there is a
"404 - There isn't a GitHub Page here."
and symfony comes with:
failed to load external entity "in_memory_buffer"
when I do:
sonata_api_media:
type: rest
prefix: /api
resource: "@SonataMediaBundle/Resources/config/routing/api.xml"
The text was updated successfully, but these errors were encountered: