TinyPortal

Development => Support => Topic started by: darkangel on November 08, 2024, 06:23:40 PM

Title: Error that won't go away
Post by: darkangel on November 08, 2024, 06:23:40 PM
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?
Title: Re: Error that won't go away
Post by: darkangel on November 08, 2024, 07:53:22 PM
Title: Re: Error that won't go away
Post by: @rjen on November 09, 2024, 07:29:56 PM
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?
 
Title: Re: Error that won't go away
Post by: darkangel on November 12, 2024, 05:49:10 PM
sorry, with all the rain and stuff I forgot to come on in...no notification sent. will try this and we'll see. Thanks
Title: Re: Error that won't go away
Post by: darkangel on November 12, 2024, 08:48:17 PM
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?
Title: Re: Error that won't go away
Post by: @rjen on November 12, 2024, 09:43:21 PM
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 ..
Title: Re: Error that won't go away
Post by: darkangel on November 14, 2024, 05:07:02 AM
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.