TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 05:05:46 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 175
  • Total: 175

"8: Undefined index:" errors

Started by whoodoo, April 04, 2008, 09:19:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

whoodoo

Version Information:
Forum version: SMF 1.1.4
Current SMF version: SMF 1.1.4
Tinyportal version: 0.9.8
Mods: Spoiler tags, shoutbox, gallery lite
Current theme: StrmLord WOW theme (gfx slighty changed, but code the same)

Im having problems recently with new posts being timed out, "Your session timed out while posting. Please try to re-submit your message." quite a lot, checking the error logs I found I had about 40 pages of errors, I cleared them and now its working fine again. However under normal use the error log is filling up very fast indeed, 3-4 pages a day, which seems to be causing posting errors.

Here are the errors I am getting:

QuoteWhoodoo   Today at 08:06:41 AM 
194.XXX.XXX.XXX     a491e19f5819dc0807466e926c23227d 
http://warhammer.whoodoo.org/index.php?action=viewErrorLog;desc 
8: Undefined index: smfgallery_admin
File: /home/whoodoo/public_html/warhammer/Sources/Subs.php
Line: 2748

   Whoodoo   Today at 08:06:41 AM 
194.XXX.XXX.XXX     a491e19f5819dc0807466e926c23227d 
http://warhammer.whoodoo.org/index.php?action=viewErrorLog;desc 
8: Undefined index: spoiler
File: /home/whoodoo/public_html/warhammer/Sources/Subs.php
Line: 1498

Im not sure if this is an SMF or TP problem, but I know you guys will be able to point me in the right direction. Any advice will be great!

william777

For the first undefined index error, you need the following codes in /Themes/theme name/languages/Modifications.english.php

//Begin SMF Gallery Text Strings
$txt['smfgallery_title'] = 'Gallery For SMF';
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_version'] = '1.0 Lite';
$txt['smfgallery_admin'] = 'Gallery Configuration';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit a picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit a picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete a picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete a picture.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_manage'] = 'Manage Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//END SMF Gallery Text Strings

AleXit

I have a lot of similar error in my board:

8: Undefined index: page
File: /var/www/domini/studenti.fi.it/www/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Linea: 132


What could it be?

Thanks

G6Cad

Your spoiler tag mod and SMF gallery so i suggest you seek help from SMf or the sites you got them from.

AleXit


G6Cad

Dont know as you havent provided any info according to the posting guide we have.

AleXit

I'm sorry, you are right  :-X
Here you are:

Link to my site: http://www.studenti.fi.it
SMF version: SMF 1.1.4
TP version: TP 0.9.8
Theme name and version: Amber TP 1.1
Mods installed: Youtube, Spam Black List, SMF Gallery Lite, SMF Sitemap, Colorized Membergroups, Ad Managment, VisualWarnings, User Email System, Custom Profile Field Mod, SMF Staff Page, Spoiler, Gender On Registration, Member Color Link
Related Error messages: As I have reported above:
8: Undefined index: page
File: /var/www/domini/studenti.fi.it/www/forum/Themes/default/TPortal.template.php (main sub template - eval?)
Linea: 132


Thank you!

G6Cad

Eather one of these 2 mods are the cause of your error, both of them have "page" so you havee to manually check the files the mod changes and make sure they are correctly added to the SMF files.
Also offcourse this is for the Default Core theme, if you have several themes installed, you need to make the same check for the code in all of them.

the mods you need to check is SMF Staff Page and SMF Sitemap

Best way to get help is from the SMF site and the mod creators as they know the code inside out.

AleXit

Thank you for the answer.

I checked SMFstaff code  and removed sitemap, but the error is still there... :(
I will looking further...