Jump to content

Archived

This topic is now archived and is closed to further replies.

bartok

Site Broken After Upgrading to Pagelines Version 1.1.9

Recommended Posts

bartok

I just upgraded my site (http://www.dannysvenice.com) to 1.1.9 from 1.1.8 and now I get the following error:

 

Fatal error: Call to undefined function pl_add_theme_tab() in /home/dannprgd/public_html/wp-content/themes/dannys-child-theme/functions.php on line 82

Here is the text from the functions.php file (I have placed line 82 in bold):

-----------------------------

<?php

 
// Load Framework - don't delete this
require_once( dirname(__FILE__) . '/setup.php' );
 
// Load our shit in a class cause we're awesome
class YourTheme {
 
function __construct() {
 
// Constants
$this->url = sprintf('%s', PL_CHILD_URL);
$this->dir = sprintf('/%s', PL_CHILD_DIR);
 
// Add a filter so we can build a few custom LESS vars
add_filter( 'pless_vars', array(&$this,'custom_less_vars'));
 
$this->init();
}
 
function init(){
 
// Run the theme options
$this->theme_options();
 
// Send the user to the Theme Config panel after they activate.
add_filter('pl_activate_url', array(&$this,'activation_url'));
}
 
// Send the user to the Theme Config panel after they activate. Note how link=nb_theme_config is the same name of the array settings. This must match.
function activation_url( $url ){
 
   $url = home_url() . '?tablink=theme&tabsublink=nb_theme_config';
   return $url;
}
 
// Custom LESS Vars
function custom_less_vars($less){
 
// Adding a custom LESS var, use this in LESS as @my-var. In this example, its linked to a custom color picker in options. We also must set a default or else it's going to error.
// pl_hashify must be used with color pickers so that it appends the # symbol to the hex code
// pl_setting is being used because this is a global option used in the theme
$less['my-var']   =  pl_setting('my_custom_color') ? pl_hashify(pl_setting('my_custom_color')) : '#07C';
 
return $less;
}
 
    // WELCOME MESSAGE - HTML content for the welcome/intro option field
function welcome(){
 
ob_start();
 
?><div style="font-size:12px;line-height:14px;color:#444;"><p><?php _e('You can have some custom text here.','nicks-base-theme');?></p></div><?php
 
return ob_get_clean();
}
 
// Theme Options
function theme_options(){
 
$options = array();
 
$options['nb_theme_config'] = array(
  'pos'                  => 50,
  'name'                 => __('Nicks Base Theme','nicks-base-theme'),
  'icon'                 => 'icon-rocket',
  'opts'                 => array(
  array(
         'type'        => 'template',
              'title'       => __('Welcome to My Theme','nicks-base-theme'),
            'template'    => $this->welcome()
      ),
      array(
  'type'         => 'color',
  'title'        => __('Sample Color','nicks-base-theme'),
  'key'          => 'my_custom_color',
  'label'        => __('Sample Color','nicks-base-theme'),
  'default'      =>'#FFFFFF'
      ),
  )
);
pl_add_theme_tab($options);
}
 
}
new YourTheme;

-----------------------------


What do I need to do to get my site back up and working again? HELP!!!!

 

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Nicks child theme isn't supported by the developer anymore, therefore, you will want to remove all the code from that file, which should resolve your issue.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
erin-wsk

I can confirm this is the case (after two sites update/broke). I just copy and pasted any code I had in the css/less/functions files from Nick's base theme to the same in Danny's skeleton theme, making sure everything is the same. Delete the files from the child theme folder and replace with the new files from the skeleton theme. Works perfectly. 

Share this post


Link to post
Share on other sites

  • Similar Content

    • 123jahson@gmail.com
      By [email protected]+
      Hello,
      Does anyone know how I can my site name to my website?  I would like to have it at the top left.
      Here is my site: https://howtostaysafeonthenet.com/
      I am still new to the platform, so any help will be appreciated.
      Thank you!
      Jason
    • Grant Turck
      By Grant Turck+
      Navbar Broken on All Devices When Not Logged Into Wordpress. See screenshots attached from mobile. What is causing this issue and how do I fix? Site is venicepride [dot] org.


    • Thijs
      By Thijs+
      Hi,
      somehow my post navigation won't show up beneath a post.
      Link to the website (Platform 5)
      Also with all plugins deactivated nothing shows up.
      I'd also like to make the post navigation visible on custom post types.
      What should I do:
      Continue to look for a CSS error? Or make a new section with a post navigation? ... ? Somebody give me hint please?
      Kind regards,
      Thijs
       
       
    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
×