php - Fatal error: Unsupported operand types in /var/www/mysite/includes/theme.inc on line 637 -


the error occurred when trying customized own login page in drupal, according source: tutorial on how customize , overriding login pages in drupal

and i've been using drush cc all clear cache , somehow appeared. haven't done in codes, since still working when i'm trying apply it, , sure, traced edits , nothing seems wrong it.

the line in 637 in mysite/includes/theme.inc

 // merge newly created theme hooks existing cache. $cache = $result + $cache; 

it states $result , $cache not having same datatype. that's why facing problem. try var_dump() both value , check there datatype.

as stated in comment based on need below:-

if(isset($result) && !empty($result)){$cache = $result + $cache;}


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -