In Report Logs we we’re getting these errors on Clearing the Cache.
Warning: array_splice() expects parameter 1 to be array, null given in omega_theme_registry_alter() (line 458 of */sites/all/themes/contrib/omega/omega/template.php).
Warning: array_search() expects parameter 2 to be array, null given in omega_theme_registry_alter() (line 445 of /Users/DJ/Sites/mampsites/sccbb/sites/all/themes/contrib/omega/omega/template.php).
Warning: array_unshift() expects parameter 1 to be array, null given in omega_theme_registry_alter() (line 447 of /Users/DJ/Sites/mampsites/sccbb/sites/all/themes/contrib/omega/omega/template.php).
Warning: array_splice() expects parameter 1 to be array, null given in omega_theme_registry_alter() (line 449 of /Users/DJ/Sites/mampsites/sccbb/sites/all/themes/contrib/omega/omega/template.php).
Notice: Undefined index: preprocess functions in omega_theme_registry_alter() (line 445 of /Users/DJ/Sites/mampsites/sccbb/sites/all/themes/contrib/omega/omega/template.php).
To test this I locally ran this test in the omega/template.php at line 445
// @todo temporary debugging code to look for an error // check to see if this is an arry if (!is_array($registry[$hook]['preprocess functions'])){ watchdog('!array preprocess func', $hook); } if (!isset($registry[$hook]['preprocess functions'])){ watchdog('!isset preprocess func', $hook); } // @todo end debugging
This report any hook preprocess functions that are not as should be . Which returned the one result .
‘block_swiper’
On checking we have a Swiper module installed. When disabled we no longer receive a PHP error message. Also note on checking Clear Cache needs to be run each time.
No comments:
Post a Comment