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

Recent

Welcome to TinyPortal. Please login or sign up.

December 06, 2024, 10:28:15 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 158
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 1
  • Guests: 142
  • Total: 143
  • @rjen

Error that won't go away

Started by darkangel, November 08, 2024, 06:23:40 PM

Previous topic - Next topic

0 Members and 6 Guests are viewing this topic.

darkangel

Mods I have now:
1 SMF Staff Page 2.1 November 07, 2024, 04:54:47 PM
2 ArantorSidebar 1.0.1 November 07, 2024, 11:52:29 PM
3 Enhanced Quick Reply 1.0.3 November 01, 2024, 02:09:06 PM
4 Stop Forum Spam 1.5.6 November 01, 2024, 02:20:57 PM
5 TinyPortal 3.0.1 November 07, 2024, 10:33:32 AM
6 Contact Page 7.1 November 07, 2024, 04:48:42 PM
7 Separate the Sticky Topics 1.0.1 November 01, 2024, 03:24:31 PM
8 Mod Version Checker 1.1 November 01, 2024, 02:30:33 PM
9 Join Reason 3.0.0 November 02, 2024, 08:00:12 PM
10 Simple Audio Video Embedder 7.0.5 November 07, 2024, 04:42:07 PM

Error
Type of error
Undefined_vars
Error message
2: Undefined array key "style"
File
/thefantasiesattic/attic/Sources/TPortal.php
Line
1917
URL of page causing the error
https://www.thefantasiesattic.net/attic/index.php?action=forum
Backtrace information
    #0: smf_error_handler()
    Called from /thefantasiesattic/attic/Sources/TPortal.php on line 1917
   
#1: TPortal_panel()
    Called from /thefantasiesattic/attic/Themes/default/TPBlockLayout.template.php on line 157
 
 #2: template_tp_above()
    Called from /thefantasiesattic/attic/Sources/Load.php on line 2778
 
  #3: loadSubTemplate()
    Called from /thefantasiesattic/attic/Sources/Subs.php on line 4562
 
  #4: template_header()
    Called from /thefantasiesattic/attic/Sources/Subs.php on line 4169
 
  #5: obExit()
    Called from /thefantasiesattic/attic/index.php on line 187

What do I need to do?

darkangel

    got this one today when roaming the forum:


    Error
    Type of error
    Undefined_vars
    Error message
    2: Undefined array key "style"
    File
    thefantasiesattic/attic/Sources/TPortal.php
    Line
    1917
    URL of page causing the error
https://www.thefantasiesattic.net/attic/index.php?action=forum


Backtrace information

    #0: smf_error_handler()
    Called from thefantasiesattic/attic/Sources/TPortal.php on line 1917
    #1: TPortal_panel()
    Called from thefantasiesattic/attic/Themes/default/TPBlockLayout.template.php on line 157
    #2: template_tp_above()
    Called from thefantasiesattic/attic/Sources/Load.php on line 2778
    #3: loadSubTemplate()
    Called from thefantasiesattic/attic/Sources/Subs.php on line 4562
    #4: template_header()
    Called from thefantasiesattic/attic/Sources/Subs.php on line 4169
    #5: obExit()
    Called from thefantasiesattic/attic/index.php on line 187[/list]

@rjen

#2
It seems the error is caused by a menublock.

Line 1917: $context['TPortal']['menuvar1'] = $block['style'];

Do you have a menu block defined?
somehow the 'style' variable is not set

Can you go to the block, select a menu style and hit SAVE. Then see if the error is gone?
 
Running Latest TP on SMF2.1 at: www.fjr-club.nl

darkangel

sorry, with all the rain and stuff I forgot to come on in...no notification sent. will try this and we'll see. Thanks

darkangel

Well, I did as you said and it got real...lol

I tried on just 1 block and the error went away but it continued until I went through each and every block. It would pop up the message then refresh and it would not be there...hmmm

it went from that error to:


/thefantasiesattic/attic/Themes/default/TPBlockLayout.template.php (Line 841)


backtrace

Error
Type of error
Undefined_vars
Error message
2: Undefined array key "panelstyle"
File
thefantasiesattic/attic/Themes/default/TPBlockLayout.template.php
Line
841
URL of page causing the error
https://www.thefantasiesattic.net/attic/index.php?action=tpadmin&sa=editblock&id=40;f70edea=d7bd40a2acc8ab6c899c0d1902d24abe



Once I got through all the blocks and also did some font changes due to the older [size=  12pt] would not work right the error went away


ALSO--I know not if this is SMF or TP problem but I was wondering how to get the littlebar at the bottom of the reply (text editor) to come back?

@rjen

Glad you got it solved, but I am VERY curious how you got the blocks in that state. It almost makes me think you imported an old backup of tp_blocks into the database: these settings were introduced recently. If you create new blocks these are set correctly by default ...

The upgraded normally converts blocks from older versions to the new settings ..
Running Latest TP on SMF2.1 at: www.fjr-club.nl

darkangel

There were older tp tables in the database and it would not load the newer versions of TP at all, I had to drop the older tables then the new TP installed.

The weird thing is that when I did a hard refresh much later in the day, all the info showed up. I only had to manually enter some info into the blocks themselves.