• Resolved enrique152

    (@enrique152)


    This plug in wont work with the One-tone theme. The gallery loads fine, except when pagination is turned on, navigating to the other pages (by clicking the next/prev or numbered buttons) breaks the plugin and redirects me to a page with the following error:

    Fatal error: Call to undefined function onetone_options_array() in /home/content/13/8222613/html/shockLoan/wp-content/themes/onetone-child/header.php on line 21

    Please let me know how I can fix this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author MageeWP

    (@magictheme)

    Hello, could you copy and paste the code of your header.php here, or send your access of dashboard to support@mageewp.com ?

    Thread Starter enrique152

    (@enrique152)

    heres the PHP file!

    <!DOCTYPE html>
    <html <?php language_attributes(); ?> class=”no-js”>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width”>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <!–[if lt IE 9]>
    <script src=”<?php echo esc_url( get_template_directory_uri().’/js/html5.js’ ); ?>”></script>
    <![endif]–>
    <?php wp_head(); ?>
    </head>
    <?php

    global $page_meta;
    $detect = new Mobile_Detect;
    $display_top_bar = onetone_option(‘display_top_bar’,’yes’);
    $header_background_parallax = onetone_option(‘header_background_parallax’,”);
    $header_top_padding = onetone_option(‘header_top_padding’,”);
    $header_bottom_padding = onetone_option(‘header_bottom_padding’,”);
    $header_background_parallax = $header_background_parallax==”yes”?”parallax-scrolling”:””;
    $top_bar_left_content = onetone_option(‘top_bar_left_content’,’info’);
    $top_bar_right_content = onetone_option(‘top_bar_right_content’,’info’);

    $logo = onetone_option(‘logo’,”);
    $logo_retina = onetone_option(‘logo_retina’);
    $logo = ( $logo == ” ) ? $logo_retina : $logo;
    $sticky_logo = onetone_option(‘sticky_logo’,$logo);
    $sticky_logo_retina = onetone_option(‘sticky_logo_retina’);
    $sticky_logo = ( $sticky_logo == ” ) ? $sticky_logo_retina : $sticky_logo;

    $header_overlay = onetone_option(‘header_overlay’,’no’);

    $overlay = ”;
    if( $header_overlay == ‘yes’)
    $overlay = ‘overlay’;

    //sticky
    $enable_sticky_header = onetone_option(‘enable_sticky_header’,’yes’);
    $enable_sticky_header_tablets = onetone_option(‘enable_sticky_header_tablets’,’yes’);
    $enable_sticky_header_mobiles = onetone_option(‘enable_sticky_header_mobiles’,’yes’);

    if(isset($page_meta[‘nav_menu’]) && $page_meta[‘nav_menu’] !=”)
    $theme_location = $page_meta[‘nav_menu’];
    else
    $theme_location = ‘primary’;

    $body_class = ‘page blog’;
    if( is_front_page() )
    $body_class = ‘page homepage’;

    $header_image = get_header_image();
    ?>
    <body <?php body_class($body_class); ?>>
    <div class=”wrapper”>
    <div class=”top-wrap”>
    <?php if( $header_image ):?>
    <img src=”<?php echo $header_image; ?>” height=”<?php echo get_custom_header()->height; ?>” width=”<?php echo get_custom_header()->width; ?>” alt=”” />
    <?php endif;?>
    <!–Header–>
    <header class=”header-wrap logo-left <?php echo $overlay; ?>”>
    <?php if( $display_top_bar == ‘yes’ ):?>
    <div class=”top-bar”>
    <div class=”container”>
    <div class=”top-bar-left”>
    <?php onetone_get_topbar_content( $top_bar_left_content );?>
    </div>
    <div class=”top-bar-right”>
    <?php onetone_get_topbar_content( $top_bar_right_content );?>
    </div>
    </div>
    </div>
    <?php endif;?>

    <div class=”main-header <?php echo $header_background_parallax; ?>”>
    <div class=”container”>
    <div class=”logo-box”>
    <?php if( $logo ):?>

    “>
    <img class=”site-logo normal_logo” alt=”<?php bloginfo(‘name’); ?>” src=”<?php echo esc_url($logo); ?>” />

    <?php
    if( $logo_retina ):
    $pixels =””;
    if(is_numeric(onetone_option(‘retina_logo_width’)) && is_numeric(onetone_option(‘retina_logo_height’))):
    $pixels =”px”;
    endif; ?>
    “>
    <img src=”<?php echo $logo_retina; ?>” alt=”<?php bloginfo(‘name’); ?>” style=”width:<?php echo onetone_option(‘retina_logo_width’).$pixels; ?>;max-height:<?php echo onetone_option(‘retina_logo_height’).$pixels; ?>; height: auto !important” class=”site-logo retina_logo” />

    <?php endif;?>
    <?php else: ?>
    <div class=”name-box” style=” display:block;”>
    “><h1 class=”site-name”><?php bloginfo(‘name’); ?></h1>
    <span class=”site-tagline”><?php bloginfo(‘description’); ?></span>
    </div>
    <?php endif;?>
    </div>
    <button class=”site-nav-toggle”>
    <span class=”sr-only”><?php _e( ‘Toggle navigation’, ‘onetone’ );?></span>
    <i class=”fa fa-bars fa-2x”></i>
    </button>
    <nav class=”site-nav” role=”navigation”>
    <?php
    wp_nav_menu(array(‘theme_location’=>$theme_location,’depth’=>0,’fallback_cb’ =>false,’container’=>”,’container_class’=>’main-menu’,’menu_id’=>’menu-main’,’menu_class’=>’main-nav’,’link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’,’items_wrap’=> ‘<ul id=”%1$s” class=”%2$s”>%3$s’));
    ?>
    </nav>
    </div>
    </div>

    <?php if( $enable_sticky_header == ‘yes’ ):?>
    <?php if( !$detect->isTablet() || ( $detect->isTablet() && $enable_sticky_header_tablets == ‘yes’ ) || ( $detect->isMobile() && !$detect->isTablet() && $enable_sticky_header_mobiles == ‘yes’ ) ):?>

    <div class=”fxd-header”>
    <div class=”container”>
    <div class=”logo-box”>
    <?php if( $sticky_logo ):?>
    “><img class=”site-logo normal_logo” src=”<?php echo esc_url($sticky_logo); ?>”>

    <?php
    if( $sticky_logo_retina ):
    $pixels =””;
    if( is_numeric(onetone_option(‘sticky_logo_width_for_retina_logo’)) && is_numeric(onetone_option(‘sticky_logo_height_for_retina_logo’)) ):
    $pixels =”px”;
    endif; ?>
    “><img src=”<?php echo $sticky_logo_retina; ?>” alt=”<?php bloginfo(‘name’); ?>” style=”width:<?php echo onetone_option(‘sticky_logo_width_for_retina_logo’).$pixels; ?>;max-height:<?php echo onetone_option(‘sticky_logo_height_for_retina_logo’).$pixels; ?>; height: auto !important” class=”site-logo retina_logo” />
    <?php endif; ?>

    <?php else: ?>
    <div class=”name-box” style=” display:block;”>
    “><h1 class=”site-name”><?php bloginfo(‘name’); ?></h1>
    <span class=”site-tagline”><?php bloginfo(‘description’); ?></span>
    </div>
    <?php endif;?>
    </div>
    <button class=”site-nav-toggle”>
    <span class=”sr-only”><?php _e( ‘Toggle navigation’, ‘onetone’ );?></span>
    <i class=”fa fa-bars fa-2x”></i>
    </button>
    <nav class=”site-nav” role=”navigation”>
    <?php
    wp_nav_menu(array(‘theme_location’=>$theme_location,’depth’=>0,’fallback_cb’ =>false,’container’=>”,’container_class’=>’main-menu’,’menu_id’=>’menu-main’,’menu_class’=>’main-nav’,’link_before’ => ‘<span>’, ‘link_after’ => ‘</span>’,’items_wrap’=> ‘<ul id=”%1$s” class=”%2$s”>%3$s’));
    ?>
    </nav>
    </div>
    </div>

    <?php endif;?>
    <?php endif; ?>

    </header>
    <div class=”slider-wrap”></div>
    </div>

    Theme Author MageeWP

    (@magictheme)

    Please try to edit wp-content/themes/onetone-child/header.php
    find onetone_options_array
    Then change it to onetone_option

    Thread Starter enrique152

    (@enrique152)

    This worked, but the link is still broken, now when I click to go to a different page it redirects me to this address:

    http://shockingstudentloans.com/shock-test-button/2/

    The gallery disappears and the page now looks totally different. What else should I try?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Justified Flickr Gallery – FATAL ERROR’ is closed to new replies.