- This topic has 2 replies, 2 voices, and was last updated 13 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Cart Widget Error
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
This erros is not coming from the eStore plugin not sure why the theme would show an error for a plugin widget. Your theme developer should be able to enlighten this for you.
You don’t have to use the widget that comes with eStore. You can simply add a “Text Widget” to your side bar and use one of the shortcodes to display the shopping cart to show it in the sidebar.
Just wanted to follow up that the issue, for me, was caused by a conflict with the “Dynamic Widgets” plugin. I disabled the plug in and all is well
Thanks,
Jack