Error in Autoptimize Plugin – WordPress Development Stack Exchange

I am getting this error in our Autoptimize plugin.

Error: Element style not allowed as child of element noscript in this context. (Suppressing further errors from this subtree.)

Does anyone know how to fix it?

Thank you!

Sandy

9 – The “Array” plugin does not exist after saving the order type form in Commerce

After saving any order type, the following error shows:

DrupalComponentPluginExceptionPluginNotFoundException: The "Array" plugin does not exist. Valid plugin IDs for Drupalstate_machineWorkflowManager are: invoice_default, order_default, order_default_validation, order_fulfillment, order_fulfillment_validation, payment_default, payment_manual, shipment_default in DrupalCorePluginDefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Any ideas?

woocommerce offtopic – I would like to know if there is a plugin or how to do it, so that a site on that multisite network on a specific date

I have a network of sites (multisite), where I rent a site (plans), I would like to know if there is a plugin or how to do it, so that a site on that multisite network on a specific date.

For example:

1 customer rented a website for 2 months.

I want who on the last day of these 2 months, the site goes down with a message (expiration, canceled, contact us to activate).

Can someone help me?

Add SEO meta data with PHP to pages generated by plugin? Pages are not generated as posts in WP

I am using a real estate IDX plugin (Showacse IDX) that generates pages that are not posts in my wordpress database. The poorly developed plugin does not give some of these pages meta descriptions. How can I use PHP to inject meta data into these pages?

I’ve tried getting the current page url slug but it isn’t working…

// Add SEO meta to sidx pages 
function td_add_seo_meta_sidx() {
    global $wp;
    $current_slug = add_query_arg( array(), $wp->request );

    // Page slugs that need SEO meta
    $dashboard = "properties/dashboard";
    $listings = "properties/listings";
    $searches = "properties/searches";
    
    if ($current_slug == $dashboard ){
        echo '<meta name="description" content="Dashboard SEO meta description here" />';
    }
    if ($current_slug == $listings){
        echo '<meta name="description" content="Listings SEO meta description here" />';
    }
    if ($current_slug == $searches){
        echo '<meta name="description" content="Searches SEO meta description here" />';
    }
}
add_action( 'wp_head', 'td_add_seo_meta_sidx' );

Ads Pro Plugin – Multi-Purpose WordPress Advertising Manager

Admin submitted a new resource:

Ads Pro Plugin – Multi-Purpose WordPress Advertising Manager – Ads Pro Plugin – Multi-Purpose WordPress Advertising Manager

View attachment 14983

Core Features

  • 100% Responsive
  • Geographical targeting (countries, states / provinces, cities or zip-codes)…

Read more

.(tagsToTranslate)xenforo(t)xenforo themes(t)xenforo nulled(t)xenforo free(t)xenforo 2.2(t)nulled(t)nulled script(t)whmcs(t)whmcs nulled(t)scripts(t)nulled scripts(t)vbulletin(t)vbulletin nulled(t)vbulletin 5 nulled(t)xenforo resources(t)wordpress download(t)wordpress nulled forum

is there a tab snooze plugin for Safari?

I’ve been looking around on DuckDuckGo and App Store for a Safari plugin that will let me “snooze” (similar to this Chrome plugin). Coming from Chrome, I’ve really come to rely on the ability to just set a timer and kick tabs off to the background for a period of time and then return (this also frees up memory).

So far I’ve found nothing. I’m hoping I’m just bad at searching and am missing something.

paypal – Simplest possible piracy protection and payment system for a plugin?

Just to learn a little about piracy protection and payments, I was thinking of making a simple WordPress plugin. It would probably not earn a lot of money, but give me experience. So top security is not needed.

I was thinking of letting the user pay to PayPal giving his WP-domain. Paypal sends message to my server. My server encodes the domain and current date w/ private key and sends to the user that enters the data into the plugin. The plugin decrypts using public key and if the domain is ok and date has not passed by more than one year, runs full capacity.

A secure message about payment from PayPal requires business account. PayPal business account is $30/month which might be more than this experiment would earn. So maybe I would just read my mailbox by PHP to see if payments have been made to a personal account. (A plugin password could then be falsely obtained by spoofing an email from PayPal to me.)

OpenSSL seems to reside in servers so I would not have to supply a library to the user.

I have no experience in these things. The question is just. How do you construct the simplest possible anti-piracy/payment system which requires only “moderate” degree of security. (The software would be so simple (and running interpreter PHP) so security could probably be by-passed anyway.)

plugin – Argument 3 passed to MagentoCatalogModelLayerFilterList::__construct() must be an instance of MagentoCatalogModelConfigLayerCategoryConfig

I have plugin that works fine in magento 2.3 but in magento 2.4 i am getting below error :

Argument 3 passed to MagentoCatalogModelLayerFilterList::__construct() must be an instance of MagentoCatalogModelConfigLayerCategoryConfig, array given Shopby/Model/Layer/FilterList.php on line 77

code of filterlist.php as below :

use MagentoCatalogModelLayer;
use MagentoStoreModelScopeInterface;
use AmastyShopbyModelSourceVisibleInCategory;

