V
V
Vadim2016-03-15 12:58:50
symfony
Vadim, 2016-03-15 12:58:50

Why doesn't ckeditor work in Symfony2 after uploading to hosting?

Installed ckeditor in symfony2 using IvoryCKEditorBundle according to official documentation. The site has been uploaded to hosting. This hosting features:


3. Be sure to copy the files and directories of the system to the main directory of the site, but at the same time all the contents of the /web folder should also be placed in the main directory.

4. Next, in the app.php and app_dev.php files, you need to change the lines:

$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';

on the:
$loader = require_once __DIR__.'/app/bootstrap.php.cache';
require_once __DIR__.'/app/AppKernel.php';



In the config.php file:
require_once dirname(__FILE__).'/../app/SymfonyRequirements.php';


change the line to:
require_once dirname(__FILE__).'/app/SymfonyRequirements.php';




Everything was done according to the recommendations of the hosting. After downloading, ckeditor stopped working, although everything worked fine on the locale. I assume that the problem is in these changes.
Where is it possible to rewrite paths in Symfony2? Or where is the path to the web folder written? Or is the reason something else?
By the way, tinymce was installed before ckeditor and the problem was the same.

PS Do not judge strictly, this is my first project.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2016-03-15
@skobkin

Firstly, you may not have set the statics with the team assets:installor assetic:dumpon the hosting.
Secondly, it's better to take an inexpensive VPS and test on it.

E
elasticweb.org, 2016-04-21
@elasticweb

Open browser console and check for js errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question