strpos(): Argument #1 ($haystack) must be of type string, stdClass given - Forum | JoomShaper
Solved SP Page Builder

strpos(): Argument #1 ($haystack) must be of type string, stdClass given

Asked by Paul Trouw 2 years ago Last activity 1 year ago

Hi,
When I do "Add Bulk Items" in a Gallery and look at the preview, I am getting this error on a 404 page:
strpos(): Argument #1 ($haystack) must be of type string, stdClass.
After the bluk import, none of the pictures have a thumbnail. If I add the tumbnail images, the error is gone.
But this is a lot of work, as I have galleries with 40+ pictures.
Any idea or solution?
SP: 5.3.2, J4.4.5 and PHP8.2 (I also tried 8.1!)

Accepted answer

Marked as the solution

8 more replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Could you kindly grant me access to your Joomla administrator area so that I can investigate the issue you're experiencing? Prior to providing access, please ensure that you have backed up your site. Additionally, it's important to note that providing login credentials is entirely voluntary on your part; we respect your decision either way. However, if you do choose to share the login details, it would greatly expedite the resolution process. Thank you for your cooperation.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Andrew Freeman

Exactly the same issue on my website.

Paul Trouw Asked this

Hi Toufiqur, I have added credentials.

Toufiq Senior Staff

I just created a page and checked the gallery addon. No problem found.

Paul Trouw Asked this
2 years ago · edited

Hi Toufiq, could you please try again. I just tried it on your new created page but I get the same error: 0
strpos(): Argument #1 ($haystack) must be of type string, stdClass give

Could I be because of the lenght of the path or file names?
Or could it be after a Add bulk items, there are NO thumbnails entries?

Toufiq Senior Staff

You can't select bulk images from the folder. Cause, this feature doesn't ready. Thanks

Paul Trouw Asked this

Ok, so mulitple selection isn't possible either? Within a folder I can only select 1.
Should I select both thumbnail and big pictiure? I thought it would generated a thumbnail?

Paul Trouw Asked this

Thx you. That was helpfull. The thing I did, was after browsing to the folder I could only select 1 picture. But this was because the media gallery navigation on the left is still highlighting "Folders" and you have to switch back to Images, otherwise you can only select 1 picture!

Toufiq Senior Staff

You are most welcome & Thanks

Jani Novak

Hi,

I get the same message:
0
strpos(): Argument #1 ($haystack) must be of type string, stdClass given

I have hidden all section of that particular SP Page Builder page, but still I get the same error.

Thank for support.

Jani Novak

Thank you.
Disabled all related. Will wait for extension update for J6 and then enable it again.

Toufiq Senior Staff

You are most welcome & Thanks

Jani Novak

Hi,

what is this bar in the bottom of the joomla frontend and backend?
Did you enable something?

Log in to reply.