TinyPortal

Development => Bugs/Errors => Feedback => Fixed Bugs => Topic started by: wylek on December 05, 2020, 09:31:29 PM

Title: Main template errors for Show latest comments
Post by: wylek on December 05, 2020, 09:31:29 PM
SMF version: SMF21rc3
TP version: TinyPortal-2.0.0

Template error while viewing comments - "Unable to load the 'main' template".

Title: Re: Main template errors for Show latest comments
Post by: tino on December 06, 2020, 12:23:50 PM
Quote from: wylek on December 05, 2020, 09:31:29 PM
SMF version: SMF21rc3
TP version: TinyPortal-2.0.0

Template error while viewing comments - "Unable to load the 'main' template".

I'm not even sure where that link is?
Title: Re: Main template errors for Show latest comments
Post by: @rjen on December 06, 2020, 12:31:42 PM
Its in the user block
Title: Re: Main template errors for Show latest comments
Post by: @rjen on December 06, 2020, 02:29:53 PM
Cause is a mystery to me, but I am sure that tino knows where it breaks..
Title: Re: Main template errors for Show latest comments
Post by: tino on December 06, 2020, 07:47:35 PM
Quote from: @rjen on December 06, 2020, 02:29:53 PM
Cause is a mystery to me, but I am sure that tino knows where it breaks..

It'll be a sub_template is not set. I wish SMF handled them better tbf
Title: Re: Main template errors for Show latest comments
Post by: lurkalot on December 06, 2020, 08:53:58 PM
Quote from: tino on December 06, 2020, 07:47:35 PM
Quote from: @rjen on December 06, 2020, 02:29:53 PM
Cause is a mystery to me, but I am sure that tino knows where it breaks..

It'll be a sub_template is not set. I wish SMF handled them better tbf

I hadn't noticed this bug until it was pointed out, I can see it blurts an error on page.
Title: Re: Main template errors for Show latest comments
Post by: Lesmond on December 07, 2020, 02:20:19 PM
I can confirm, I get the same error, fresh install SMF 2.1 RC3 - TP 2.0.0
Title: Re: Main template errors for Show latest comments
Post by: Lesmond on December 07, 2020, 03:12:53 PM
Some of the same errors were reported here (https://www.tinyportal.net/index.php?topic=36518.0l) by me, but a different problem.
Title: Re: Main template errors for Show latest comments
Post by: tino on December 07, 2020, 11:55:07 PM
Quote from: Lesmond on December 07, 2020, 03:12:53 PM
Some of the same errors were reported here (https://www.tinyportal.net/index.php?topic=36518.0l) by me, but a different problem.

Sorry what errors are similar?
Title: Re: Main template errors for Show latest comments
Post by: Lesmond on December 08, 2020, 11:32:58 AM
Ok the same places I mean, maybe I'm wrong, not being a coder :( :idiot2:

#3: template_main()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/Sources/Load.php on line 2636

#4: loadSubTemplate()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/Sources/Subs.php on line 3472

#5: obExit()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/index.php on line 176
Title: Re: Main template errors for Show latest comments
Post by: tino on December 08, 2020, 02:37:00 PM
Quote from: Lesmond on December 08, 2020, 11:32:58 AM
Ok the same places I mean, maybe I'm wrong, not being a coder :( :idiot2:

#3: template_main()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/Sources/Load.php on line 2636

#4: loadSubTemplate()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/Sources/Subs.php on line 3472

#5: obExit()
Called from /home/vol11_7/byethost7.com/b7_24299229/htdocs/testsite7/index.php on line 176


That's just the standard SMF calls and any template error will generate that.
Title: Re: Main template errors for Show latest comments
Post by: tino on December 08, 2020, 07:39:18 PM
Quote from: wylek on December 05, 2020, 09:31:29 PM
SMF version: SMF21rc3
TP version: TinyPortal-2.0.0

Template error while viewing comments - "Unable to load the 'main' template".

This is now fixed in; https://github.com/Tinyportal/TinyPortal/commit/78e0d1ae3077e5f93074b0c604502d1606a1743c
Title: Re: Main template errors for Show latest comments
Post by: Lesmond on December 10, 2020, 02:00:07 PM
Thanks fixed for me, needs to be fixed here too :)
Title: Re: Main template errors for Show latest comments
Post by: lurkalot on December 10, 2020, 05:39:19 PM
Quote from: Lesmond on December 10, 2020, 02:00:07 PM
Thanks fixed for me, needs to be fixed here too :)

Yep, it will be next time I replace the portal.  O0
Title: Re: Main template errors for Show latest comments
Post by: lurkalot on December 10, 2020, 06:02:33 PM
Quote from: lurkalot on December 10, 2020, 05:39:19 PM
Quote from: Lesmond on December 10, 2020, 02:00:07 PM
Thanks fixed for me, needs to be fixed here too :)

Yep, it will be next time I replace the portal.  O0

Which I have now done, thanks for the reminder.  ;)