class FilterList extends LayerFilterList
{
    const PLACE_SIDEBAR = 'sidebar';
    const PLACE_TOP     = 'top';
    const ALL_FILTERS_KEY     = 'amasty_shopby_all_filters';

    /**
     * @var AmastyShopbyHelperFilterSettingProxy
     */
    private $filterSetting;

    /**
     * @var MagentoFrameworkAppConfigScopeConfigInterface
     */
    private $scopeConfig;

    /**
     * @var MagentoFrameworkAppRequestHttp
     */
    private $request;

    /**
     * @var string
     */
    private $currentPlace;

    /**
     * @var bool
     */
    private $filtersLoaded  = false;

    /**
     * @var bool
     */
    private $filtersMatched = false;

    /**
     * @var bool
     */
    private $filtersApplied = false;

    /**
     * @var  MagentoFrameworkRegistry
     */
    private $registry;

    public function __construct(
        MagentoFrameworkObjectManagerInterface $objectManager,
        LayerFilterableAttributeListInterface $filterableAttributes,
        AmastyShopbyHelperFilterSettingProxy $filterSettingHelper,
        MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig,
        MagentoFrameworkAppRequestHttp $request,
        MagentoFrameworkRegistry $registry,
        array $filters = (),
        $place = self::PLACE_SIDEBAR
    ) {
        $this->currentPlace = $place;
        $this->filterSetting = $filterSettingHelper;
        $this->scopeConfig = $scopeConfig;
        $this->request = $request;
        $this->registry = $registry;
        parent::__construct($objectManager, $filterableAttributes, $filters);
    }

Error is on line parent::__construct($objectManager, $filterableAttributes, $filters);

Please help with what we need to change

plugin development – Using AND and bracket grouping in SQL not working

I am trying to combine two conditions in a query but it isn’t working. but running the conditions independently works.

LEt me explain. When I run this query:

SELECT DISTINCT
    SQL_CALC_FOUND_ROWS wp_users.*
FROM
    wp_users
    INNER JOIN wp_usermeta ON (wp_users.ID = wp_usermeta.user_id)
WHERE
    (wp_users.user_login LIKE '%little%'
        OR wp_users.user_email LIKE '%little%'
        OR wp_users.user_url LIKE '%little%'
        OR wp_users.display_name LIKE '%little%'
        OR (wp_usermeta.meta_key = 'first_name'
            AND wp_usermeta.meta_value LIKE '%little%')
        OR (wp_usermeta.meta_key = 'last_name'
            AND wp_usermeta.meta_value LIKE '%little%'))
ORDER BY
    user_registered DESC

I get this result

And when I run this

SELECT DISTINCT
    SQL_CALC_FOUND_ROWS wp_users.*
FROM
    wp_users
    INNER JOIN wp_usermeta ON (wp_users.ID = wp_usermeta.user_id)
WHERE ((wp_usermeta.meta_key = 'car_type'
        AND wp_usermeta.meta_value LIKE '%Camry%')
    OR(wp_usermeta.meta_key = 'car_type'
        AND wp_usermeta.meta_value LIKE '%Toyota%'))
ORDER BY
    user_registered DESC

I get this result

enter image description here

As you can see, the user with ID 46 is common in both query result.

I only want to show users that matches both query conditions. In this case, user ID 46 only.

When I then combined them like so, I get nothing:

SELECT DISTINCT
    SQL_CALC_FOUND_ROWS wp_users.*
FROM
    wp_users
    INNER JOIN wp_usermeta ON (wp_users.ID = wp_usermeta.user_id)
WHERE
    (wp_users.user_login LIKE '%little%'
        OR wp_users.user_email LIKE '%little%'
        OR wp_users.user_url LIKE '%little%'
        OR wp_users.display_name LIKE '%little%'
        OR (wp_usermeta.meta_key = 'first_name'
            AND wp_usermeta.meta_value LIKE '%little%')
        OR (wp_usermeta.meta_key = 'last_name'
            AND wp_usermeta.meta_value LIKE '%little%'))
            
AND((wp_usermeta.meta_key = 'car_type'
    AND wp_usermeta.meta_value LIKE '%Camry%')
    OR(wp_usermeta.meta_key = 'car_type'
        AND wp_usermeta.meta_value LIKE '%Toyota%'))
ORDER BY
    user_registered DESC

enter image description here

This has been driving me nuts for hours now. Please help me figure out what is wrong.

Nginx fastcgi_cache and kokos-analytics wordpress plugin

I have setup nginx to cache page requests as described in this tutorial.

There for looged in users the caching is disabled in this tutorial by an if request as:

# Don't use the cache for cookied logged in users or recent commenters
if ($http_cookie ~* "comment_author|wordpress_(a-f0-9)+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart") {
set $skip_cache 1;
}

Which works as expected.
But if I open my site in a new private window and access a previously cached site (by another person, not me) – I also receive a “x-cache HIT” in the server response – so I assume that kokos-analythics, the plugin I use to get the amount of visitors, can’t set a cookie or count the correct amount of users?
Does anybody have experience with this or can help me configuring the cache correctly?

Thanks

mathse