Hi Everyone,
The cart implementation is going great...but I just ran into a little snag. I added the Cart Widget to the side bar but the following errors are displayed in the widget itself (this is in the backend where you chose the widgets)...the widget seems to be running fine on the front end...weird:
First Error:
Warning: strpos() expects parameter 1 to be string, array given in /home/pumpkin/public_html/wptest/wp-content/themes/PumpkinLady1024_5/library/misc.php on line 15
Here's the code that it's pointing out:
function theme_is_vmenu_widget($id){
return (strpos($id, 'vmenu') !== false); <-- Line 15 ---
}
Second Error:
Warning: Illegal offset type in isset or empty in /home/pumpkin/public_html/wptest/wp-content/themes/PumpkinLady1024_5/library/misc.php on line 4
Here's the code that it's pointing out:
function theme_get_array_value($arr = array(), $key = null, $def = false){
if (is_array($arr) && isset($arr[$key])){ <-- Line 4 ---
return $arr[$key];
}
return $def;
}
Thanks,
Jack