Using “X” theme, Our non-profit mtn-biking website has an online store which had been working fine for a long time. I was alerted to the following error message when displaying products:
“Oops!
There was an error loading the content.
Error: Cannot use ‘in’ operator to search for ‘first_name’ in false”
Getting the error on both production & staging. Tried the following fixes in staging:
Tried deactivating ancillary woocommerce plugins. Then deactivate other plugins with no cure.
Tried deleting and readding products with no cure.
Deactivating Cornerstone plugin cleared the error but then entire website does not display properly.
The online store page was not created with Cornerstone. Searched the forum for same/similar issues but found nothing.
Hey Robert,
Thanks for writing in! You have edited your shop page with the WP Editor. You seem to have inserted a WP Block that is generating this error. I do not have an idea of what is it since I do not have a log in details. We would be happy to double check your site if we can log in. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site
To know how to create a secure note, please check this out: How The Forum Works
Best Regards.
Do you need access to the production site or staging?
Yes, you can access and make changes to your site.
correction: our site,
You probably know this but the link I sent you is production site.
secure note attached…
I can set the email address for that username if you provide one. Right now it’s going to one of my email addresses.
Thank you for the info. We regenerated the password but accidentally lost it from the clipboard and failed to save it. Would you mind regenerating the password again? Sorry for the inconvenience.
I reset the password to what I set it to in previous secure note.
Checking back to see if you’ve been able to log in?
Thank you for the update. We have removed the All Products block from the “THE PMBA STORE” page. Please note that the theme automatically displays products or assigns a product grid template when the page is set as the base shop page. You do not need to add the All Products block manually.
Can you elaborate on your answer? I see that the “PMBA Store” page is now empty/blank page. I tried to search for an “All Products block” and don’t see that. I see blocks like “product collection” and “product search”, etc. etc. I think you’re saying none of those are required as the theme automatically displays all products? I note that it now only displays 8 products on page 1 and 2 products on page 2. What is controlling that if I can’t do it on the store page? i.e. how would I display all products on 1 page if I desired that?
Also, thanks for getting the the source of the problem so quickly!
Thank you for the update. We had already removed the product block from the page, but it looks like you added it again, but this time using a product shortcode. The product items are now displayed twice on the shop page.
If you need to adjust the number of items in the shop page and toggle layout settings, you can do so in the Theme Options > Woocommerce panel as shown in the screenshot below.
You can also find additional Woocommerce settings in the Appearance > Customize panel.
Let us know if you need more info.
OK, Got it. I did not know about adjusting the number of items in theme options. It’s difficult for us end users to know all the ins & outs and hiding spots for the various settings & parameters that control the look & feel of how the theme presents the website data.
I think we can close this case now. I have some other questions and issues but they’re not related to the store/woocommerce so I’ll open those issues seperately.
Thanks for solving this issue.
Yes, Cornerstone requires a bit of a learning curve, but you’ll get the hang of it in no time. If you have questions, you can search for answers in the documentation, and as always, reach out to us here in the forum.
– https://theme.co/docs
– https://theme.co/docs/getting-support
Feel free to open another thread if you have more questions. Have a nice day.