PHP 7.1
-
Hello I noticed that forms cannot be edited when running on PHP 7.1.
PHP 7.0 works fine.
-
Never tested on PHP7.1 yet. I suggest using lower version because there are still many server still using PHP5 .
Ok thanks but my host is suggesting to use PHP 7.1 for performance reasons.
We are also using 7.1 and receive am unable to edit the form.
PHP Fatal error: Uncaught Error: [] operator not supported for strings in D:\home\site\wwwroot\wp-content\plugins\ultimate-wp-query-search-filter\ultimate-wpqsf.php:129
Stack trace:
#0 D:\home\site\wwwroot\wp-includes\class-wp-hook.php(298): ulitmatewpsf->uwpqsf_save_from(”)
#1 D:\home\site\wwwroot\wp-includes\class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 D:\home\site\wwwroot\wp-includes\plugin.php(453): WP_Hook->do_action(Array)
#3 D:\home\site\wwwroot\wp-admin\admin.php(154): do_action(‘admin_init’)
#4 {main}
thrown in D:\home\site\wwwroot\wp-content\plugins\ultimate-wp-query-search-filter\ultimate-wpqsf.php on line 129I reset the values of the array variables to arrays at the beginning of the loops and it seems to be working fine.
https://stackoverflow.com/questions/5879675/problem-with-fatal-error-operator-not-supported-for-strings-inEdited ultimate-wpqsf.php
Thanks for your feedback cook3d!
how can I fixed string in ultimate-wpqsf.php ? Thanks
I need this plugin on a new website… Has anyone found a working solution for PHP 7.1?
I’m with you @baga, it’s a shame it is no longer being supported. I wish someone would take it over.
@baga @stordream
For anyone that is still looking for a working solution for PHP 7.1+ the changes made below seem to be working.I changed the following lines of ultimate-wpqsf.php as follows:
Line 129
$cptarray[] = sanitize_text_field($cv);
to
$cptarray = array(); //add this line above
$cptarray[] = sanitize_text_field($cv);Line 137
$taxoarray[]=array( etc
to
$taxoarray = array(); //add this line above
$taxoarray[]=array( etcLine 155
$cmfarray[] = array( etc
to
$cmfarray = array(); //add this line above
$cmfarray[] = array(Line 170
$relarray[] = array( etc
to
$relarray = array(); //add this line above
$relarray[] = array(Thanks @johannaa I will try it tomorrow morning!
It works properly!
Thank you very much @johannaa 🙂 🙂 🙂@baga w00t!! Glad to hear it. 😄
@baga Can you delete forms? I’m not getting any errors but I can’t delete forms. I reverted my change to see if that somehow affected it but it wasn’t the change. I haven’t had to delete any forms so I’m wondering if this has been happening for a while. :/
Hi again,
I’ve tried now and unfortunately forms cannot be deleted, also new created forms are not working as expected…
I will try now to downgrade PHP version to 5.6 becasue I need to add new forms.
The topic ‘PHP 7.1’ is closed to new replies.