Hello, I created and uploaded a new theme in magento2 and so far no problem, then I went administrative side and I changed the compile settings by selecting Client-side compilation as specified here:
https://www.creare.co.uk/blog/magento/theming-in-magento-2-part-2
but from this moment on, I see this error:
There has been an error processing your request
Notice: Array to string conversion in /storage/www/magentotest.it/vendor/magento/framework/View/Page/Config/Renderer.php on line 317
Error log record number: 166041246115
how do I fix?
Thanks
What is the code at the line specified in the error message?
The following piece of code:
protected function getAssetTemplate($contentType, $attributes) { switch ($contentType) { case 'js': $groupTemplate = '<script ' . $attributes . ' src="%s"></script>' . "\n"; -> This is the fault line break; case 'css': default: $groupTemplate = '<link ' . $attributes . ' href="%s" />' . "\n"; break; } return $groupTemplate; }
Thanks