Posted March 31, 20241 yr After upgrade we've noticed the new btoa() function and error "failed to execute btoa()" in global_global_core.js As a result, pagination for cyrillic urls stopped working. See https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem As a temporary solution we implemented the convertion between UTF-8 and single-byte representations before call btoa(), like Quote const toBinaryStr = url => { const encoder = new TextEncoder(); const charCodes = encoder.encode(url); const binString = Array.from(charCodes, (byte) => String.fromCodePoint(byte), ).join(""); return binString; }; <...> this._stateKey = `table${btoa(toBinaryStr(this.scope.attr('data-baseurl') ? ips.utils.url.pageParamToPath(this._cleanUpURL(this.scope.attr('data-baseurl')), this._pageParam, 1) : ''))}`; Edited March 31, 20241 yr by Tikhonov Ivan
April 1, 20241 yr Author Would you, please, fix this core bug of global_global_core.js soon? It is inconvenient to apply above custom patch every time after clearing system caches. I believe every forums with non-Latin topic urls are affected.
April 1, 20241 yr Community Expert Please ensure that you have applied the latest release and all patches. I have tagged a developer to review what you have posted though.
April 1, 20241 yr Author 16 minutes ago, Jim M said: Please ensure that you have applied the latest release and all patches. I have tagged a developer to review what you have posted though. Thanks, Jim. That's the point of latest release as well, compared with v4.7.15 the btoa() function appeared in core java-script and utf-8 character string is unacceptable as a btoa() argument.
April 1, 20241 yr I am having the same problem on my site with forums that have letters such as 'š', 'đ', 'ž', etc.
April 2, 20241 yr Community Expert Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
April 3, 20241 yr Community Expert We're going to address this in a patch (likely tomorrow) with some other items but in the meantime you can go to AdminCP > Search Engine Optimisation > enable Rewrite FURLs (and follow the instructions). This will work around the issue since it's only a problem when FURLS are not used.
April 5, 20241 yr Community Expert Solution We have released a patch to address this issue. Please go to AdminCP > System > Support and apply the patch from the first/top left box. If you do not see an option to install the patch, you already have the latest release. Additionally, as previously noted, enabling URL Rewriting will also fix this issue.