TinyPortal

Development => Support => Topic started by: samw on September 18, 2023, 07:04:13 PM

Title: Undefined array key
Post by: samw on September 18, 2023, 07:04:13 PM
Link to my forum: http://www.atvbf.co.uk
SMF version: 2.1.4
TP version: 2.3.1
Default Forum Language: English UTF-8
Theme name and version: Curve2
Browser Name and Version: Chrome 116.0.5845.188
Mods installed: TinyPortal
Related Error messages:
/home/scotbusc/atvbf.co.uk/Sources/TPortal.php (Line 1952)
2: Undefined array key "block_author"

/home/scotbusc/atvbf.co.uk/Sources/TPortal.php (Line 1951)
2: Undefined array key "block_height"

/home/scotbusc/atvbf.co.uk/Sources/TPortal.php (Line 1906)
2: Undefined array key "length"

/home/scotbusc/atvbf.co.uk/Sources/TPortal.php (Line 1905)
2: Undefined array key "include"

/home/scotbusc/atvbf.co.uk/Sources/TPortal.php (Line 1904)
2: Undefined array key "useavatar"

This all started after I had to move hosts which then forced upgrade to 2.1.4 as 2.0.x stopped functioning (Not sure why)

Is anyone able to advise please?

Thanks
SW
Title: Re: Undefined array key
Post by: tino on September 18, 2023, 10:10:49 PM
You should be able to create the entries and stop the errors by editing the block causing the error.

However it should have been updated as part of the upgrade, what version of TinyPortal was installed?
Title: Re: Undefined array key
Post by: samw on September 19, 2023, 01:05:42 PM
Hi tino

I have gone into edit each block and pressed save but still get the errors.

The previous version was 1.4R
Title: Re: Undefined array key
Post by: samw on September 20, 2023, 08:00:43 PM
I have just installed TP on another forum that was moved as the other. I am getting the same errors, however, during the install I got the following errors:

array(2) { [0]=> array(3) { ["file"]=> string(68) "/home/scotbusc/public_html/dundeeareabusforum.com/Sources/Errors.php" ["line"]=> int(301) ["function"]=> string(9) "log_error" } [1]=> array(1) { ["function"]=> string(17) "smf_error_handler" } } Error loop.
Title: Re: Undefined array key
Post by: tino on September 21, 2023, 10:14:24 PM
Quote from: samw on September 19, 2023, 01:05:42 PMHi tino

I have gone into edit each block and pressed save but still get the errors.

The previous version was 1.4R

I'll see if I can recreate it. That's quite a jump.

blockheight is from the categorybox so check something is set in that one.

useavatar is online so check that radio box has one option selected

length include is the recentbox so check those are all set with something
Title: Re: Undefined array key
Post by: samw on September 23, 2023, 08:58:04 AM
Thanks Tino

I found more blocks further down that had these settings missing. So far a clear error log, thank you!
Title: Re: Undefined array key
Post by: @rjen on September 23, 2023, 11:41:07 AM
 :hmm: I thought the install took care of all those updates.

Did we not at some time state, that to go to the latest version one should first upgrade to 1.6.x ?