TinyPortal

Development => Support => Topic started by: Michael Vail on May 05, 2021, 07:20:06 PM

Title: Tiny Portal Block Activate Buttons Won't Turn Green Without Page Refresh
Post by: Michael Vail on May 05, 2021, 07:20:06 PM
Link to my forum: https://sonomacountydsa.org/forums
SMF version: SMF ver. 2.0.18
TP version: TP ver. 2.0.1 (with TPsubs.php RSS patch installed)
Default Forum Language: English
Theme name and version: Default (Curve)
Browser Name and Version: Chrome, Firefox, Edge - All Current Versions
Mods installed: See attached image of package manager
Related Error messages: None

Hello and thank you for reading my post.

While working with some portal blocks troubleshooting some things, I discovered the following issue when activating and deactivating portal blocks using the red and green Activate buttons in the Tiny Portal Admin 'Block' Area.

Steps to repeat issue:

1. Access Tiny Portal Admin menu
2. Select 'Blocks'
3. Click a green block of an active block in the 'Activate' column to disable the block. This should cause the activate column button to turn red.
4. Now click this or any other red block to activate the block and it should turn green, but the button remains red. However, the block is actually activated and if you refresh the page, it does turn green showing the block is activated again.

This is a minor thing and knowing what I know now about refreshing the page makes it easy to get around, but I'm sure people will wonder what's going on if it's not corrected.

Thank you for Tiny Portal!
Mike Vail
Title: Re: Tiny Portal Block Activate Buttons Won't Turn Green Without Page Refresh
Post by: tino on May 06, 2021, 10:18:19 PM
If you open up the console log in your browser of choice and look at the http request when performing that Ajax action. What response do you get?

I can't replicate it here so it's something to do with your config and I'm guessing the 200 OK response being blocked.
Title: Re: Tiny Portal Block Activate Buttons Won't Turn Green Without Page Refresh
Post by: @rjen on May 07, 2021, 12:50:49 PM
It works for me too..
Title: Re: Tiny Portal Block Activate Buttons Won't Turn Green Without Page Refresh
Post by: Michael Vail on January 03, 2022, 03:07:30 AM
Upgrading to TP 2.1.0 from 2.0.1 fixed whatever the issue was. My apologies for not replying sooner. I totally missed the earlier messages left here.

Happy New Year!