Image upload error #186
Comments
@rmsint could you have a look at this one? |
will check it this weekend, looks like a PHPCR-ODM mapping issue |
I checked this with the cmf sandbox and cannot reproduce the error: during editing content I click @dbu can you see the error for the cmf.liip.ch/en site? It is an 500 error, however I cannot see more information about it. Imho what needs to be checked is why the parent is not set for the @HaGii Did you run the repository initializer? ( |
@rmsint I using symfony-cmf version I'm not sure how could I check the configuration of the root path? |
You could check the root is created using the I think the default path is: |
I checked it, I have |
Is that the root path for media? Anyhow, you could check here if a parent is set (probably not) and what path the image has: https://github.com/symfony-cmf/MediaBundle/blob/master/Doctrine/Phpcr/MediaManager.php#L123. Check the value of |
@rmsint did you try with 1.0.0 or the 1.0 branch of the cmf or the |
@dbu I tried with 1.0.0 of the cmf-sandbox. There is indeed a little bug in 1.0.0 of the cmf-sandbox with the security role not being configured yet for uploading. It gives a 404 permission error and not a 500 error as HaGii posted. So that is not related to this and you solved that already in the current master of the media bundle and create bundle. Also checked it with 1.0.0 for the cmf-sandbox and the master branch for the create-bundle and the media bundle. |
@rmsint I'll check value of |
So,
|
Ok we found your issue. Now we can try to solve it. Try with this in your config.yml:
And it should be solved. I think the cause for this could be something we should try to fix or maybe can prevent it from happening or throw a configuration error with directions to solve it. @HaGii What is your value for |
@rmsint Thanks, I modified my
Now it's working, but I'm not sure if it's good solution, is it? Parameters:
|
the MediaBundle install instructions say that you should do this, so yes that sounds right. are there any problems left or does image upload work like this? |
My problem was solved, thanks! |
I have the same problem and it didn't help to set the basepaths. When I tried to check the value of path in mediamanager as @rmsint suggested I noticed that the method setDefaults is never called. I use Edit: |
I had the same problem (cmf_create_image_upload not found). The solution was to add the follow lines into my routing.yml cmf_create_image:
resource: "@CmfCreateBundle/Resources/config/routing/image.xml" |
is this missing documentation? or just a change between versions? |
I didn't see it in configuration but it's my fault ... I'm sorry for the inconvenience. |
I noticed issue connected with uploading image. During editing content I just click
image
, select image and try to upload it. I got an error. Request is send to:symfony-cmf/create/image/upload/ckeditor?CKEditor=editor3&CKEditorFuncNum=221&langCode=pl
After that, error occurs. In my dev env I got
Property \"parent\" mapped as ParentDocument may not be empty in document of class \"Symfony\\Cmf\\Bundle\\MediaBundle\\Doctrine\\Phpcr\\Image\"
, class:Doctrine\\ODM\\PHPCR\\Id\\IdException
.Error occurs even on demo page http://cmf.liip.ch/en - thrown
error 500
.The text was updated successfully, but these errors were encountered: