Closed (works as designed)
Project:
Block Theme
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2013 at 14:25 UTC
Updated:
22 Feb 2024 at 15:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mindhunter75 commentedSame error here:
Notice: Undefined offset: 1 in blocktheme_get_blockthemes() (regel 255 van /public_html/sites/all/modules/blocktheme/blocktheme.module).
Notice: Undefined offset: 1 in blocktheme_get_blockthemes() (regel 255 van /public_html/sites/all/modules/blocktheme/blocktheme.module).
Comment #2
Xtal commentedFrom what I can see this isn't an issue in the code.
I found by adding a dpm for the options like so:
You can see the array of options like so:
In my case you can see the last item in the array is NULL. This means there is a value that shouldn't be there.
I found I had an extra blank line in config section where you declare the settings, eg:
default|Default
graybg|Gray
primarybg|Purple
(extra return was here)
Removing this extra line will solve the issue.
Furthermore here is a patch that will check if $set[1] actually has a value init with the following change:
Comment #3
Xtal commentedComment #4
astonvictor commentedClose the issue because it is related to incorrect input data. Don't use additional empty lines and follow the next format: default|Default.