rmorse / search-filter

Search & Filter is a simple search and filtering plugin for WordPress
GNU General Public License v2.0
93 stars 41 forks source link

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

Open jkd77 opened 3 years ago

jkd77 commented 3 years ago

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.

rmorse commented 3 years ago

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

aircrescio commented 3 years ago

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

rmorse commented 3 years ago

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

aircrescio commented 3 years ago

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 notifications@github.com 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: info@cresciniwebsolutions.it 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

rmorse commented 3 years ago

@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

aircrescio commented 3 years ago

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


Diego Crescini Email: info@cresciniwebsolutions.it 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 notifications@github.com 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.

rmorse commented 3 years ago

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!

aircrescio commented 3 years ago

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 notifications@github.com 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: info@cresciniwebsolutions.it 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

rmorse commented 3 years ago

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