Forum Replies Created

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

    (@newtlabs)

    Hi, many thanks however after updating the plugin now the video banner isn’t working – is there anything you changed that may have impacted this?

    Thread Starter Fixmysite

    (@newtlabs)

    HI, if there is nothing wrong with the code please can you contest it via Patchstack (https://patchstack.com/database/wordpress/plugin/hero-banner-ultimate/vulnerability/wordpress-hero-banner-ultimate-plugin-1-4-2-local-file-inclusion-vulnerability)? In the meantime we are getting security alerts about it which shows in our client reports so we’ll need to get it addressed or switch to another plugin. Obviously it would be in everyones best interest to get this resolved, let me know if you need help with testing or anything to help get this pushed through, many thanks in advance.

    Thread Starter Fixmysite

    (@newtlabs)

    Hi, do you have plans to maintain this plugin or should we switch to another one?

    We’re also seeing the following fatal error:

    Fatal error: Uncaught Error: Call to undefined function rcp_is_rcp_admin_page() in /wp-content/plugins/restrict-content/restrictcontent.php:1000 Stack trace: #0 /wp-includes/class-wp-hook.php(324): {closure}() #1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(517): WP_Hook->do_action() #3 /wp-admin/admin-header.php(303): do_action() #4 /wp-admin/users.php(604): require_once(‘…’) #5 {main} thrown in /wp-content/plugins/restrict-content/restrictcontent.php on line 1000

    This is because of your sale banner you’ve tried to implement to do with this:

    // Stop if isn’t a RCP page.
    if ( ! rcp_is_rcp_admin_page() ) {
    return;
    }

    To temporarily fix this before an update is released I have commented out the entire “Stellar Sale Banner” code.

    Thread Starter Fixmysite

    (@newtlabs)

    I have contacted Yoast to see if there’s anything they can do. In the meantime please can you confirm why the previous version of your plugin works fine but this version does not?

    Thread Starter Fixmysite

    (@newtlabs)

    Hi,

    It seems to be a conflict between your plugin and Yoast SEO Premium:

    I get the following error when activating the “WooCommerce emerchantpay Payment Gateway Client” plugin:

    Fatal error: Uncaught Error: Call to undefined function Automattic\Jetpack\wp_rand() in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php:161 Stack trace: #0 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(99): Automattic\Jetpack\A8c_Mc_Stats->build_stats_url() #1 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(124): Automattic\Jetpack\A8c_Mc_Stats->get_stats_urls() #2 /wp-content/plugins/woocommerce/includes/class-woocommerce.php(414): Automattic\Jetpack\A8c_Mc_Stats->do_server_side_stats() #3 [internal function]: WooCommerce->log_errors() #4 {main} thrown in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php on line 161

    When “Yoast SEO Premium” is deactivated the error doesn’t show. However If I deactivate “Yoast SEO Premium”, activate “WooCommerce emerchantpay Payment Gateway Client”, then try to reactivate “Yoast SEO Premium” I get the following:

    Plugin could not be activated because it triggered a fatal error. Fatal error: Uncaught Error: Call to undefined method Composer\Autoload\ClassLoader::setClassMapAuthoritative() in /wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php:43 Stack trace: #0 /wp-content/plugins/wordpress-seo-premium/vendor/autoload.php(7): ComposerAutoloaderInit42a00a4ee82636814e937c49e791ee2d::getLoader() #1 /wp-content/plugins/wordpress-seo-premium/wp-seo-premium.php(67): require(‘…’) #2 /wp-admin/includes/plugin.php(2387): include_once(‘…’) #3 /wp-admin/plugins.php(194): plugin_sandbox_scrape() #4 {main} thrown in /wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php on line 43

    If there’s anything you can do including pointing me in the right direction please let me know, in the meantime I will contact Yoast.

    Thread Starter Fixmysite

    (@newtlabs)

    [video_lightbox_youtube video_id=”u4D-wjmeXwE&rel=0″ height=”auto” width=”100%” anchor=”/wp-content/uploads/2020/07/anchor_image.png”]

    Thread Starter Fixmysite

    (@newtlabs)

    Hi,

    nothing on the domain was changed, the only other thing that changed since the issue appeared was that we updated the WP version from 6.5.5 – 6.6.

    We are not using your plugin on this website so you can close this ticket but I thought it would be worth sharing in case there is a bug.. As mentioned the issue is resolved when deactivating the WP Code plugin and the site works fine when adding the same scripts to the head via the theme.

    Thread Starter Fixmysite

    (@newtlabs)

    these scripts added via the head of the theme template work fine and do not add anything to the url. It is only when adding them via your plugin there is an issue, they were working fine before on your plugin for many years but crashed the site after updating to the latest version of your plugin.

    I’m also seeing a fatal error when updating:

    Fatal error: Uncaught Error: Call to undefined function rcp_is_rcp_admin_page() in /wp-content/plugins/restrict-content/restrictcontent.php:1000 Stack trace: #0 /wp-includes/class-wp-hook.php(324): {closure}() #1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(517): WP_Hook->do_action() #3 /wp-admin/admin-header.php(303): do_action() #4 /wp-admin/admin.php(239): require_once(‘…’) #5 {main} thrown in /wp-content/plugins/restrict-content/restrictcontent.php on line 1000

    Thread Starter Fixmysite

    (@newtlabs)

    that seems to work, thanks.

    Thread Starter Fixmysite

    (@newtlabs)

    Hi, after changing invoice_number to number and invoice_date to date the pdfs stopped working and returned a fatal error:

    Fatal error: Too few arguments to function WPO\WC\PDF_Invoices\Documents\Order_Document::number(), 0 passed in /themes/ico/woocommerce/pdf/iCO/invoice.php on line 119 and exactly 1 expected.

    This is how the code is being used in the custom template:

                <?php if ( isset($this->settings['display_number']) ) { ?>
    
                <tr class="invoice-number">
    
                    <th><?php echo $this->get_number_title(); ?></th>
    
                    <td><?php $this->invoice_number(); ?></td>
    
                </tr>
    
                <?php } ?>
    
                <?php if ( isset($this->settings['display_date']) ) { ?>
    
                <tr class="invoice-date">
    
                    <th><?php echo $this->get_date_title(); ?></th>
    
                    <td><?php $this->invoice_date(); ?></td>
    
                </tr>
    
                <?php } ?>

    Please can you confirm what needs changing so we are not using deprecations?

    Thread Starter Fixmysite

    (@newtlabs)

    good point, cheers.

    Fixmysite

    (@newtlabs)

    @barryhughes-1 I did post a solution in the “v1.0.2 Critical Error” thread which should point you in the right direction.

    Fixmysite

    (@newtlabs)

    Highlighted Changes to fix this issue while waiting for update to be released.

    In maybe_add_hpos_incompatibility_admin_notice:

    1. Instance Creation:phpCopy code$instance = new self(); // Create an instance of the class
    2. Calling Non-static Method:phpCopy codeif( ! $instance->hpos_is_enabled() || self::user_has_dismissed_admin_notice( 'legacy_rest_api_is_incompatible_with_hpos' ) ) {

    In maybe_remove_hpos_incompatibility_admin_notice:

    1. Instance Creation:phpCopy code$instance = new self(); // Create an instance of the class
    2. Calling Non-static Method:phpCopy codeif ( WC_Admin_Notices::has_notice( 'legacy_rest_api_is_incompatible_with_hpos' ) && ! $instance->hpos_is_enabled() ) {

    These highlighted changes will resolve the error by correctly calling the non-static hpos_is_enabled method on an instance of the WC_Legacy_REST_API_Plugin class.

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