• Resolved rosalieywema

    (@rosalieywema)


    Hi guys! I want to add a filter, but when I press on ‘add new’ nothing happens. I get a code 500 when I look into inspect. How can I add some filters when the popup doesn’t show? ??

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author themifyme

    (@themifyme)

    Hi,

    Could you post a screenshot about the error you got? If it’s an admin-ajax.php error, then you should contact your hosting provider and ask them to enable admin-ajax.php / also set the limit a bit higher ( if needed )

    Can confirm, error 500 both on Add new and Edit of existing ones.

    While it’s indeed an error occurring with a GET/Request URL https://…/wp-admin/admin-ajax.php?action=wpf_edit&nonce=…&slug=kategorien&_fs_blog_admin=true call, the network log shows other calls from the same page to https://…/wp-admin/admin-ajax.php succeed fine.

    I also have no issues with anything else on my site, and the existing filters continue working fine.

    (Most recent versions of everything in WordPress, PHP 8.0.12 with memory_limit 512M, nginx)

    Plugin Author themifyme

    (@themifyme)

    Hi @isarisar

    Please deactivate your third-party plugins ( except WooCommerce ), re-test, if this doesn’t help, please also try switching your theme to StoreFront Theme ( the default WooCommerce Theme ) and if the issue still persists, then please contact us via email at [email protected] so we can investigate this issue further on your website.

    I’ll chip in it appears to be a PHP 8 incompatibility.

    Testing PHP 8 threw up the ajax 500 error in the console. Reverted back to PHP 7.4 and the edit screens load up again, which is fine for this site for now at least.

    Sample error:
    PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num) must be of type int|float, string given in /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/class-wpf-form.php:407\nStack trace:\n#0 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/class-wpf-form.php(407): floor('')\n#1 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/class-wpf-form.php(331): WPF_Form->get_main_fields('price', 'Price', Array)\n#2 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/class-wpf-form.php(278): WPF_Form->module('price', 'Price', Array, Array)\n#3 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/admin/partials/form.php(7): WPF_Form->form()\n#4 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/admin/class-wpf-admin.php(343): include_once('/nas/content/li...')\n#5 /nas/content/live/mysite/wp-includes/class-wp-hook.php(303): WPF_Admin->add_template('')\n#6 /nas/content/live/mysite/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\n#7 /nas/content/live/mysite/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#8 /nas/content/live/mysite/wp-admin/admin-ajax.php(187): do_action('wp_ajax_wpf_edi...')\n#9 {main}\n thrown in /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/class-wpf-form.php on line 407, referer: https://mysite.wpengine.com/wp-admin/admin.php?page=wpf_search

    Plugin Author themifyme

    (@themifyme)

    @weaselnerd – Thanks for flagging this to us. Will report to our development team to fix this. It will be fixed in the next update.

    • This reply was modified 3 years, 2 months ago by themifyme.
    • This reply was modified 3 years, 2 months ago by themifyme.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add new filter doesn’t work’ is closed to new replies.