Strpos(): Argument #1 ($haystack) Must Be Of Type String, StdClass Given - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Strpos(): Argument #1 ($haystack) Must Be Of Type String, StdClass Given

PT

Paul Trouw

SP Page Builder 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!)

0
16 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #158476

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)

0
AF
Andrew Freeman
Accepted Answer
1 year ago #158521

Exactly the same issue on my website.

0
PT
Paul Trouw
Accepted Answer
1 year ago #158564

Hi Toufiqur, I have added credentials.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #158599

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

0
PT
Paul Trouw
Accepted Answer
1 year ago #158608

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?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #158622
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #158610

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

0
PT
Paul Trouw
Accepted Answer
1 year ago #158618

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?

0
PT
Paul Trouw
Accepted Answer
1 year ago #158628

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!

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 year ago #158636

You are most welcome & Thanks

0
JN
Jani Novak
Accepted Answer
4 weeks ago #208353

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.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 weeks ago #208360

Disable this plugin and see the output.

https://prnt.sc/hrn_ZdzY5_rG

Don't forget to clean cache before check the output.

0
JN
Jani Novak
Accepted Answer
4 weeks ago #208362

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 weeks ago #208363

You are most welcome & Thanks

0
JN
Jani Novak
Accepted Answer
4 weeks ago #208388

Hi,

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 weeks ago #208389

Debug mode was enabled for investigation. Now it has been disabled.

https://prnt.sc/EKNPHzLA0epn

0