search-filter icon indicating copy to clipboard operation
search-filter copied to clipboard

PHP Warning: Invalid argument supplied for foreach() in plugins\search-filter\search-filter.php on line 576

Open jkd77 opened this issue 4 years ago • 9 comments

Hey Team - I'm using the Search and Filter plugin via a shortcode and I get the following error when attempting to edit the page using Beaver Builder:

PHP Warning: Invalid argument supplied for foreach() in htdocs\wp-content\plugins\search-filter\search-filter.php on line 576 PHP Warning: Invalid argument supplied for foreach() in htdocs\wp-content\plugins\search-filter\search-filter.php on line 576

The shortcode is simply: [searchandfilter fields="post_tag" search_placeholder="Topics" submit_label="Filter"]

I have used this plugin successfully in the past alongside Beaver Builder. Any thoughts on a fix? Thanks in advance.

jkd77 avatar Nov 30 '20 17:11 jkd77

Thanks for letting us know, I'll test in the next couple of days and get back to you.

rmorse avatar Nov 30 '20 18:11 rmorse

Same issue on saving page changes.

Warning: Invalid argument supplied for foreach() in /home/customer/www/pro-creativi.it/public_html/wp-content/plugins/search-filter/search-filter.php on line 576

Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/pro-creativi.it/public_html/wp-content/plugins/search-filter/search-filter.php:576) in /home/customer/www/pro-creativi.it/public_html/wp-admin/post.php on line 231

aircrescio avatar Dec 22 '20 10:12 aircrescio

Hi both, can you try this version with the fix? https://drive.google.com/file/d/1E0DsBOgsW_IUiBVI2_TJ1CUGzNR13f97/view?usp=sharing

As you can see (from the last commits), we're not maintaining the plugin via github at the moment, so not pushing the changes through here.

Thanks

rmorse avatar Dec 22 '20 11:12 rmorse

You send me an old version? Ca’t you fix new one? This version you sended my works.

My customer upgrade plugin for security reason.

Il giorno 22 dic 2020, alle ore 12:29, Ross Morsali [email protected] ha scritto:

Hi both, can you try this version with the fix? https://drive.google.com/file/d/1E0DsBOgsW_IUiBVI2_TJ1CUGzNR13f97/view?usp=sharing https://drive.google.com/file/d/1E0DsBOgsW_IUiBVI2_TJ1CUGzNR13f97/view?usp=sharing As you can see, we're not maintaining the plugin via github at the moment, so not pushing the changes through here.

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rmorse/search-filter/issues/65#issuecomment-749494847, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKK6UEKGSHGOP5JFQ3X7LTSWB7KZANCNFSM4UH3XWHA.


Diego Crescini Email: [email protected] P.IVA IT03571290984 Tel. 3391741024


In ottemperanza al D.L. 196 del 30/06/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario. Qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietato! Se lo avete ricevuto per errore avvertite il mittente e distruggetelo. Grazie

aircrescio avatar Dec 23 '20 07:12 aircrescio

@aircrescio I just wanted to see if it fixed your issue - thanks for testing!

Now that I know it works - I will release an official update tomorrow.

Best

rmorse avatar Dec 23 '20 08:12 rmorse

Super Thanks Ross! How can i manage style and translation of your plugin? Submit button for example


Diego Crescini Email: [email protected] P.IVA IT03571290984 Tel. 3391741024


In ottemperanza al D.L. 196 del 30/06/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario. Qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietato! Se lo avete ricevuto per errore avvertite il mittente e distruggetelo. Grazie

Il giorno 23 dic 2020, alle ore 09:55, Ross Morsali [email protected] ha scritto:

 @aircrescio I just wanted to see if it fixed your issue - thanks for testing!

Now that I know it works - I will release an official update tomorrow.

Best

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

aircrescio avatar Dec 23 '20 09:12 aircrescio

Right now style must be done with CSS.

To change the label, check the docs: http://docs.designsandcode.com/search-filter/ You are looking for submit_label

Watch this space in February - theres a whole new version coming with a lot of (great) changes!

rmorse avatar Dec 23 '20 09:12 rmorse

Hello, sorry for disturb 24 December… I try to use your plugin for search custom post type “avada_portfolio” but when i click search i receive error 404 and URL is not archive page or search result page but this url: https://pro-creativi.it/servizi/studiob-recording__trashed/ https://pro-creativi.it/servizi/studiob-recording__trashed/

i don’t understand why… my shortcode used is: [searchandfilter fields="search,portfolio_category" post_types="avada_portfolio" submit_label="Cerca”]

You can find and check error at this page: https://pro-creativi.it/ricerca-servizi-musica/ https://pro-creativi.it/ricerca-servizi-musica/

I use 1.2.8 Version of your plugin.

I hope in some solution… i’m starting to understand and love your plugin… Thanks

Diego

Il giorno 23 dic 2020, alle ore 10:13, Ross Morsali [email protected] ha scritto:

Right now style must be done with CSS.

To change the label, check the docs: http://docs.designsandcode.com/search-filter/ http://docs.designsandcode.com/search-filter/ You are looking for submit_label

Watch this space in February - theres a whole new version coming with a lot of (great) changes!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rmorse/search-filter/issues/65#issuecomment-750027672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKK6UHTRNS62O5TYDQG7JDSWGYDRANCNFSM4UH3XWHA.


Diego Crescini Email: [email protected] P.IVA IT03571290984 Tel. 3391741024


In ottemperanza al D.L. 196 del 30/06/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario. Qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietato! Se lo avete ricevuto per errore avvertite il mittente e distruggetelo. Grazie

aircrescio avatar Dec 24 '20 16:12 aircrescio

I have just released th update with the fix - v1.2.13 - it should be available from your dashboard / wordpress.org.

@aircrescio regarding the portfolio - archive and public need to be enabled on the avada portfolio post type.

Right now we are focussing on the next version rather than supporting this version.

We will update in February we hope.

Best

rmorse avatar Jan 11 '21 10:01 rmorse