Option Tree causing error?

Discussion in 'Helium' started by MartinaMartina, Mar 23, 2017.

Tags:
  1. MartinaMartina

    MartinaMartina New Member

    Joined:
    Mar 23, 2017
    Messages:
    4
    Likes Received:
    0
    Hi, I just installed my Helium theme & Child and I immediately received an error message:

    Notice: Only variables should be passed by reference in /Users/cleanuser/Sites/martinamartina/wp-content/themes/helium/option-tree/ot-loader.php on line 329

    I do not have the Option Tree plug in, only the version embedded in my theme files.
    I checked out line 329 to see if I could find an error. Here is lines 328-332:

    Code (Text):
    else {
              $path = ltrim( end( @explode( get_template(), str_replace( '\\', '/', dirname( __FILE__ ) ) ) ), '/' );
              define( 'OT_DIR', trailingslashit( trailingslashit( get_template_directory() ) . $path ) );
              define( 'OT_URL', trailingslashit( trailingslashit( get_template_directory_uri() ) . $path ) );
            }
    Is there something I can change there to fix this issue? Thanks so much!
     

    Attached Files:

  2. MartinaMartina

    MartinaMartina New Member

    Joined:
    Mar 23, 2017
    Messages:
    4
    Likes Received:
    0
    Hi, one more thing I just noticed: my menu is showing both Option Tree and Theme Options, which both open up similar pages. See screenshots. Thanks! Screen Shot 2017-03-22 at 3.50.27 PM.png Screen Shot 2017-03-22 at 3.49.22 PM.png
     
  3. maimairel

    maimairel Administrator
    Staff Member

    Joined:
    Apr 16, 2014
    Messages:
    1,584
    Likes Received:
    58
  4. MartinaMartina

    MartinaMartina New Member

    Joined:
    Mar 23, 2017
    Messages:
    4
    Likes Received:
    0
    Thank you so much, I was able to fix it easily. I appreciate your support.
     

Share This Page