Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1069242
    Omid
    Participant

    Hi!

    I had some customization to set my own fonts and functions before. Now after upgrade to the latest version I receive some errors due to missing some variables and indexes!

    Could you please guide me to debug them?

    Thanks in advance
    Omid

    #1069244
    Omid
    Participant
    This reply has been marked as private.
    #1069262
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1069263
    Omid
    Participant
    This reply has been marked as private.
    #1069289
    Christopher
    Moderator

    Hi there,

    The way you implemented the font is not quite right. Please follow this link : https://community.theme.co/forums/topic/merriweather-google-font-problem/#post-219525

    Hope it helps.

    #1069425
    Omid
    Participant

    Hi Christopher,

    I knew this solution but to handle fonts from “Customizer” I need to manipulate data.php inside of font folder. Before 4.5 version it worked like a charm but currently my modification return some errors.
    this a piece of change which I had made to control my own fonts from Customizer:

    
     'timesnewroman' => array(
          'source'  => 'system',
          'family'  => 'Times New Roman',
          'stack'   => '"Nassim", Georgia, serif',
          'weights' => array( '400', '400italic' )
        ),

    which anywhere I choosed “timesnewroman” as active font, it retuned content with “Nassim” font.

    Above trick is still working but I do not know how wipe out those errors.

    Thanks

    #1069472
    Christopher
    Moderator

    Hi there,

    Please connect to FTP account and change define('WP_DEBUG', true); to define('WP_DEBUG', false); in wp-config.php file.

    Hope it helps.

    #1072353
    Omid
    Participant

    Hi,

    I do not like to disable the debug mode. Currently I have changed fonts to one of the available google fonts; The font is changed successfully but I still receive those errors. Could you please help me to reset my font settings ( from DB or any other options) ?

    Regards

    #1072354
    Omid
    Participant
    This reply has been marked as private.
    #1072485
    Paul R
    Moderator

    Hi Omid,

    Please change your x_icon_entry_meta code(~line number 260 – 278) – http://screencast.com/t/EMZFpwmDC
    with this.

    
    
    function x_icon_entry_meta() {
                       $author = sprintf( '<span><i class="x-icon-pencil" data-x-icon=""></i> %s</span>',
          get_the_author()
        );
        
                         //
        // Categories.
        //
    
        if ( get_post_type() == 'x-portfolio' ) {
          if ( has_term( '', 'portfolio-category', NULL ) ) {
            $categories        = get_the_terms( get_the_ID(), 'portfolio-category' );
            $separator         = ', ';
            $categories_output = '';
            foreach ( $categories as $category ) {
              $categories_output .= '<a href="'
                                  . get_term_link( $category->slug, 'portfolio-category' )
                                  . '" title="'
                                  . esc_attr( sprintf( __( "View all posts in: &ldquo;%s&rdquo;", '__x__' ), $category->name ) )
                                  . '"><i class="x-icon-bookmark" data-x-icon=""></i> '
                                  . $category->name
                                  . '</a>'
                                  . $separator;
            }
    
            $categories_list = sprintf( '<span>%s</span>',
              trim( $categories_output, $separator )
            );
          } else {
            $categories_list = '';
          }
        } else {
          $categories        = get_the_category();
          $separator         = ', ';
          $categories_output = '';
          foreach ( $categories as $category ) {
            $categories_output .= '<a href="'
                                . get_category_link( $category->term_id )
                                . '" title="'
                                . esc_attr( sprintf( __( "View all posts in: &ldquo;%s&rdquo;", '__x__' ), $category->name ) )
                                . '"><i class="x-icon-bookmark" data-x-icon=""></i> '
                                . $category->name
                                . '</a>'
                                . $separator;
          }
    
          $categories_list = sprintf( '<span>%s</span>',
            trim( $categories_output, $separator )
          );
        }
    
         //
        // Comments link.
        //
    
        if ( comments_open() ) {
    
          $title  = apply_filters( 'x_entry_meta_comments_title', get_the_title() );
          $link   = apply_filters( 'x_entry_meta_comments_link', get_comments_link() );
          $number = apply_filters( 'x_entry_meta_comments_number', get_comments_number() );
    
          $text = ( 0 === $number ) ? 'Leave a Comment' : sprintf( _n( '%s Comment', '%s Comments', $number, '__x__' ), $number );
    
    $comments = sprintf( '<span><a href="%1$s" title="%2$s" class="meta-comments"><i class="x-icon-comments" data-x-icon=""></i> %3$s</a></span>',
            esc_url( $link ),
            esc_attr( sprintf( __( 'Leave a comment on: &ldquo;%s&rdquo;', '__x__' ), $title ) ),
            $text
          );
    
        } else {
    
          $comments = '';
    
        }
        
      $date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
        esc_attr( get_the_date( 'c' ) ),
        esc_html( get_the_date( 'l / j M, Y' ) )
      );
    
      if ( x_does_not_need_entry_meta() ) {
        return;
      } else {
        printf( '<p class="p-meta">%1$s%2$s</p>',
          $author,
          $date,
          $categories_list,
          $comments
        );
      }
    
    }
    
    

    Hope that helps

    #1072618
    Omid
    Participant
    This reply has been marked as private.
    #1072653
    Christian
    Moderator

    Those are just notices and will not hinder website functionality. Please turn off WP debugging. See http://www.inmotionhosting.com/support/website/wordpress/turning-on-wordpress-debugging for more details.

    You should turn off debugging when your site is live as it is a security risk.

    Thanks.

    #1072689
    Omid
    Participant

    Yeah, I see but I would run clean code to ensure all modules are working well with the last modifications. So I would solve these errors before turning off debug mode.

    Thanks in advance.
    Omid

    #1072758
    Paul R
    Moderator

    Hi Omid,

    I was able to fix the error.

    Kindly check in your end.

    Thanks

    #1074222
    Omid
    Participant

    Hi Paul,

    Thank you so much!

    Best Wishes

  • <script> jQuery(function($){ $("#no-reply-1069242 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>