symfony - Symfony2 MopaBootstrap - exception in BootstrapSandbox CSS -


i'm trying mopabootstrapsandbox demo , running on win 7 / xampp installation. can see main demo page isn't styled. when @ stylesheet see following exception in ... isn't whole of exception interleaved css.

[exception] 500 | internal server error | exception [message] expected color value: failed @ `color: darken(@graylight, 10%); }` line: 33 [1] exception: expected color value: failed @ `color: darken(@graylight, 10%); }`      

line: 33

at n/a     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 3258  @ lessc_parser->throwerror('expected color value', '399')     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 1862  @ lessc->throwerror('expected color value')     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 1070  @ lessc->assertcolor(array('keyword', ''))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 919  @ lessc->colorargs(array('list', ',', array(array('keyword', ''), array('number', '10', '%'))))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 926  @ lessc->lib_darken(array('list', ',', array(array('keyword', ''), array('number', '10', '%'))), object(lessc))     in  line   @ call_user_func(array(object(lessc), 'lib_darken'), array('list', ',', array(array('keyword', ''), array('number', '10', '%'))), object(lessc))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 1275  @ lessc->reduce(array('function', 'darken', array('list', ',', array(array('variable', '@graylight'), array('number', '10', '%')))))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 617  @ lessc->compileprop(array('assign', 'color', array('function', 'darken', array('list', ',', array(array('variable', '@graylight'), array('number', '10', '%')))), '399'), object(stdclass), object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 277  @ lessc->compileprops(object(stdclass), object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 215  @ lessc->compilecssblock(object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 189  @ lessc->compileblock(object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 622  @ lessc->compileprop(array('block', object(stdclass), '431'), object(stdclass), object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 277  @ lessc->compileprops(object(stdclass), object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 271  @ lessc->compileroot(object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 186  @ lessc->compileblock(object(stdclass))     in c:\xampp\htdocs\t1\vendor\leafo\lessphp\lessc.inc.php line 1663  @ lessc->compile('// 

here's composer.json (part)

"require": {     "php": ">=5.3.3",     "symfony/symfony": "2.3.*",     "jms/security-extra-bundle": "dev-master",     "doctrine/orm": ">=2.2.3,<2.4-dev",     "doctrine/doctrine-bundle": "1.2.*",     "twig/extensions": "1.0.*",     "symfony/assetic-bundle": "2.3.*",     "symfony/swiftmailer-bundle": "2.3.*",     "symfony/monolog-bundle": "2.3.*",     "sensio/distribution-bundle": "2.3.*",     "sensio/framework-extra-bundle": "2.3.*",     "sensio/generator-bundle": "2.3.*",     "incenteev/composer-parameter-handler": "~2.0",     "mopa/bootstrap-bundle": "master",     "twitter/bootstrap": "2.3.1",     "knplabs/knp-paginator-bundle": "dev-master",     "knplabs/knp-menu": "dev-master",     "knplabs/knp-menu-bundle": "2.0.*@dev",     "craue/formflow-bundle": "dev-master",     "leafo/lessphp": "0.3.9",     "liip/theme-bundle": "dev-versionfix master", },     "scripts": {     "post-install-cmd": [ ...          "mopa\\bundle\\bootstrapbundle\\composer\\scripthandler::postinstallsymlinktwitterbootstrap"     ],     "post-update-cmd": [ ...         "mopa\\bundle\\bootstrapbundle\\composer\\scripthandler::postinstallsymlinktwitterbootstrap"     ] }, 

to honest i'm quite new symfony 2 appreciated.

thanks

im not sure if helps or not but, leafo/lessphp may issue.. having similar problem less files compiling , found leafo not being updated on regular basis.. (forum post) can change leafo more stable distribution (oyejorge/less.php)

change composer.phar file to:

"oyejorge/less.php": "~1.5", 

run:

php composer.phar update 

this remove lefo , install oyejorge change config.yml file to:

assetic:     debug:          "%kernel.debug%"     use_controller: false     #bundles:        [ ]     #java: /usr/bin/java     filters:         lessphp:             file: %kernel.root_dir%/../vendor/oyejorge/less.php/lessc.inc.php             apply_to: ".less$"             # formatter options: compressed, lessjs, classic             formatter: "compressed"             preserve_comments: false 

if want can change filter name less instead of lessphp.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -