This topic has 10 replies, 3 voices, and was last updated 10 years by Abe.

  • Author
  • #25820
     Mj
    Participant

    Hello,

    By enabling WP Debug, the following error appears on pages:

    Notice: Undefined variable: style in /home/username/domains/domain.com/public_html/wp-content/themes/kleo/vc_templates/vc_column.php on line 22

    I though it should be useful to report this issue.

    Regards,

    Majestic

    #25830
     sharmstr
    Moderator

    That style variable is set if you have version 4.3.2 of visual composer. If not, the variable isn’t set and you’ll get that undefined error. Check your visual composer version and update if you dont have 4.3.2. Then the error should go away.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #25834
     Mj
    Participant

    Hello Sharmstr,

    Thanks for your quick reply. I checked the Visual Composer version and it’s v. 4.3.2.

    Regards,

    Majestic

    #25839
     sharmstr
    Moderator

    Hmm. Interesting. And you’re on Kleo 1.6.3 I assume. I not getting that error when I turn debugging on.

    I thought maybe you weren’t running VC 4.3.2 because the lines of code in vc_column.php that set the $style variable are

    COPY CODE
    
    if (version_compare(WPB_VC_VERSION, '4.3.2') >= 0) {
        $style = $this->buildStyle( $font_color );
    }
    
    

    Guess we’ll have to wait for Abe and the boys to figure this out. Sorry.

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #25842
     Mj
    Participant

    No worries, I will await their reply.

    #25922
     Abe
    Keymaster

    thanks @sharmstr
    we missed your presence here 🙂

    Majestic I think that you don’t have the latest version of Visual composer since I checked and that notice will appear only on lower versions.
    We forgot a little line and that is why the notice is appearing. to fix it until next theme version replace the content of this file from the theme with the content from the one attached wp-content/themes/kleo/vc_templates/vc_column.php

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #25923
     Abe
    Keymaster

    here is the file

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    Attachments:
    You must be logged in to view attached files.
    #25928
     sharmstr
    Moderator

    @abe thank you 🙂

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #25953
     Mj
    Participant

    @Abe, thanks for the fix. I just checked my installed plugins, and the latest version of Visual Composer has been installed. Please check: http://cl.ly/image/2Y3k1I180i0S

    #25955
     Mj
    Participant

    Problem fixed!

    #26068
     Abe
    Keymaster

    I see it was 4.2.3 instead of 4.3.2, tricky 🙂

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

The topic ‘Undefined variable style’ is closed to new replies.

Log in with your credentials

Forgot your details?