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

Problem wtih routing/ integration #28

Open
Vincere1st opened this issue Mar 11, 2021 · 4 comments
Open

Problem wtih routing/ integration #28

Vincere1st opened this issue Mar 11, 2021 · 4 comments

Comments

@Vincere1st
Copy link

Vincere1st commented Mar 11, 2021

Hello, i'm use in my symfony 5 project fosckeditorbundle , and i want to add this bundle , but after 2 days of search , i'm not found a solution, anyone can help me?

When i click in the browse file button i get this error in the windows popup:
No route found for "GET /bundles/cksourceckfinder/ckfinder/core/connector/php/connector.php" (from "http://mydomain.test/bundles/cksourceckfinder/ckfinder/ckfinder.html?type=Images&CKEditor=editor_field&CKEditorFuncNum=0&langCode=fr")

Here my config:

fos_ckeditor.yaml:

    configs:
        default_config:
            toolbar: "default_toolbar"
            extraPlugins: 'more, image2, uploadimage'
            removePlugins: 'image'
            removeDialogTabs: 'image:advanced, link:advanced'
            filebrowserBrowseUrl: '/bundles/cksourceckfinder/ckfinder/ckfinder.html'
            filebrowserImageBrowseUrl: '/bundles/cksourceckfinder/ckfinder/ckfinder.html?type=Images'
            filebrowserUploadUrl: 'ckfinder/connector?command=QuickUpload&type=Images'
            filebrowserImageUploadUrl: 'ckfinder/connector?command=Quickuplad&type=Images'
            uploadUrl: 'ckfinder/connector?command=Quickuplad&type=Images&responseType=json'

routes/ckfinder.yaml

ckfinder_connector:
  resource: "@CKSourceCKFinderBundle/Resources/config/routing.yml"
  prefix:   /

config/pakages/ckfinder.yaml

ckfinder:
  connector:
    authenticationClass: App\CustomCKFinderAuth\CustomCKFinderAuth
imports:
  - { resource: ../ckfinder_config.php }

i'm looking this issue: #4 but without success :(

Big thanks for helping !!!!

@Vincere1st
Copy link
Author

No one has a solution?
@zaak ?

@Vincere1st Vincere1st changed the title Problem wtih routing and integration Problem wtih routing/ integration Mar 12, 2021
@KevinSleegers
Copy link

@Vincere1st I'm currently facing the same problem. Have you found a solution for this?

@zaak
Copy link
Member

zaak commented Dec 2, 2021

It looks like the CKFinder's connectorPath option hasn't been set properly. Could you please make sure the setup code has been properly included on the page that uses CKFinder?

{% include "@CKSourceCKFinder/setup.html.twig" %}

@KevinSleegers
Copy link

KevinSleegers commented Dec 2, 2021

@zaak I have included the setup.html.twig, and it renders the following code:
Screenshot 2021-12-02 at 14 50 34

It looks like that code is not being used at all by CKFinder since it stills tries to use /bundles/cksourceckfinder/ckfinder/core/connector/php/connector.php as URL for the connector.

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

3 participants