Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1464228

    Hello,
    i had problems editing my page.
    I got someone to fix it with a patch. however the patch will not work when updated next.
    Please check the info and try to fix it for future updates.
    Looking forward to your reply!

    here is the problem:

    Regarding the issue, the currently installed Enfold theme (Version: 5.6.10 ) Child (Version: 1.0.0 ) isn’t prepared when a table’s row doesn’t have a “row_style” attribute. So when the “row_style” is empty, it’s causing the critical error. For now, I’ve patched the Enfold theme so it will work, even when the “row_style” is empty. Below is the path to the file I patched:

    wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/table/table.php

    I replaced these lines:
    if( strpos( $ul[‘attr’][ $key ][‘row_style’], ‘avia-pricing-row’ ) !== false )
    {
    $content = preg_replace( ‘!(\$|€|¥|£|¢|¤|%|‰|¢|¤|£|¥|€)!’ , ‘<span class=”currency-symbol”>$1</span>’, $content );
    }

    $output .= “<li class='{$ul[‘attr’][$key][‘row_style’]}’>”;

    ==========

    With these lines:
    if ( empty($ul[‘attr’][ $key ][‘row_style’]) ) {
    $output .= “

  • “;
    } else {
    if( strpos( $ul[‘attr’][ $key ][‘row_style’], ‘avia-pricing-row’ ) !== false )
    {
    $content = preg_replace( ‘!(\$|€|¥|£|¢|¤|%|‰|¢|¤|£|¥|€)!’ , ‘<span class=”currency-symbol”>$1</span>’, $content );
    }

    $output .= “<li class='{$ul[‘attr’][$key][‘row_style’]}’>”;
    }

    Might be worth raising this issue to the Enfold theme, so they’ll fix this in future versions. Because as of now, if you update the Enfold theme, this patch will be overwritten.

#1464239

Hey aschierl,

Does the same problem occur if you update to the latest version (6.0.2) of the theme? https://kriesi.at/documentation/enfold/theme-update/

Best regards,
Rikard

#1464242

well, i dont know.

i dont want to update now. otherwise i have to pay someone to get it fixed again..

#1464258

Hi,

You can download the file that you have changed locally, then update the theme. If it should be necessary then you can add the code back after the update.

Best regards,
Rikard

#1464266

ok will let you know as soon as I find time! thanks

#1464277

Hi,

Thanks for the update, we’ll keep this thread open for you.

Best regards,
Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.