ckfinder / ckfinder-symfony-bundle

CKFinder bundle for Symfony
https://ckeditor.com/ckfinder/
Other
42 stars 33 forks source link

Problem with service "service_locator.skAoktg" #51

Open reunisoft opened 1 year ago

reunisoft commented 1 year ago

Hello,

I've migrated to symfony 6.1 and i follow all the instruction mentioned in README.md file.

Installation of bundle and assets, js worked very well.

When i try to redeploy after remove vendor and vars directories, i've the following error:

The service ".service_locator.skAoktg" has a dependency on a non-existent service "CKSource\CKFinder\CKFinder".

Someone has an idea how to fix it ?

Thanks

bmlotek commented 1 year ago

Hello @reunisoft,

after vendor deletion, did you go "composer install" and after that "php bin/console ckfinder:download"? It looks like you don't have "CKSource\CKFinder\CKFinder" class, which must be in "/vendor/ckfinder/ckfinder-symfony-bundle/_connector".

reunisoft commented 1 year ago

I've done the following several times:

In fact i follow the steps to install the bundle

The CKFinder is in directory /vendor/ckfinder/ckfinder-symfony-bundle/_connector, namespace is also OK

I've also try to add in the file config/package/ckfinder.yaml the following lines:

ckfinder: connector: licenseName: xx licenseKey: xxxx authenticationClass: App\CustomCKFinderAuth\CustomCKFinderAuth connectorClass: App\Service\CKCustomFinder

CKCustomFinder is a copy of the class CKSource\CKFinder\CKFinder

When i go to the webapplication i've directly the error

reunisoft commented 1 year ago

I've deleted vendor directory. I type

php bin/console ckfinder:download

The error comes immediately

image

bmlotek commented 1 year ago

Hi @reunisoft,

please correct me, if i get it wrong. You deleted vendor directory (it is not present in your project) and then you use command "php bin/console ckfinder:download"?

chapalele commented 11 months ago

I've got the same error after perform "composer update" (php 8.1.17, symfony 6.3.9). I started playing with getSubscribedServices() static method in my controller... (a custom controller based on vendor/ckfinder/ckfinder-symfony-bundle/Controller/CKFinderController.php)

Screenshot 2023-11-29 at 1 04 29 PM

CKSource\CKFinder\CKFinder is there (/vendor/ckfinder/ckfinder-symfony-bundle/_connector), I have no clues on causes yet.

bmlotek commented 11 months ago

@chapalele can you please provide your composer.json file?

chapalele commented 10 months ago

{ "type": "project", "license": "proprietary", "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1.0", "ext-ctype": "", "ext-iconv": "", "aws/aws-sdk-php": "^3.238", "ckfinder/ckfinder-symfony-bundle": "^4.0", "doctrine/annotations": "^1.0", "doctrine/doctrine-bundle": "^2.5", "doctrine/doctrine-migrations-bundle": "^3.2", "doctrine/orm": "^2.11", "fakerphp/faker": "^1.19", "friendsofsymfony/ckeditor-bundle": "^2.4", "hackzilla/password-generator": "^1.6", "knplabs/knp-paginator-bundle": "^5.8", "league/flysystem-aws-s3-v3": "^3.0", "liip/imagine-bundle": "^2.10", "oneup/flysystem-bundle": "^4.7", "phpdocumentor/reflection-docblock": "^5.3", "stof/doctrine-extensions-bundle": "^1.7", "symfony/asset": "6.3.", "symfony/console": "6.3.", "symfony/doctrine-messenger": "6.3.", "symfony/dotenv": "6.3.", "symfony/expression-language": "6.3.", "symfony/filesystem": "6.3.", "symfony/finder": "6.3.", "symfony/flex": "^2", "symfony/form": "6.3.", "symfony/framework-bundle": "6.3.", "symfony/http-client": "6.3.", "symfony/intl": "6.3.", "symfony/loco-translation-provider": "6.3.", "symfony/mailer": "6.3.", "symfony/mime": "6.3.", "symfony/notifier": "6.3.", "symfony/postmark-mailer": "6.3.", "symfony/process": "6.3.", "symfony/property-access": "6.3.", "symfony/property-info": "6.3.", "symfony/proxy-manager-bridge": "6.3.", "symfony/runtime": "6.3.", "symfony/security-bundle": "6.3.", "symfony/serializer": "6.3.", "symfony/string": "6.3.", "symfony/translation": "6.3.", "symfony/twig-bundle": "6.3.", "symfony/uid": "6.3.", "symfony/ux-chartjs": "^2.7", "symfony/ux-twig-component": "^2.7", "symfony/validator": "6.3.", "symfony/web-link": "6.3.", "symfony/webapp-meta": "^1.0", "symfony/webpack-encore-bundle": "^1.16", "symfony/yaml": "6.3.", "symfonycasts/reset-password-bundle": "^1.16", "twig/cssinliner-extra": "^3.6", "twig/extra-bundle": "^2.12|^3.0", "twig/inky-extra": "^3.6", "twig/twig": "^2.12|^3.0" }, "config": { "allow-plugins": { "composer/package-versions-deprecated": true, "symfony/flex": true, "symfony/runtime": true }, "optimize-autoloader": true, "preferred-install": { "": "dist" }, "sort-packages": true }, "autoload": { "psr-4": { "App\": "src/" } }, "autoload-dev": { "psr-4": { "App\Tests\": "tests/" } }, "replace": { "symfony/polyfill-ctype": "", "symfony/polyfill-iconv": "", "symfony/polyfill-php72": "" }, "scripts": { "auto-scripts": { "cache:clear": "symfony-cmd", "assets:install %PUBLIC_DIR%": "symfony-cmd", "ckeditor:install --tag=4.22.1": "symfony-cmd" }, "post-install-cmd": [ @." ], "post-update-cmd": [ @." ] }, "conflict": { "symfony/symfony": "" }, "extra": { "symfony": { "allow-contrib": false, "require": "6.3." } }, "require-dev": { "doctrine/doctrine-fixtures-bundle": "^3.4", "rector/rector": "^0.17.0", "symfony/debug-bundle": "6.3.", "symfony/maker-bundle": "^1.36", "symfony/stopwatch": "6.3.", "symfony/web-profiler-bundle": "6.3.*" } }

thanks

On Mon, Dec 4, 2023 at 5:09 AM Bartosz Młotek @.***> wrote:

@chapalele https://github.com/chapalele can you please provide your composer.json file?

— Reply to this email directly, view it on GitHub https://github.com/ckfinder/ckfinder-symfony-bundle/issues/51#issuecomment-1838029222, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJCKZNUQ5PVZQ3KOOBMVTYHWAJ5AVCNFSM6AAAAAASXBWGKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZYGAZDSMRSGI . You are receiving this because you were mentioned.Message ID: @.***>

bmlotek commented 10 months ago

That is weird.

I downloaded fresh instance of symfony v6.3.0 and went through standard procedure of setting up ckfinder-symfony-bundle package. Everything works fine.

Can you please try to delete vendor and your composer.lock (make sure that everything is deleted properly). Then clear cache and use again composer install.

Please let me know if that helped.