Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1029636

    Hi there,

    On the following page (private) on my clients website, I have setup a custom search for custom post type ‘Portfolio’ entries.
    In the front of the website ‘Portfolio’ is presented as ‘Articles’.

    This custom post type has two taxonomies.
    ‘Article Authors’ and ‘Article Categories’.
    These, were created with ‘Toolset Types’ and the search with ‘Toolset Views’.

    On this search page, by default all ‘Articles’ are presented.
    On the search area there are two dropdown lists where the user can choose ‘Article Authors’ and/or ‘Article Categories’.
    When the user chooses a value in either of these fields, the other field gets updated with the available options for each input.
    By clicking ‘Submit’ we get the right results.
    Up to here all is working as intended.

    The problem.
    This does not work on mobile phones.
    When changing any of the two fields, the spinner graphics icon rotates forever and the values do not appear to update.
    Note: If the user clicks ‘Submit’ it will return the right results (or no results and that is where poor UX comes into play).
    This probably means that the essence of the query works properly but there is a problem somewhere in the AJAX functionality that shows the updated dropdown fields to the visitor.

    Choosing to display Desktop site on a mobile phone does not make a difference, either.

    I have done my search and found this topic.
    https://kriesi.at/support/topic/toolset-custom-search-problem-with-enfold-ajax/
    I followed the steps and it somehow helped, since before applying these steps, the whole thing was also behaving erratically to desktop computers too.
    After updating to Enfold 4.5 I only kept the following code to the child theme.

    ——
    add_filter( ‘avf_enqueue_wp_mediaelement’, ‘avia_always_load_mediaelement’, 10, 2);
    function avia_always_load_mediaelement($condition, $options)
    {
    $condition = true;
    return $condition;
    }
    ——

    Please let me know if you need any additional information and/or access credentials.

    Thank you in advance for your help,
    Vassilis

    #1031058

    Hey ITIS,

    Thank you for using Enfold.

    I’m getting this error in the console on desktop view.

    // /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 500 ()

    The “wpv_get_view_query_results” ajax function is not working properly because of that. Please ask your hosting provider if the mod_security rule is blacklisting or blocking the admin-ajax.php file.

    Best regards,
    Ismael

    #1031226

    Thank you for your reply,

    I contacted my hosting provider and that was not the problem.
    But we did find out what it was and here it is for future reference of anyone running into the same problem.
    All I had to do was to increase the memory limit which was way too low.
    Everything works fine now.
    You can close this topic now and consider it resolved.

    Thanks again.

    #1032291

    Hi ITIS,

    Glad you got it working for you and thank you for sharing! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.