• Hello,

    I’m using the Weblizar theme and when I updated to the latest version, the child theme broke (white screen) and the logs show this error:

    PHP Fatal error: Uncaught Error: Call to undefined function weblizar_get_options() in *******/wp-content/themes/weblizar_child/header.php

    When I revert to the old version of the theme it works perfectly.

    How do I resolve this error?

    Thanks
    Sofia

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author weblizar

    (@weblizar)

    Hello @testmictest ,

    In weblizar update version we changed some functionality so that if you are using latest version of Weblizar theme you have to correction in your child theme …you have to remove $wl_theme_options = weblizar_get_options(); and replace wl_theme_options from get_theme_mod function like…

    <body <?php if($wl_theme_options['box_layout']==2) { body_class('boxed'); } else 
    body_class(); ?>>

    replace with

    <body <?php $box_layout = get_theme_mod('box_layout', '1'); if ($box_layout == '2') { body_class('boxed'); } else body_class(); ?>>

    If still if you have any problem to understand send me your child theme package I’ll update it.

    Thank you

    I have the same problem, but attempting to implement these fixes are failing for me.

    First, I have calls to weblizar_get_options() in both my header.php and front-page.php files. I cannot update either file because WordPress detects errors in the other and prevents me from saving the new information.

    Second, I do not have this anywhere that I can see: `<body <?php if($wl_theme_options[‘box_layout’]==2) { body_class(‘boxed’); } else
    body_class(); ?>>`

    Thank you.

    Theme Author weblizar

    (@weblizar)

    @nwcasebolt : Share me your Site Link. And if possible your Theme(s).

    Thankyou

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update breaks site’ is closed to new replies.