Tagged: bug
-
AuthorPosts
-
August 9, 2024 at 12:20 pm #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.
August 9, 2024 at 1:21 pm #1464239Hey 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,
RikardAugust 9, 2024 at 1:25 pm #1464242well, i dont know.
i dont want to update now. otherwise i have to pay someone to get it fixed again..
August 9, 2024 at 3:00 pm #1464258Hi,
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,
RikardAugust 9, 2024 at 3:57 pm #1464266ok will let you know as soon as I find time! thanks
August 9, 2024 at 8:29 pm #1464277 - “;
-
AuthorPosts
- You must be logged in to reply to this topic.