Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 3
New Today: 1
Stats
Total Posts: 42791
Total Topics: 7455
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 68
Total: 68

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 663
    • 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: 16233
    • 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: 663
    • 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: 16233
    • 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: 663
    • 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: 16233
    • 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
4276 Views
Last post June 25, 2008, 08:14:02 pm
by SMFHacks
8 Replies
2960 Views
Last post June 26, 2013, 01:51:08 pm
by SMFHacks
1 Replies
2287 Views
Last post January 21, 2014, 05:30:57 pm
by Gman
3 Replies
3379 Views
Last post February 07, 2014, 11:06:25 am
by SMFHacks
2 Replies
95 Views
Last post February 25, 2023, 09:07:08 am
by SMFHacks

+- Recent Topics

prettyurls - TroubleShooting.wiki by thatsjustit
March 24, 2023, 07:56:39 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Powered by EzPortal