Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43294
Total Topics: 7523
Most Online Today: 124
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 105
Total: 105

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Getting an error on item view
« on: April 17, 2014, 05:43:15 pm »
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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Getting an error on item view
« Reply #1 on: April 17, 2014, 06:00:34 pm »
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/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Getting an error on item view
« Reply #2 on: April 17, 2014, 06:09:57 pm »
True, but how do I stop it from coming up?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Getting an error on item view
« Reply #3 on: April 17, 2014, 06:13:46 pm »
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/

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Getting an error on item view
« Reply #4 on: April 17, 2014, 06:24:03 pm »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Getting an error on item view
« Reply #5 on: April 17, 2014, 06:35:33 pm »
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
4944 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
8 Replies
4040 Views
Last post June 26, 2013, 01:51:08 pm
by SMFHacks
1 Replies
3289 Views
Last post January 21, 2014, 05:30:57 pm
by Gman
3 Replies
3954 Views
Last post February 07, 2014, 11:06:25 am
by SMFHacks
2 Replies
1482 Views
Last post February 25, 2023, 09:07:08 am
by SMFHacks

+- Recent Topics

Please Help! by fmofmpls
Today at 01:47:09 pm

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal