Advertisement:

Author Topic: TinyPortal  (Read 799149 times)

Offline minormike

  • Semi-Newbie
  • *
  • Posts: 14
Re: TinyPortal
« Reply #2800 on: October 17, 2020, 02:16:00 PM »
Trying to understand what exactly lead to the error.

You created and article and set an area to display it?

How exactly did you do that:

1. As an admin or as a user with extra permissions?

2. You mention that you tries adding an article in the portal top panel

Quote
My complete forum is borked after checking an option to display articles in the portal top block

So I assume you created the article itself just fine, but the error started when you included the article in a block? Is that a correct assessment? Articles themselves do not contain a setting where to display them....

3. Then how did you go about that: I assume you created a new block of type Article: Single or Articles in a category?

Please help narrow it down, because I cannot reproduce it...

I was on this page, forum.xxxx.xxx/index.php?action=tpadmin;sa=blocks , and having some trouble getting an article I'd created to show up on the forum. It was in Top Panel Blocks. For some reason the type 'Article: Single' hadn't shown my article, so on the blocks page I changed the type to 'Articles in a category' and then hit the Save icon on that line. That's when the error occurred

Offline @rjen

  • Full Member
  • ***
  • Posts: 632
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2801 on: October 17, 2020, 02:28:10 PM »
I was on this page, forum.xxxx.xxx/index.php?action=tpadmin;sa=blocks , and having some trouble getting an article I'd created to show up on the forum. It was in Top Panel Blocks. For some reason the type 'Article: Single' hadn't shown my article, so on the blocks page I changed the type to 'Articles in a category' and then hit the Save icon on that line. That's when the error occurred

Thanks, I managed to reproduce it with the info Lurkalot provided...
It is a bug, a rare one, and you need to do something specific to trigger it..

The error: Database error, given array of integer values is empty. (cat)
Is given if a block of type 19 - Articles in a category has an empty value in the field tp_blocks-body.

Changing a block in the block overview can do this, but it happens in rare situations where the block does not yet have a value in the body field. In the reported example it has happened because a new article block has been created without choosing the article itself: I guess you did not press 'save' on the block a second time when you created the new block, thinking the default article showing was selected.

Result: no valid selection in the article block. The article block is fine with no ID in the block field, it just shows an empty block.

But then changing to Articles in a Category does not fill the block field. The articles in a category block does NOT like the empty field.

So how to fix:

go to tp_blocks table in the database and find any block of type 19 where the body field is empty. Then either
1. set off to 1, or
2. edit that line and put a 1 in the body...

We are looking into a fix...that prevents it...
Running SMF 2.0 with Tinyportal 2.0.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.0.0 at test2.fjr-club.nl

Offline minormike

  • Semi-Newbie
  • *
  • Posts: 14
Re: TinyPortal
« Reply #2802 on: October 17, 2020, 04:40:15 PM »
Hey, I'm happy I managed to remember enough of what I'd done wrong, so that you guys were able to reproduce it and hopefully eradicate it in a future release! Thanks to Lurkalot and yourself for the info to fix

Offline tinoest

  • Development Contributor
  • Jr. Member
  • *
  • Posts: 258
Re: TinyPortal
« Reply #2803 on: October 17, 2020, 05:38:53 PM »
Not that I need to post this, but I may be ok just doing 2.0.17 and waiting for 2.1 to become final before worrying about bringing TP completely current.

https://www.simplemachines.org/community/index.php?topic=575261.msg4071313#msg4071313

This will be my only remarks here regarding non TP stuff. But will post back in a while if I need more help regarding TP to which I haven't touched yet, but will after this.

But for now, at least until 2.1 is final which should be soon if we're on RC3.

It looks like I can still use TP 1.0.7 on SMF 2.0.17... for a short while anyway.

But at least on 2.0.17 it might still be prudent to try 1.6.8 and do 2.0 when SMF 2.1 is final.

Sure other than the version of TinyPortal you are running has known security flaws which have been patched in later releases.

Offline Mark S

  • Jr. Member
  • **
  • Posts: 313
  • Gender: Male
  • SMF 2.0.17
    • Classic Winnebagos and Vintage RVs
Re: TinyPortal
« Reply #2804 on: October 19, 2020, 08:16:09 PM »
Is it safe to install Tiny Portal while still having Simple Portal installed?

I want to replace SP, but I'd like to keep it for now so I can reproduce the blocks and content in TP easier before removing SP.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 13,078
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: TinyPortal
« Reply #2805 on: October 19, 2020, 08:28:26 PM »
They might both install fine but I would think it's better not to do this. If I remember I did it once, it worked but there were some underlying issues. This was awhile ago though so things may have changed.

Offline Mark S

  • Jr. Member
  • **
  • Posts: 313
  • Gender: Male
  • SMF 2.0.17
    • Classic Winnebagos and Vintage RVs
Re: TinyPortal
« Reply #2806 on: October 20, 2020, 01:05:46 PM »
Thanks. "Underlying issues" is what I'm afraid of lol!

Think I'll take a whole lot of screenshots of my SP block details, delete it, and manually rebuild them in TP.

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,724
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2807 on: October 20, 2020, 02:20:53 PM »
Thanks. "Underlying issues" is what I'm afraid of lol!

Think I'll take a whole lot of screenshots of my SP block details, delete it, and manually rebuild them in TP.

Mark, if you want access to a test site running TP so you can test your blocks, or get them ready to copy and past across, then drop me a PM, and I'll sort it for you.  ;)

Offline Mark S

  • Jr. Member
  • **
  • Posts: 313
  • Gender: Male
  • SMF 2.0.17
    • Classic Winnebagos and Vintage RVs
Re: TinyPortal
« Reply #2808 on: October 20, 2020, 07:45:18 PM »
Being able to put the blocks and content somewhere else would save me a ton of time totally recreating them by hand in TP from SP screenshots!


Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,724
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2809 on: October 21, 2020, 02:09:34 PM »
Being able to put the blocks and content somewhere else would save me a ton of time totally recreating them by hand in TP from SP screenshots!

Mark  S, I have sent you a PM regarding this. ;)

Offline PoML

  • Semi-Newbie
  • *
  • Posts: 56
  • I am the Norwegian translation team
Re: TinyPortal
« Reply #2810 on: October 26, 2020, 04:39:04 PM »
Hi!

Just upgraded my forum to SMF 2.1 RC3 and TP 2.0.0.
Everything seems fine except that the articles when viewed on a smartphone suddenly are wider than the screen and cut.
The same thing happens in Chrome when I view the page using the developer tools to set size of screen to any smartphone size.
Previously, this looked perfect.

Is there a setting somewhere that is wrong, or is this a part of testing versions ending in double zeros?

See screenshot attached.

Offline @rjen

  • Full Member
  • ***
  • Posts: 632
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2811 on: October 26, 2020, 04:48:31 PM »
Did you clear the browser cache?

Please try that first. If it does not help please share a link to the forum..
Running SMF 2.0 with Tinyportal 2.0.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.0.0 at test2.fjr-club.nl

Offline PoML

  • Semi-Newbie
  • *
  • Posts: 56
  • I am the Norwegian translation team
Re: TinyPortal
« Reply #2812 on: October 26, 2020, 09:50:25 PM »
Did you clear the browser cache?

Please try that first. If it does not help please share a link to the forum..

I tested some more...
It seems that only logged-in users get too wide articles - articles available to guests seems to behave better...
Forum address is : https://smbergen.org/medlemmer/forum

PS: tested it also with the "Potato" theme, and that had similar results.

Offline @rjen

  • Full Member
  • ***
  • Posts: 632
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2813 on: October 27, 2020, 02:17:46 AM »
I just registered and visit your forum from my iPhone : articles fit on screen
Running SMF 2.0 with Tinyportal 2.0.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.0.0 at test2.fjr-club.nl

