CoreSphere / ConsoleBundle

Commandline interface in browser for Symfony2
BSD 3-Clause "New" or "Revised" License
140 stars 54 forks source link

[parsererror] SyntaxError: JSON.parse: unexpected character #3

Closed Paniki closed 11 years ago

Paniki commented 11 years ago

Hello,

I'm using your bundle, witch is very useful, in Symfony 2.0 and 2.1.6 because we don't have ssh access.

I've update to Symfony 2.1.7, and now, i'm getting the error :+1:

 ** [parsererror] SyntaxError: JSON.parse: unexpected character

when i'm trying to clear the cache ? When some others commands are working (list, assets install web).

Can you help ? The "clea:cache" it's the command we most use ...

Thx

laszlokorte commented 11 years ago

Hi @Paniki,

I just tested the bundle with symfony 2.1.7 and it works fine for me.

Could you please use your browsers developer tools to check what response the server sends when submitting the cache:clear command?

Paniki commented 11 years ago

Hello,

here it is :

Fatal error: appDevDebugProjectContainer::getDoctrine_Orm_DefaultEntityManagerService(): Failed opening required '/Symfony/Sf.2.1.7/app/cache/dev/jms_diextra/doctrine/EntityManager_50fe3e314bb20.php' (include_path='.:/usr/share/pear:/usr/share/php') in /Symfony/Sf.2.1.7/app/cache/dev/appDevDebugProjectContainer.php on line 452

Other commands seems OK ...

I'm also using sonata, here is my composer.json file : "require": { "php": ">=5.3.3", "symfony/symfony": "2.1.", "doctrine/orm": ">=2.2.3,<2.4-dev", "doctrine/doctrine-bundle": "1.1.", "twig/extensions": "1.0.@dev", "symfony/assetic-bundle": "2.1.", "symfony/swiftmailer-bundle": "2.1.", "symfony/monolog-bundle": "2.1.", "sensio/distribution-bundle": "2.1.", "sensio/framework-extra-bundle": "2.1.", "sensio/generator-bundle": "2.1.", "jms/security-extra-bundle": "1.2.", "jms/di-extra-bundle": "1.1.", "kriswallsmith/assetic": "1.1.@dev", "knplabs/knp-paginator-bundle": "dev-master", "knplabs/knp-menu-bundle":"1.1.*", "sonata-project/jquery-bundle": "dev-master", "sonata-project/cache-bundle": "dev-master", "sonata-project/block-bundle": "dev-master", "sonata-project/exporter": "dev-master", "sonata-project/admin-bundle": "dev-master", "sonata-project/doctrine-orm-admin-bundle": "dev-master", "sonata-project/intl-bundle": "dev-master"

i'm going to retry with a "fresh" install of Symfony 2.1.7.

Paniki commented 11 years ago

nb : The cache is cleared (folder are empty app/cache/)

Paniki commented 11 years ago

Hello again,

it's something with the doctrine-bundle(1.1) in 2.1.7. When i downgrade to doctrine-bundle 1.0, the clear:cache work's again.

....

laszlokorte commented 11 years ago

I assume I can close this issue as it is not caused by the console bundle. correct?

Paniki commented 11 years ago

Hello,

Yes, i suppose :)

If i find something, i'll tell you.

Thx