Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1289671

    Hi

    i get the following error:

    Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /homepages/44/d40871808/htdocs/wwwneu/wp-content/themes/enfold/functions-enfold.php on line 293

    Did someone have the same error?

    Here is line 293 from my enfold functions:

    foreach($post_type as $post)
    {
    $image = get_the_post_thumbnail( $post->ID, ‘thumbnail’ );

    $extra_class = $image ? “with_image” : “”;
    $post_type = $image ? “” : get_post_format($post->ID) != “” ? get_post_format($post->ID) : “standard”;
    $iconfont = $image ? “” : av_icon_string($post_type);
    $excerpt = “”;

    if(!empty($post->post_excerpt))
    {
    $excerpt = apply_filters( ‘avf_ajax_search_excerpt’, avia_backend_truncate($post->post_excerpt,70,” “,”…”, true, ”, true) );
    }
    else

    Php is PHP 7.4

    Cheers
    dezi

    • This topic was modified 3 years, 9 months ago by dezomat2.
    #1289674

    i checked its only on 7.4 not on 7.3

    #1290149

    Hi dezomat2,

    What version of Enfold are you using?
    I have checked functions-enfold.php in line 293, but I’m seeing this:

    if ( $search_parameters['results_hide_fields'] !== '' ) 
    {
        $search_parameters['results_hide_fields'] = explode( ',', $_REQUEST['results_hide_fields'] );
    }
    else 
    {
        $search_parameters['results_hide_fields'] = array();
    }

    Best regards,
    Nikko

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