Offline @rjen

  • Full Member
  • ***
  • Posts: 632
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2814 on: October 27, 2020, 02:55:22 AM »
First of all, there's something funny with the Copyright showing in all your frontpage topics. I am pretty sure that has something to do with the Norwegian language pack, because when I switch to English it's OK

Secondly I notice a scroll bar appearing in your forum-policy

I think the cause is the use of the <pre > tags in your articles.

Quote
Text in a <pre > element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.

That will probably cause the issue...

Now, to find exactly why that did work before I will need to see the full / exact body text of an article that has this.
Given the content of your forum I have deleted my account again, and I am not interested to access your site.

Not sure how to analyze this further...
Running SMF 2.0 with Tinyportal 2.0.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.0.0 at test2.fjr-club.nl

Offline PoML

  • Semi-Newbie
  • *
  • Posts: 56
  • I am the Norwegian translation team
Re: TinyPortal
« Reply #2815 on: October 27, 2020, 06:00:07 AM »
First of all, there's something funny with the Copyright showing in all your frontpage topics. I am pretty sure that has something to do with the Norwegian language pack, because when I switch to English it's OK

Secondly I notice a scroll bar appearing in your forum-policy

I think the cause is the use of the <pre > tags in your articles.
[...]Not sure how to analyze this further...

Thanks - that was very helpful.
I believe I can investigate from here.

Offline PoML

  • Semi-Newbie
  • *
  • Posts: 56
  • I am the Norwegian translation team
Re: TinyPortal
« Reply #2816 on: October 28, 2020, 07:11:35 PM »
Quick update:

There were two different issues in play here - both may be helpful for others to know about:

1) A user have used MS Word to write posts in, and then copy-pasted the text into SMF.  Result: lots of codes that the forum do not like together with the CSS that TinyPortal uses.

2) The Copyright language string $forum_copyright has a different format in RC3. That change was not captured in any of my language files, resulting in an overflow.  Copy of the $forum_copyright from the main index file into all supported languages did the trick.

Offline @rjen

  • Full Member
  • ***
  • Posts: 632
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2817 on: October 29, 2020, 02:48:31 AM »
Thanks PoML,

As for copying and pasting from Word: that is something that indeed can cause issues: pretty hard to prevent. I am curious why that did not give the same issues in previous versions though...

As for the copyright: we ‘append’ the TP copyright to the SMF string. If that (SMF) string has changed that needs our attention too, thanks for reporting it.

Then a request: I see that you have created your own translation to Norwegian for the TinyPortal language files. Would you be willing to share those with other users via the TinyPortal support site?
Running SMF 2.0 with Tinyportal 2.0.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.0.0 at test2.fjr-club.nl

Offline PoML

  • Semi-Newbie
  • *
  • Posts: 56
  • I am the Norwegian translation team
Re: TinyPortal
« Reply #2818 on: October 29, 2020, 08:42:35 AM »
Then a request: I see that you have created your own translation to Norwegian for the TinyPortal language files. Would you be willing to share those with other users via the TinyPortal support site?

Sure - there are some duplicates in there, as you have done a thorough clean-up since the last version.
I have extended the language strings that I found without removing much, so it is not a translation that I am 100% sure will not have some glitches.

I have uploaded the files here :  https://www.tinyportal.net/index.php?topic=31219.msg300449#msg300449
(don't be scared by the subject - it seems that the thread on norwegian has been subject to several conversions of character set on your site between ISO8859 and UTF8 over the years since people requested norwegian the first time  :-D


« Last Edit: October 30, 2020, 01:47:29 PM by lurkalot »

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 19,077
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: TinyPortal
« Reply #2819 on: October 30, 2020, 11:23:20 AM »
@PoML - Just wanted to mention, publishing what looks like an email address on a publicly viewable board might not be the best of ideas. If you want, we can edit it out - just report the post and ask for it.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas