Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12372
Latest: AllMassive
New This Month: 8
New This Week: 3
New Today: 3
Stats
Total Posts: 39810
Total Topics: 7016
Most Online Today: 132
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 40
Total: 41

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
    • Homework Clinic - Your Academic Lifeline
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: 14919
    • 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: 649
    • View Profile
    • Homework Clinic - Your Academic Lifeline
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: 14919
    • 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: 649
    • View Profile
    • Homework Clinic - Your Academic Lifeline
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: 14919
    • 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
3896 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
3 Replies
2021 Views
Last post September 22, 2011, 07:36:35 am
by mandomercs
8 Replies
2104 Views
Last post June 26, 2013, 01:51:08 pm
by SMFHacks
1 Replies
1860 Views
Last post January 21, 2014, 05:30:57 pm
by Gman
3 Replies
2624 Views
Last post February 07, 2014, 11:06:25 am
by SMFHacks

+- Recent Topics

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Picture Edit by SMFHacks
August 27, 2019, 11:52:06 am

Getting an error while installing SMF Gallery Pro by SMFHacks
August 18, 2019, 06:54:37 pm

Hashtag Mod Install Error by SMFHacks
August 15, 2019, 08:17:45 am

Rotating Image URLs by SMFHacks
August 05, 2019, 04:26:57 pm

[Mod]Block Proxy VPN On Registration by SMFHacks
August 01, 2019, 10:42:37 pm

[Mod]Nofollow Signature Links by SMFHacks
July 30, 2019, 11:52:28 am

Thinking of getting Ad Seller Pro as well by ajac63
July 28, 2019, 04:46:34 am

Just some questions about Ad Management mod by ajac63
July 26, 2019, 12:12:26 pm

Powered by EzPortal