This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

eliansukkel15772
eliansukkel15772

Hi,

Whenever i set enableAssetMinify to true in cms.php i get the following error:

An exception has been thrown during the rendering of a template ("Call to undefined method [registerFilter]").

Also, leaving this to null and turning off app.debug does not work either. I just get the standard error page ( which i just turned on by switching off debug mode after all ).

Any ideas? I can always provide more info if needed, of course. But this error's got me pretty clueless.

Thanks

Crazymodder
Crazymodder

Do you include your scripts like this:

<script src="{{ ['assets/js/one.js', 'assets/js/two.js']|theme }}"></script>
eliansukkel15772
eliansukkel15772

@Crazymodder:

Yes. I do that. It points to that as the problem in the stack trace. How else should i do it? I have my scripts combined like this:

<script src="{{ [
        'assets/javascript/asset1.js'',
        'assets/javascript/asset2.js',
        'assets/javascript/asset3.js',
        'assets/javascript/asset4js',
        'assets/javascript/app.js'
    ]|theme }}"></script>

And my css line by line, like this:

<link href="{{ [
        'assets/css/asset1.css'
    ]|theme }}" rel="stylesheet">
<link href="{{ [
        'assets/css/asset2.scss'
    ]|theme }}" rel="stylesheet">

Last updated

DMeganoski
DMeganoski

What file and line is this error coming from? I found where it calls that function in CombineAssets.php, however that function is part of the same class and it would make no sense that it didn't find it.

eliansukkel15772
eliansukkel15772

I eventually found out the error was related to the SCSS plugin. The author fixed it, so everything is working now. Thanks for the help.

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.