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: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 207
Total: 207

Author Topic: Error when viewing an item  (Read 3957 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Error when viewing an item
« on: February 06, 2014, 12:01:24 am »
Quote
8: Undefined index: buttons_item
File: /home/biologyf/public_html/Themes/default/Store.template.php
Line: 1033

And the code that corresponds to it is this:

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>
</table><table cellspacing="0" cellpadding="5" border="0" align="center" width="90%" class="tbordertp">';

Where Line: 1033 is the DoToolBarStrip statement.

Also, at the same time, I'm getting this error:

Quote
2: Invalid argument supplied for foreach()
File: /home/biologyf/public_html/Themes/default/index.template.php
Line: 1522

And this is what corresponds to it:

Code: [Select]
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

Where Line: 1522 is the foreach statement

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Error when viewing an item
« Reply #1 on: February 06, 2014, 01:23:39 pm »
Around all that code where the beginign echo statement is
Would need this added
if (isset($context['store']['buttons_item']))
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: Error when viewing an item
« Reply #2 on: February 07, 2014, 12:48:39 am »
Around all that code where the beginign echo statement is
Would need this added
if (isset($context['store']['buttons_item']))

The one in index.template or the other one?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Error when viewing an item
« Reply #3 on: February 07, 2014, 11:06:25 am »
Themes/default/Store.template.php
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
4904 Views
Last post January 24, 2007, 10:16:35 pm
by SMFHacks
1 Replies
2684 Views
Last post June 10, 2010, 07:50:49 pm
by SMFHacks
3 Replies
3410 Views
Last post September 22, 2011, 07:36:35 am
by mandomercs
5 Replies
6610 Views
Last post April 17, 2014, 06:35:33 pm
by SMFHacks
5 Replies
2375 Views
Last post July 21, 2022, 08:46:00 am
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

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