Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12382
Latest: ImportedPotato
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 40238
Total Topics: 7088
Most Online Today: 97
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 42
Total: 42

Author Topic: gallery error  (Read 4785 times)

0 Members and 1 Guest are viewing this topic.

Offline Bergler

  • Newbie
  • *
  • Posts: 4
    • View Profile
gallery error
« on: March 06, 2009, 12:38:47 pm »
I have this error, any idea how to fix it??

http://www.flytyingbug.com/forums/index.php?action=gallery&sa=add2 
8: Undefined index: cat
File: /nfs/c03/h03/mnt/52866/domains/flytyingbug.com/html/forums/Sources/Gallery2.php
Line: 634 


Quote
621: 
622:    
   
$_REQUEST['description'] = html_to_bbc($_REQUEST['description']);
623: 
624:    
   
// We need to unhtml it now as it gets done shortly.
625:    
   
$_REQUEST['description'] = un_htmlspecialchars($_REQUEST['description']);
626: 
627: 
628:    
}
629: 
630: 
631:    
$title = htmlspecialchars($_REQUEST['title'],ENT_QUOTES);
632:    
$description = htmlspecialchars($_REQUEST['description'],ENT_QUOTES);
633:    
$keywords = htmlspecialchars($_REQUEST['keywords'],ENT_QUOTES);
==>634:    
$cat = (int) $_REQUEST['cat'];

635:    
@$allowcomments = $_REQUEST['allowcomments'];
636: 
637:    
// Check if pictures are auto approved
638:    
$approved = (allowedTo('smfgallery_autoapprove') ? 1 : 0);
639: 
640:    
// Allow comments on picture if no setting set.
641:    
if(empty($modSettings['gallery_commentchoice']) || $modSettings['gallery_commentchoice'] == 0)
642:    
   
$allowcomments = 1;
643:    
else
644:    
{
645:    
   
if(empty($allowcomments))
646:    
   
   
$allowcomments = 0;
647:    
   
else
648:    
   
   
$allowcomments = 1;
649:    
}
650: 
651:    
if (trim($title) == '')
652:    
   
fatal_error($txt['gallery_error_no_title'],false);
653:    
if (empty($cat))
654:    
   
fatal_error($txt['gallery_error_no_cat'],false);
« Last Edit: March 06, 2009, 12:42:26 pm by Bergler »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15116
    • View Profile
Re: gallery error
« Reply #1 on: March 07, 2009, 12:48:59 am »
Will fix it for next update that is just a warning and is safe to ignore.
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
6 Replies
3783 Views
Last post May 18, 2009, 10:09:20 pm
by SMFHacks
12 Replies
4193 Views
Last post March 30, 2010, 03:46:43 pm
by Bionic Rooster
7 Replies
3928 Views
Last post September 11, 2011, 10:39:12 am
by SMFHacks
1 Replies
805 Views
Last post February 21, 2019, 09:28:40 pm
by SMFHacks
1 Replies
701 Views
Last post May 26, 2019, 04:56:46 pm
by SMFHacks

+- Recent Topics

Call to undefined function mysql_num_rows() by SMFHacks
July 30, 2020, 07:45:29 am

Problem with one videosite embedding by Hatshepsut
July 24, 2020, 01:25:08 am

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Powered by EzPortal