ElkArte Community

Project Support => General ElkArte discussions => Topic started by: Spuds on December 16, 2023, 02:03:44 pm

Title: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on December 16, 2023, 02:03:44 pm
I'm starting to package up Elk 1.1.10, below are the key updates/fixes that will be included.  If you have experienced other bugs (than those listed) please report them now.  From the below list, the most interesting are:

- A fix for MySql 8.0.2+
- Additional fixes for PHP 8.x
- Changed the behavior of JS/CSS minimization.  Currently it combines CSS and above/below fold JS files into single files and minimizes those.  The new behavior removes that combining and simply minimizes each individual file and includes each file in the output.  It now also minimizes (read remove white space) any inline CSS and JS that is included.   The former combining behavior was a good practice when sites were HTTP/1.1 and had limited concurrent connections, but with HTTP/2 being more prevalent now, that constraint is no longer a concern as its multiplexing feature eliminates the need for concurrent connections.  Should you need the old behavior you will need to do a file edit, but really its time to move on.

1.1.10 Changelog

Title: Re: ElkArte 1.1.10 - Release Notes
Post by: ahrasis on December 17, 2023, 01:35:56 am
Great but there is no package to test yet?
Title: Re: ElkArte 1.1.10 - Release Notes
Post by: Burke Knight on December 17, 2023, 06:23:50 am
Quote from: Spuds – I'm starting to package up Elk 1.1.10, below are the key updates/fixes that will be included.


Guessing by his post, not yet.  :wink:
Title: Re: ElkArte 1.1.10 - Release Notes
Post by: ahrasis on December 17, 2023, 08:23:59 am
I read that but this is a formal release note thread so I imagine a test package if not a ready package is attached but there is none so I asked.
Title: Re: ElkArte 1.1.10 - Release Notes
Post by: Spuds on December 17, 2023, 09:16:15 am
I'll have one up today ... I had intended to put "preliminary" in the subject but ....  :cry:
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on December 17, 2023, 03:39:48 pm
Here is the patch file that you can run on Elk 1.1.9 via the package manager.

Just to note, it adds a new index to the messages table, so if you have a large forum (400k+ messages) this can take some time and you run the risk of a timeout.  Its not critical to have this new index and one could add it with phpmyadmin or good old CLI.  I'll look to make that an optional step for those with larger forums.

As always, do this on a backup of your site :head_bandage: :hammer: 
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: ahrasis on December 18, 2023, 10:54:04 pm
Thanks a lot. I will be testing it with php8.3 since its the latest.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on December 19, 2023, 08:35:18 am
Cool .... I've not done any 8.3 testing so I'd be interested to hear your findings. 

I did find another 8.x typecast error buried deep in the code that I'll add in 1.1.10 final
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Burke Knight on December 19, 2023, 11:07:46 am
Quote from: Spuds – I did find another 8.x typecast error buried deep in the code that I'll add in 1.1.10 final

Be sure to post the edit here, too...
I'd hate to have to uninstall/reinstall the patch....LOL
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on December 29, 2023, 06:20:04 pm
Here is an updated 1.1.10 package.  It has the following changes

- fixed another php8 issue in bad behavior
- fixed a php8 depreciation notice in spider stats
- fixed gibberish being returned for an empty new board description
- added option to move crawlers into the restrictive group which allows you to limit them to specific boards (easier than robot txt)
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 02, 2024, 09:58:07 pm
I'm attaching an updated GenericControls.template.php which is in your themes/default directory.

We have a behavior (due to the version of the editor we use) that causes the editor to sometimes move into view when the page loads, and sometimes not, its a bit complicated with browser and editor plugins interaction   ....  and you probably don't even notice :D

Moving the editor into view, I think, is a generally nice.  There are some places where you don't want that to happen, for example quick reply or a comments box below an article as those are not the focus of the page, but modify or reply I think it makes sense.

The other behavior we have is when you go to edit a post (not quick edit but full modify) the post loads and the editor has scrolled to the bottom of the post and places the cursor there.  Its not as noticeable on a short post, but if you have a long post its obvious.

Attached is a proposal that will fix/standardize both behaviors.  The editor will load the message to modify and begin at the start of the message, not the end.  It will also move the editor to the page top (modify/reply/etc) since that is the focus of what you are doing.  So give the below a try, its just one file, save your old one so you can revert, and let me know what you think :thinking:

ETA its in the latest patch file attached in a later post
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Burke Knight on January 04, 2024, 04:09:42 pm
Quote from: Spuds – So give the below a try, its just one file, save your old one so you can revert, and let me know what you think :thinking:

Seems like a go, to me.
I like the new behavior.
The jumping to the end on modify, was really annoying.  :tongue:
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: radu81 on January 05, 2024, 07:26:37 pm
Unfortunately, I do not have a test environment to test this update  :embarrassed: 
Quote from: Spuds –
  • [8.x] fix #3700 Error when adding PM rules on PHP 8.2 (

