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: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 267
Total: 267

Author Topic: gallery error  (Read 6193 times)

0 Members and 1 Guest are viewing this topic.

Offline Bergler

  • Member
  • *
  • 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: 16452
    • 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
4454 Views
Last post May 18, 2009, 10:09:20 pm
by SMFHacks
index error in gallery

Started by guest3817 Support

7 Replies
4967 Views
Last post September 11, 2011, 10:39:12 am
by SMFHacks
1 Replies
2562 Views
Last post February 21, 2019, 09:28:40 pm
by SMFHacks
1 Replies
2753 Views
Last post May 26, 2019, 04:56:46 pm
by SMFHacks
6 Replies
1810 Views
Last post June 08, 2023, 10:32:59 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