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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,021
  • Total Topics: 21,332
  • Online today: 582
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 465
  • Total: 466
  • tino

errors in error_log round 2 :)

Started by GhostRider2110, March 19, 2013, 01:41:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GhostRider2110

Link to my site: http://usscalemasters.org/index.php
SMF version: SMF ver. 2.0.2
TP version: TP ver. 1.0
Default Forum Language: English
Theme name and version: Modified BigSky
Mods installed: Mods listed here
1.Aeva Media2.10
2.SMF Notify Group2.2
3.Welcome Topic Mod2.1
4.reCAPTCHA for SMF0.9.8a
5.Ad Managment3.0.1
6.Google Analytics Code1.4
7.Custom Form Mod1.7
8.httpBL2.5.1
9.Stop Spammer2.3.9
10.TinyPortal1.107
Back to trying to address a few errors
Getting this in the error_log:

PHP Notice:  Undefined index: tp-downloads in /home/usscalem/public_html/forumsmf2/Sources
/Subs.php on line 3976

forum' => array(
                                'title' => isset($txt['tp-forum']) ? $txt['tp-forum'] : 'Community',
                                'href' => $scripturl . '?action=forum',
                                'show' => true,
                                'sub_buttons' => array(
                                        'forum' => array(
                                                'title' => 'Forums',
                                                'href' => $scripturl . '?action=forum',
                                                'show' => true,
                                        ),
                                        'files' => array(
                                                'title' => $txt['tp-downloads'],
                                                'href' => $scripturl . '?action=tpmod;dl',
                                                'show' => true,
                                        ),


Snipet from Subs.php...

Thanks

See-ya
Mitch
Mitchell Baker

Crip

If you don't use DL_manager..? => it should be deactivated , not that doing so will stop the error in log tho -
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

The variable $txt['tp-downloads'] is in both the TPdlmanager.english.php and TPortal.english.php files. TPortal.english.php file is always loaded. So you are likely missing that variable in the file, or something else is unsetting that variable.

GhostRider2110

I am using download manager....

Hmm where would I look for that.  I do know that that is the only place in Subs.php where tp-downloads shows up...

See-ya
Mitch
Mitchell Baker

IchBin

I gave you the file names in the last post that you need to look at.

GhostRider2110

Mitchell Baker

GhostRider2110

Seems to be there:

[root@vps ../Themes/default/languages]# grep "$txt\['tp-downloads" *
TPdlmanager.english.php:$txt['tp-downloads'] = 'Downloads';
TPdlmanager.english.php:$txt['tp-downloadsection'] = 'Download Section';
TPdlmanager.english.php:$txt['tp-downloadsection2'] = 'File Repository';
TPdlmanager.english-utf8.php:$txt['tp-downloads'] = 'Downloads';
TPdlmanager.english-utf8.php:$txt['tp-downloadsection'] = 'Download Section';
TPdlmanager.english-utf8.php:$txt['tp-downloadsection2'] = 'File Repository';
TPortal.english.php:$txt['tp-downloads'] = 'Downloads';
TPortal.english-utf8.php:$txt['tp-downloads'] = 'Downloads';

Mitchell Baker

GhostRider2110

Only other places it shows up:

Sources/TPdlmanager.php:    $context['TPortal']['tp-downloads'] = array();
Sources/TPdlmanager.php:    $context['TPortal']['tp-downloads'] = array();
Sources/TPdlmanager.php:        $context['TPortal']['tp-downloads'] = chain('id', 'size', 'file', $sorted);
Sources/TPdlmanager.php:        $context['TPortal']['tp-downloads'] = $sorted;


Thanks

See-ya
Mitch
Mitchell Baker

IchBin

So they only question that remains I suppose, are you using utf8? If so, make sure your language files with utf8 are utf8 (without BOM) encoded.

GhostRider2110

Ok, right now my brains are mush...  I know I should know what you are meaning...  but for the life of me..  I'm so glad tomorrow is Friday...  Ok.. first without BOM?  Check for utf8 in SMF?   Sorry.. it's been a long week.. --Mitch
Mitchell Baker

This website is proudly hosted on Crocweb Cloud Website Hosting.