which is the suggested version to use with elkarte 1.1.10? IIRC it was 8.1 not 8.2.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 05, 2024, 08:30:16 pm
It should run fine under either ... I've been doing all my testing under 8.2 just to try and stay ahead of things.

Seems like 8.2 will trigger more deprecation notices than 8.1, but it could simply be things I missed in 8.1 and 1.1.9  :zipper_mouth:

I've been testing 1.1.10 for a few days and have found a few more 8.2 glitches, but not many, and certainly in remote areas.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: ahrasis on January 05, 2024, 08:30:50 pm
All php8 including 8.3 should be usable on 1.1.10.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 05, 2024, 08:31:33 pm
Quote from: Burke Knight – The jumping to the end on modify, was really annoying
LOL yeah, I only just noticed it and was like, what the heck, why is it doing that !
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 05, 2024, 08:39:10 pm
Quote from: ahrasis – All php8 including 8.3 should be usable on 1.1.10
I never thought the day would come that PHP would be changing faster than the software running on it.

Yes I agree it should, but I've not been testing on it :frowning_face: My dev site is 8.2 and the sites I run are on mostly on 8.2 with a few still back on 7.4 :shushing_face:
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 08, 2024, 05:17:23 pm
Here is a yet another updated 1.1.10 package.  It has the following changes from the last one


I've been running the previous patch on a few low traffic sites, and this addresses anything (php) that I saw in the error log

ETA:  This version of the patch file has been removed, be sure to uninstall it when the final is released  :wink:
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 11, 2024, 11:50:02 am
Welp :punch: :punch: :head_bandage:

Found a couple of more minor things that I have fixed.

Like Stats:
 - Was showing the top 10 most liked posts, but not in 1-N order, was also showing the count wrong due to wrong value used in template
 - Was not formatting numbers so you would end up with 1234 and not 1,234 or 1.234
 - Was showing the wrong number of likes on a topic, it had the right number but wrong value was used in the template

Structured Data
- Saw a google suggestion that the Datetime property was missing a timezone.  In some more reading that should have been set as ISO8601 or YYYY-MM-DDTHH:MM:SS+00:00 so now it will be.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on January 19, 2024, 12:36:35 pm
I found and fixed/enhanced a couple of other things.  Not sure anyone really cares to read these on-going pre-release updates  :man_shrugging:  so I'll save myself some time and simply note them in the final release notes.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: NetFlag on January 25, 2024, 01:47:14 am
Quote from: Spuds – Not sure anyone really cares to read these on-going pre-release updates
But yes. Thanks for your work!  :thumbsup:
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Zioclive on February 03, 2024, 03:47:04 am
Quote from: Spuds – I found and fixed/enhanced a couple of other things.  Not sure anyone really cares to read these on-going pre-release updates  :man_shrugging:  so I'll save myself some time and simply note them in the final release notes.

I do care . Thank you
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on February 03, 2024, 09:16:05 pm
Been running 1.1.10 live on a few sites, monitoring for any issues. 

I made one update today, not really a bug, but an inconsistency that you I could only see when running an addon.  It was one of those non-bugs that took 10x as long to figure out as a real bug LOL

Anyway I think its getting close to packing this up as in on my test sites I'm not seeing any errors (well other than users who can't remember their passwords LOL)
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Burke Knight on February 06, 2024, 08:46:53 am
Quote from: Spuds – Here is an updated 1.1.10 package.  It has the following changes

- fixed another php8 issue in bad behavior
- fixed a php8 depreciation notice in spider stats
- fixed gibberish being returned for an empty new board description
- added option to move crawlers into the restrictive group which allows you to limit them to specific boards (easier than robot txt)

Not sure if you noticed this, but after this version of the patch, I make a new board and add description, but for some reason, the description vanishes. As if never entered. Confirmed this on 3 sites. No errors in the log.
Seems like there's something missing when saving, that does not include the description.
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on February 06, 2024, 08:44:44 pm
I see that as well ... fixed on my local, it was a side effect of the fix when no description was given.  I've test all the combos I could think of this time and it will be fixed in 1.1.10 final.

Thanks for the report
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Steeley on February 07, 2024, 11:35:45 am
Quote from: Spuds – .. fixed on my local, it was a side effect of the fix when no description was given. 

Sounds like my kind of fix - compensate for a "no description" situation and then make everything "no description." Voilla! 😛 

(I had a foreman who the business owner decided needed some formal management training, and the next "course" segment  available for him to attend was "Dealing With Problem Employees". It was the only management course he ever took, and from then on his management approach was to turn every employee into a problem employee so he knew how to manage them.)
Title: Re: Preliminary ElkArte 1.1.10 - Release Notes
Post by: Spuds on February 07, 2024, 04:18:03 pm
It kind of made sense when I typed it in last night LOL  :tongue: