Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 772
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 750
Total: 750

Author Topic: Getting an error on item view  (Read 8640 times)

0 Members and 1 Guest are viewing this topic.

Getting an error on item view
« on: »
2: Invalid argument supplied for foreach()
File: .../public_html/Themes/default/index.template.php
Line: 1494


It corresponds to this:

Code: [Select]
// Create the buttons...
foreach ($button_strip as $key => $value)
{

How do I fix this?
« Last Edit: April 17, 2014, 05:49:53 pm by shuban »

Re: Getting an error on item view
« Reply #1 on: »
It would be part of any store calls that say DoToolBarStrip normally means you aren't passing buttons/it is empty the button array you are passing.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting an error on item view
« Reply #2 on: »
True, but how do I stop it from coming up?

Re: Getting an error on item view
« Reply #3 on: »
You would need to trace where it is coming from. If it is item view would be in the template_viewitem function
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: Getting an error on item view
« Reply #4 on: »
It's this one:

Code: [Select]
<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Product">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="90%">
<tr>
<td style="padding-right: 1ex;" align="right" >
<table cellpadding="0" cellspacing="0" align="right">
<tr>
', DoToolBarStrip($context['store']['buttons_item'], 'bottom'), '
</tr>
</table>
</td>
</tr>

I know because when I delete it, the error goes away. But I can't just delete it... What can I do with it?

Re: Getting an error on item view
« Reply #5 on: »
You probably removed something above $context['store']['buttons_item']
Is what sets that up.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
6325 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
8 Replies
5941 Views
Last post June 26, 2013, 01:51:08 pm
by SMFHacks
1 Replies
4807 Views
Last post January 21, 2014, 05:30:57 pm
by Gman
3 Replies
5338 Views
Last post February 07, 2014, 11:06:25 am
by SMFHacks
2 Replies
3451 Views
Last post February 25, 2023, 09:07:08 am
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as &#39; in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal