This topic has 4 replies, 2 voices, and was last updated 10 years by taiger.

  • Author
  • #100307
     taiger
    Participant

    Debug log file is showing errors, and the file is getting massive with the error message generated

    #100383
     Radu
    Moderator

    Hi,

    This is caused by some custom modification from child theme, what code is on line 13 ? /public_html/wp-content/themes/5starweddings-child/functions.php

    If you have changes in that file recently please revert changes.

    Cheers

    RAdu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #100391
     taiger
    Participant

    not sure what to look for

    <?php
    /**
    * @package WordPress
    * @subpackage 5starweddings
    * @author 5starweddings <info@5starweddingdirectory.com>
    * @since 5starweddings 1.0
    */

    /**
    * 5starweddings Child Theme Functions
    * Add custom code below
    */
    echo get_post_meta( $post->ID, ‘_wp_attachment_image_alt’, true );
    add_filter(‘bwp_minify_style_ignore’, ‘exclude_my_css’);

    function exclude_my_css($excluded)
    {
    $excluded = array(‘kleo-fonts’);
    return $excluded;
    }

    /* Disable AJAX Theme options save which causes a problem */
    add_filter( ‘kleo_theme_options_ajax’, ‘__return_false’ );

    function kleo_title()
    {
    $output = “”;
    if (is_tag()) {
    $output = __(‘Tag Archive for:’,’kleo_framework’).” “.single_tag_title(‘’,true);
    }
    elseif(is_tax()) {
    $term = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’));
    $output = $term->name;
    }
    elseif ( is_category() ) {
    //$output = __(‘Archive for category:’, ‘kleo_framework’) . ” ” . single_cat_title(”, false);
    $output = single_cat_title(”, false);
    }
    elseif (is_day())
    {
    $output = __(‘Archive for date:’,’kleo_framework’).” “.get_the_time(‘F jS, Y’);
    }
    elseif (is_month())
    {
    $output = __(‘Archive for month:’,’kleo_framework’).” “.get_the_time(‘F, Y’);
    }
    elseif (is_year())
    {
    $output = __(‘Archive for year:’,’kleo_framework’).” “.get_the_time(‘Y’);
    }
    elseif (is_author()) {
    $curauth = (get_query_var(‘author_name’)) ? get_user_by(‘slug’, get_query_var(‘author_name’)) : get_userdata(get_query_var(‘author’));
    $output = __(‘Author Archive’,’kleo_framework’).” “;

    if( isset( $curauth->nickname ) ) {
    $output .= __(‘for:’,’kleo_framework’).” “.$curauth->nickname;
    }
    }
    elseif ( is_archive() ) {
    $output = post_type_archive_title( ”, false );
    }
    elseif (is_search())
    {
    global $wp_query;
    if(!empty($wp_query->found_posts))
    {
    if($wp_query->found_posts > 1)
    {
    $output = $wp_query->found_posts .” “. __(‘search results for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    else
    {
    $output = $wp_query->found_posts .” “. __(‘search result for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    }
    else
    {
    if(!empty($_GET[‘s’]))
    {
    $output = __(‘Search results for:’,’kleo_framework’).” “.esc_attr( get_search_query() );
    }
    else
    {
    $output = __(‘To search the site please enter a valid term’,’kleo_framework’);
    }
    }

    }
    elseif ( is_front_page() && !is_home() ) {
    $output = get_the_title(get_option(‘page_on_front’));

    } elseif ( is_home() ) {
    if (get_option(‘page_for_posts’)) {
    $output = get_the_title(get_option(‘page_for_posts’));
    } else {
    $output = __( ‘Blog’, ‘kleo_framework’ );
    }

    } elseif ( is_404() ) {
    $output = __(‘Error 404 – Page not found’,’kleo_framework’);
    }
    else {
    $output = get_the_title();
    }

    if (isset($_GET[‘paged’]) && !empty($_GET[‘paged’]))
    {
    $output .= ” (“.__(‘Page’,’kleo_framework’).” “.$_GET[‘paged’].”)”;
    }

    return $output;
    }

    /** Add Page Number to Meta Description to avoid Duplication **/
    if ( ! function_exists( ‘t5_add_page_number’ ) )
    {
    function t5_add_page_number( $s )
    {
    global $page;
    $paged = get_query_var( ‘paged’ ) ? get_query_var( ‘paged’ ) : 1;
    ! empty ( $page ) && 1 < $page && $paged = $page;

    $paged > 1 && $s .= ‘ – ‘ . sprintf( __( ‘Page %s’ ), $paged );

    return $s;
    }
    add_filter( ‘wpseo_metadesc’, ‘t5_add_page_number’, 100, 1 );
    }

    function my_custom_member_list_sort( $ret ) {
    $ret[‘type’] = ‘alphabetical’;
    return $ret;
    }
    add_filter( ‘bp_after_has_members_parse_args’, ‘my_custom_member_list_sort’ );

    #100551
     Radu
    Moderator

    Hi,

    Probably from this echo get_post_meta( $post->ID, ‘_wp_attachment_image_alt’, true );

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #100565
     taiger
    Participant

    thanks– sorted

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?