Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter jckuffner

    (@jckuffner)

    I would think the error is coming via https://help.us-themes.com/impreza/us-core/ – see “/plugins/us-core/” in the error log. It’s a commercial plugin to support Zephyr & Impreza VC themes. I’m sure I won’t see an error if I install AWB on a fresh WP copy.

    Thread Starter jckuffner

    (@jckuffner)

    Here is the full message I get on the server:

    Message:
    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live//wp-content/plugins/advanced-backgrounds/classes/class-vc-extend.php:121\nStack trace:\n#0 /nas/content/live//wp-includes/class-wp-hook.php(309): NK_AWB_VC_Extend->vc_shortcode_output_filter(‘<div class=”vc_…’, Object(US_Shortcodes), ”)\n#1 /nas/content/live//wp-includes/plugin.php(189): WP_Hook->apply_filters(‘<div class=”vc_…’, Array)\n#2 /nas/content/live//wp-content/plugins/us-core/functions/shortcodes.php(259): apply_filters(‘vc_shortcode_ou…’, ‘<div class=”vc_…’, Object(US_Shortcodes), ”, ‘vc_column’)\n#3 /nas/content/live//wp-includes/shortcodes.php(356): US_Shortcodes->__call(‘vc_column’, Array)\n#4 [internal function]: do_shortcode_tag(Array)\n#5 /nas/content/live//wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\\\[(\\\\[?)(vc_col…’, ‘do_shortcode_ta…’, ‘[vc_column][/vc…’)\n#6 /nas/content/live//wp-content/plugins/us-core/templates/elements/vc_row.php(494): do_shortcode(‘[vc_column][/vc…’)\n#7 /nas/content/live//wp-content/plugins/us-core/functions/shortcodes.php(245): require(‘/nas/content/li…’)\n#8 /nas/content/live//wp-includes/shortcodes.php(356): US_Shortcodes->__call(‘vc_row’, Array)\n#9 [internal function]: do_shortcode_tag(Array)\n#10 /nas/content/live//wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\\\[(\\\\[?)(vc_row…’, ‘do_shortcode_ta…’, ‘[vc_row height=…’)\n#11 /nas/content/live//wp-includes/class-wp-hook.php(307): do_shortcode(‘[vc_row height=…’)\n#12 /nas/content/live//wp-includes/plugin.php(189): WP_Hook->apply_filters(‘[vc_row height=…’, Array)\n#13 /nas/content/live//wp-content/plugins/us-core/templates/single.php(45): apply_filters(‘the_content’, ‘<p>[vc_row heig…’)\n#14 /nas/content/live//wp-content/plugins/us-core/functions/helpers.php(142): include(‘/nas/content/li…’)\n#15 /nas/content/live//wp-content/themes/Zephyr/page.php(12): us_load_template(‘templates/singl…’)\n#16 /nas/content/live//wp-includes/template-loader.php(106): include(‘/nas/content/li…’)\n#17 /nas/content/live//wp-blog-header.php(19): require_once(‘/nas/content/li…’)\n#18 /nas/content/live//index.php(17): require(‘/nas/content/li…’)\n#19 {main}\n thrown in /nas/content/live//wp-content/plugins/advanced-backgrounds/classes/class-vc-extend.php on line 121

    I managed to create a workaround by adding declarations to vc_shortcode_output_filter. It seems that since upgrading to php8 $attr does not always arrive as an array. This is what I wrote:

    public function vc_shortcode_output_filter( $output, $obj, $attr ) {
            if ( is_array($attr) ):
                $attr += ['awb_after_vc_row' => 'false'];
            else:
                $attr = array('awb_after_vc_row' => 'false');
            endif;
            if ( $obj->settings( 'base' ) === 'vc_row' ) {
                $attr['awb_after_vc_row'] = 'true';
                $output                  .= NK_AWB_Shortcode::get_shortcode_out( $attr, '' );
            } elseif ( $obj->settings( 'base' ) === 'vc_column' ) {
                $attr['awb_after_vc_column'] = 'true';
                $output                     .= NK_AWB_Shortcode::get_shortcode_out( $attr, '' );
            }
            return $output;
        }

    Hope this helps.

    Thread Starter jckuffner

    (@jckuffner)

    Thanks for your response. I will do some more testing and let you know what I find.

    I’m having the same issue on two different sites.

    Hi @twoelevenjay

    Thanks for responding. We’re using a Storefront child theme. No, I’m not using infinite scroll. For now we’ve decided just to trash the items. I’d like to find out what’s going on so I’m going to set up an additional staging site to figure out if there are specific plugins or theme settings conflicting with the plugin. I’ll let you know what we find out.

    Having the same issue here. I’ll let you know if I figure something out.

    @tokkonopapa – I’m still down to test some time, I was out on vacation the last time I got your request. Please keep in mind for future releases.

    Cheers

    JC

    Done

    @tokkonopapa happy to help you testing for future releases. It’s a good plugin.

    Free is good – and in this day an age you forget you’re working with free software πŸ™‚

    I run a variety of servers and it’s down on all of them. I think it speaks to larger problems with WordPress – how to manage dozens or hundreds of WP sites effectively, like we do. Perhaps WP needs higher standards and more stringent procedures for plugin updates to keep this from happening.

    I have the same error since updating. It would be nice if plugin authors actually tested their updates before launching them. This happens way too often and makes managing plugins difficult.

    Since I want this plugin to work I commented out the offending section – it’s the method related to localization which I don’t use in the website I have running the plugin.

    public function add_localization() {
    /*$contLDomain = "faqwd";
    $locale = get_locale();
    $path = WP_CONTENT_DIR . '/uploads/Languages_WD/' . explode('/', plugin_basename(__FILE__))[0] . '/faq-wd-' . $locale . '.mo';
    $loaded = load_textdomain($contLDomain, $path);
    if (isset($_GET['page']) && $_GET['page'] == basename(__FILE__) && !$loaded) {
    echo '<div class="error"> Staff Directory WD ' . __('Could not load the localization file: ' . $path, $contLDomain) . '</div>';
    return;
    }*/
    }

    This should do until the plugin is fixed.

    Thread Starter jckuffner

    (@jckuffner)

    Thank you.

    Thread Starter jckuffner

    (@jckuffner)

    function validate in EM_Location class. This is the message:

    $this->add_error( __(‘Location name’,’dbem’).__(” is required.”, “dbem”) );

    I decided to just do this with JQuery for now, hoping the CSS classes won’t change for the message any time soon.

    This is what I ended up doing:

    jQuery(".em-warning p:contains('Location name is required.')").html("Please add a location for the event.");

    I got this response from Gravity Forms, maybe it will help. If we find a resolution I’ll post it here.

    “These warnings usually indicate your site is using an old version of a third-party code snippet such as:http://gravitywiz.com/better-pre-submission-confirmation/

    If you aren’t using that code snippet you’ll want to run through a theme/plugin conflict test:http://www.gravityhelp.com/documentation/gravity-forms/knowledge-base/troubleshooting/testing-for-a-themeplugin-conflict/&#8221;

Viewing 15 replies - 1 through 15 (of 15 total)