Portfolio Error - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Portfolio Error

C

ConsultPW

Extension 3 years ago

Hi,

Testing the Magnin template for a possible site (and J4). Great job BTW - excellent layouts.

One problem - Trying to use the 'Freelance Portfolio' (Modern layout). Portfolio displays OK but when clicking on any item we get the following error:

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

Editied after original post - We found it was due to the fact that our test site was on PHP 8.0.13. Switched to 7.4.26 and it works OK so presumably you will update for php 8 at some stage?

Thanks

0
4 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #46683

Hi there!

SP Simple Portfolio supports PHP 8 as per my knowledge. Here is a screenshot from the changelog of it:

https://prnt.sc/22dd3xz

Do you have Akeeba Admin Tools in your site? It may cause this types of issues.

Best Regards

0
C
ConsultPW
Accepted Answer
3 years ago #46767

Hi Rashida.

The portfolio issue in this template is stll the same. It works fine using PHP 7.4.26 but if we switch to PHP 8.0.13 we get the error below:

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

Admin Tools NOT installed. Installation was from a quickstart template. Following config:

  • Joomla 4.0.4
  • Magnin Template v 1.0
  • Page Builder Pro 3.8.1
  • Portfolio v 2.0.6

Only other components Akeeba Backup Pro v 9.0.1 JCE Editor v 2.9.17

Tried prortfolio in another template/site with PHP 8 and it works OK so it seems to be just this new template for some reason. Any help would be appreciated.

Thanks, Paul

Update: Have worked through all steps again. It seems the error occurs when we opt to use URL re-writing as we do not want index.php to show. Have simply changed the htaccess.txt and web config file names. Can you plese tell us what else we need to do to avoid the error?

Thanks again

0
C
ConsultPW
Accepted Answer
3 years ago #47693

Update - Just to be clear.

PHP Version issue with Portfolio

Testing Magnin template and set to use URL re-writing to avoid ‘index.php’ in URL. Just changed htaccess and web .config as usual. Everything works fine using PHP 7.4.26. However, if we switch to PHP 8.0.13 everything else works fine except Portfolio.

Items appear but if click to view details we get the following error:

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

Config/versions: • Joomla 4.0.5 • Magnin Template v 1.0 • Page Builder Pro 3.8.1 • Portfolio v 2.0.6 (+Akeeba Backup Pro v 9.0.1) (+JCE Editor v 2.9.18) No other extensions

Any clues as to what we may need to change to get this to work correctly in PHP 8 with URL re-writing? Thanks

0
IT
Ikhael Tenebrae
Accepted Answer
3 years ago #48442

I indeed can confirm the same issue.

The problem is that you clearly state that MAGNIN and portfolio extension are tottaly compatible with PHP8 (it really really isn't if it's easily throwing this kind of error)

I also have another issues with the portfolio extension with MAGNIN but i will open another thread for that...

0