Hi everyone, this is my first post. Sorry to disturb...
I'm getting this
Warning: Undefined array key "base" en _color_rewrite_stylesheet() (línea 705 de /core/modules/color/color.module).
and when I've tried to Flush Cache:
TypeError: Unsupported operand types: null + array on theme() (line 1103 of .../core/includes/theme.inc)
Previously the user was updating products on Ubecart, mostly replacing images PNG for WEBP.
Thanks in advance for your help.
Comments
Hola, Sergio. Welcome to the Backdrop CSM forum.
The first error is most likely related to the Color module - I doubt this is related to the replacement of images. There must be something wrong with the color palette or color files placed inside the files folder.
It's tricky to figure this out just from your description. I would suggest you visit the Backdrop "office hours" to get help, or post the problem in the Zulip Backdrop channel where people can interact more or less in real time.
It would also be helpful to know which version of Backdrop you are using, and what theme.
Also, just to try, see if disabling and uninstalling the Color module helps. You'll lose all your customizations, so you want to do this not on the production site, and after backing up the database, files and config directories.
Hey, that was quick! Thanks for your reply. I just tried disabling the color module in a local environment and I get the same error as clearing the cache.
Error
Unsupported operand types: null + array
My Backdrop version is 1.31.0, and I'm using a Colihaut 1.x-1.0.1 subtheme.
Did the first error go away? Are you only getting the second error now?
I encourage you to post your question on Zulip for quicker interaction. If someone helps you solve the problem, then you can come back here and post the solution.
For the second error, we need to figure out which theme hook is producing it. Are you able to enable Devel and insert a debuging line where the problem happens?
In line 1102 of theme.inc, try replacing:
with:
This may produce other problems, but at least we'll know which theme hook is producing the issue.
Thank you so much for your help. I'll be in touch soon through the Zulip channel. I'll try your suggestion as soon as I can. Of course, I'll share the results with the community; perhaps it will be helpful to other members.