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

Failed to run php craft ckeditor/convert: exit status 1 #200

Closed
CreateSean opened this issue Mar 29, 2024 · 11 comments
Closed

Failed to run php craft ckeditor/convert: exit status 1 #200

CreateSean opened this issue Mar 29, 2024 · 11 comments
Labels

Comments

@CreateSean
Copy link

CreateSean commented Mar 29, 2024

Description

Installed CKeditor so I can migrate from redactor. When I run the CLI command php craft ckeditor/convert I get the following error message.

λ ddev php craft ckeditor/convert
Unknown command: ckeditor/convert
Caused by: Exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "ckeditor/convert".'    

in /var/www/html/vendor/yiisoft/yii2/base/Module.php:561     

Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('ckeditor/conver...', Array)#1 /var/www/html/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('ckeditor/conver...', Array)
#2 /var/www/html/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('ckeditor/conver...', Array)
#3 /var/www/html/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest(Object(craft\console\Request))
#4 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest(Object(craft\console\Request))
#5 /var/www/html/craft(13): yii\base\Application->run()      
#6 {main}
Failed to run php craft ckeditor/convert: exit status 1

Steps to reproduce

Additional info

  • Craft version: 4.7.4
  • PHP version:8.2.15
  • Database driver & version:mysql 8.0
  • Plugins & versions:
@CreateSean CreateSean added the bug label Mar 29, 2024
@green17
Copy link

green17 commented Mar 30, 2024

We get the same problem.

@brandonkelly
Copy link
Member

Go to SettingsPlugins and make sure that CKEditor is installed first. Or run the following command:

php craft plugin/install ckeditor

@CreateSean
Copy link
Author

plugin was installed, but uninstalling and re-installing fixed it.

@thom-moresoda
Copy link

I'm having similar issues, although re-installing didn't resolve anything

Craft version: 3.9.4
PHP version: 7.4

ddev craft ckeditor/convert       
Unknown command: ckeditor/convert
Caused by: Exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "ckeditor/convert".'

in /var/www/html/vendor/yiisoft/yii2/base/Module.php:561

Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('ckeditor/conver...', Array)
#1 /var/www/html/vendor/craftcms/cms/src/console/Application.php(89): yii\console\Application->runAction('ckeditor/conver...', Array)
#2 /var/www/html/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('ckeditor/conver...', Array)
#3 /var/www/html/vendor/craftcms/cms/src/console/Application.php(118): yii\console\Application->handleRequest(Object(craft\console\Request))
#4 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest(Object(craft\console\Request))
#5 /var/www/html/craft(22): yii\base\Application->run()
#6 {main}
Failed to run craft ckeditor/convert: exit status 1

@alexmglover
Copy link

I am having the same issue as well, and uninstalling/reinstalling didn't work.

Craft Version: 3.9.13
Php Version: 8.1.27

@patrickcanlas-psandco
Copy link

Similar issue here as well. Uninstall/reinstall did not work.

CKEditor Version: 1.5.0
Craft Version: 3.9.13
PHP Version: 7.4
MySQL Version: 5.7

@alexmglover
Copy link

Not sure how I overlooked this, but I realized the convert command doesn't exist in CKeditor 1.5.0. I have been working on manually converting using the Javascript initialization field.

@patrickcanlas-psandco
Copy link

Not sure how I overlooked this, but I realized the convert command doesn't exist in CKeditor 1.5.0. I have been working on manually converting using the Javascript initialization field.

@alexmglover how do you do it?

@thom-moresoda
Copy link

@brandonkelly is the convert command only available in later versions of ckeditor? eg. I'll need to update craft to v4 first

@brandonkelly
Copy link
Member

ckeditor/convert wasn’t added until CKEditor 3.1.0, so you will need to update to at least that version before running it. (If you’re upgrading to Craft 5 + CKEditor 4.x, you could also wait and run it after the upgrade.)

@jonathanbright
Copy link

I have version 3.8.3 of the CKEditor plugin and running "php craft ckeditor/convert" returns "Unknown command: ckeditor/convert"

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

7 participants