[Locked] array_replace(): Argument #1 ($array) must be of type array, string given - Forum | JoomShaper
Staff replied SP Page Builder Locked

array_replace(): Argument #1 ($array) must be of type array, string given

Asked by Morgan Baggs 4 years ago Last activity 1 year ago

Upgraded to SP Page Builder 4-

I am unable to edit pages. The pages all render on the front end, but when I go to "edit" any pages within SP I receive the error: array_replace(): Argument #1 ($array) must be of type array, string given

Help?

9 replies

Paul Frankowski Senior Staff

If I may....

DELETE that file:

templates/shaper_rhino/html/mod_login/default.php


It's becuase Joomla 4.2 made some code changes, added Multi-Factor Authentication that replaced Two-Factor Authentication that was before in Joomla 4.1.x

Morgan Baggs Asked this

@ Paul,

That did not work.

@ Ariba,

I was running PHP 7.3 and still received the error.

Upgraded to PHP 8 and the same error occured.

‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎

Hello Morgan Baggs,

I am not from support, but I already know the problem.
I have already provided a patch for this.

https://github.com/JoomShaper/Helix3/pull/112/commits/079bb8f33d3c39b1c39ebc1d0bdb5f32da3e1a72

If you make these adjustments in your "plugins/system/helix3/core/helix3.php" file, the error should be gone.

To be on the safe side that it is indeed the same problem, please trigger the error once with debug mode enabled.
You should then know the exact files that triggered the error and where exactly.

For this Joomla should generate a display with the text "Call Stack" in debug mode.

You activate the debug mode via: System -> Configuration -> System -> Debug Settings -> Debug System

If it is not fixed by this patch, please let me know the message generated by Joomla with enable debug mode.
So I can reproduce the problem and provide a solution for you.

With kind regards

2 Gun Tim

I really can't understand how this has not been fixed yet??? I used to love you're products but I am affraid I need to look elsewhere now. I have a bunch of sites displaying the same errors and and bunch of irrate (and rightly so) clients. Downgrading to PHP 7, is not an option for me, it has been remove from by service provider.

Is Helix 3 compatible with PHP 8 or higher? Please answer this with a YES or NO.

Martin

trim(): Argument #1 ($string) must be of type string, array given

December 12th, 2024

Paul Frankowski Senior Staff
1 year ago · edited

@Martin. How I can help, if you didn't share any details!?

13 Dec 2024, I close that topic, NEW ONE PLEASE.

This question is locked, so it takes no new replies. Have a similar problem? Ask a new question.