Migrated my site to J4.03 successfully.
Once up, Changed PHP from 7.4 to php8
The site would run as expected, without error.
Got a fatal error on the frontend on certain pages (eg https://reddustsnow.com.au/outback-nsw-touring-watershed-loop.html)
File: ../libraries/vendor/joomla/string/src/phputf8/mbstring/core.php
Line: 24
Error: mb_strlen(): Argument #1 ($string) must be of type string, array given
Joomla! 4.0.3 Stable
Web Server: LiteSpeed
DEBUG STACK:
Note {closure} in #11... Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}()
Joomla forum told me it is a core issue.
First time I have done this so hoping all there. Please note this is a live (production) site it is currently running php7.4
Regards
Simon B
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Hi carlitorweb, no it won't as it is my production site, so had to revert to php7.4. Creates a fatal error.
J4.03 . Sorry for confusion
Hi guys, I thought I might have seen some update on the reported issue with the release of 4.0.4. Non listed.
So I thought I would update and try with 4.0.4 to see if any of the updates inadvertently fixed the issue.
BUT, I discovered that it is related to the system cache. If the cache is off, the page/s display without the mentioned error.
Any clues?
Regards
Simon
I am guessing that the problem is occurring on pages where you have loaded a module in the content item?
If that guess is correct what module is it and what are the contents of that module
Hi Brian, thanks for your reply.
Yes, there are several modules, custom content modules. Each contains an image, some text, but also a link to a banner in the form <a href="component/banners/click/39.html....
Could that be the issue?
I dont know but the more information the better to try and find the problem
Ok, also running sliders/tabs on that page.
When the problem presents, it is across most, but not all of the (Joomla) content; those custom modules are probably across a similar amount of pages.
I will strip down the mentioned page and do some testing. I will need to do it in the morning AUS time, As it is a production site.
Gives me something to work with though. I will check back tomorrow.
Ok, found it.
It was the OS Download link at the bottom of the page.
But, why would it only creates the issue when the system cache is on.
Simon
PS, a relief to discover the conflict as php8 was the main reason I went to J4 early (Love it by the way!)
Sorry I don't know the code in os downloads so you will do best speaking to the developers. Glad you found the source
A bit more...
If I put the link to the download (that is in the custom module) directly in the article, it works fine.
BUT... if I put that same code into a new custom module... the error happens.
So it appears to be a conflict between the custom module and the download button {osdownloads download_button 04 "Download"}, when the page is built.
I will let them know.
PS... thanks for helping me pinpoint the issue @brianteeman, appreciated!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-28 06:30:08 |
Closed_By | ⇒ | chmst |
Following the link: https://reddustsnow.com.au/outback-nsw-touring-watershed-loop.html did not thrown any error.
Also, is 4.02 or 4.0.3?