Problem with MAGNIN and creation of portfolio pages using SP Simple Portfolio - Forum | JoomShaper
Solved Extensions

Problem with MAGNIN and creation of portfolio pages using SP Simple Portfolio

Asked by Ikhael Tenebrae 4 years ago Last activity 4 years ago

Hi.
Besides from the fact that the J4 quickstart throws a "0 mb_strlen(): Argument #1 ($string) must be of type string, array given" error when opting for PHP8 (you clearly state that it's totally compatible.. but it isn't.. you also advise in another thread for the same problem to downgrade to PHP7.4 { see here }

I am trying to create a simple portfolio page using SP Simple Portfolio (that is already installed). I have a new menu entry and all is working fine with masonry layout. When I click on the photo, the modal popup works fine. But when I click the title to see the details of a specific item, I only see the content of the description and NO PICTURE.

The console doesn't show anything. I really don't want to create each item with the SP Builder option.. I just want the item details to show up with the photo.

Are you aware of the isssue? I think you can clearly replicate thiw behavior if you:

  • install J4 quickstart with MAGNIN
  • create a new portfolio category
  • add some items with photo
  • create new menu entry for SP simple portfolio using the default settings (layout: default, columns: 2, thumbnail size: masonrym ctr)
  • When you click a title of an item you get to the page with the details but you see NO PHOTO...

Are you aware of the issue (please take some time to try to replicate the behavior before replying because I am pretty sure i's some kind of bug from either MAGNIN or SP Simple portfolio with J4)

Accepted answer

Marked as the solution
Ofi Khan Staff

You can edit this default.php file. It will not be overridden with the update. But always keep a backup before any major update for safety. Please follow this documentation

16 more replies

Ofi Khan Staff

Hello Ikhael Tenebrae

Thanks for notifying us. We are aware of this bug. It will be fixed in the next update.

Best regards

Ikhael Tenebrae Asked this

Thanks for the quick reply.
Do you have an estimated time frame about when are you going to release the update?

Ofi Khan Staff

You are welcome. Sorry that it will take time. I have talked with the developers. They need time to fix it. I hope it will be released in January, 2022.

Ikhael Tenebrae Asked this

That's too long.
At least can you help me out to make the right decisions: is it MAGNIN's problem or the SP simple portfolio?...
If I install a simple HELIX template to build upon it, will SP Simple portfolio work as intended in J4 and PHP8 ?

Ofi Khan Staff

I have got a temporary fix for you. Please add standalone-page-builder-content class to the menu item of SP Simple Portfolio.

https://prnt.sc/23zwuo5

and use this JavaScript to Template Options -> Custom Code -> Custom JavaScript

//portfolio details standalone sp page buider data
$(document).ready(function() {
  const portfolioDetails = $('.standalone-page-builder-content.com-spsimpleportfolio.view-item')
  if(portfolioDetails.length>0) {
    $('.sp-simpleportfolio-image').remove()
    $('.sp-simpleportfolio-description>h2').remove()
    $('.sp-simpleportfolio-meta').remove()
  }
});
Ikhael Tenebrae Asked this

I did what you advice but I see no difference....
Tried on both PHP7.4 and PHP8 (it simple doesn't show nothing but the description if you click on the title of an item in SP simple portfolio)

any ideas?

Ofi Khan Staff

Please share your administrator access here to check the issue. Use the Hidden Content box to share the credentials.

Ikhael Tenebrae Asked this

OK.. I am sending you credentials.

check the menu entry named "Art" and you will see the problem your self if you click the title of a portfolio item ...

Ikhael Tenebrae Asked this

FIY: I saw an update for the SP page builder and I applied it. But the problem is still there!

Ofi Khan Staff

No problem. SP Page Builder update is not related to this issue. Anyway, I have fixed it. Please check your site now.

Log in to reply.