magento2 – error “Uncaught Error: Script error for: popper.js”

I’m getting an error related to popper and I don’t remember what this file was, has anyone been through this? I would be grateful if you would help me. It looks like this file doesn’t exist, but I don’t know how to fix it…

 Failed to load resource: the server responded with a status of 404 (Not Found)        popper.js.
    Uncaught Error: Script error for: popper.js
    http://requirejs.org/docs/errors.html#scripterror
        at makeError (require.js:166)
        at HTMLScriptElement.onScriptError (require.js:1677)

Magento 2 Uncaught ReferenceError: jsSHA is not defined

Im getting this error message when I try to use JQuery 1.11.3: Uncaught ReferenceError: jsSHA is not defined.

I actually try to download the JQuery js file to call it locally but I gets the same message.

Uncaught exception ‘Exception’ with message ‘Illegal widget setting ID

I am getting the following error when going to customize and have no way to fix: Help please!

Fatal error: Uncaught exception ‘Exception’ with message ‘Illegal widget setting ID: nav_menu_item()’ in /home/u588197521/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:182 Stack trace: #0 /home/u588197521/public_html/wp-includes/class-wp-customize-nav-menus.php(660): WP_Customize_Nav_Menu_Item_Setting->__construct(Object(WP_Customize_Manager), ‘nav_menu_item()’, Array) #1 (internal function): WP_Customize_Nav_Menus->customize_register(Object(WP_Customize_Manager)) #2 /home/u588197521/public_html/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #3 /home/u588197521/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #4 /home/u588197521/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/u588197521/public_html/wp-includes/class-wp-customize-manager.php(734): do_action(‘customize_regis…’, Object(WP_Customize_Manager)) #6 (internal function): WP_Customize_Manager->wp_loaded(”) #7 /home/u588197521/public_html/wp-inclu in/home/u588197521/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 182
SEMrush

 

JavaScript error (Uncaught TypeError: $.initNamespaceStorage is not a function)

we are running a Magento multi site and on ONE site only, I get this error
Uncaught TypeError: $.initNamespaceStorage is not a function

All sites use the same theme (juste some differences between them…), any clues ?

Thank you for helping me

javascript – D3.js: Uncaught (in promise) TypeError: interpolator is not a function

Estoy intentando crear una escala de colores en un mapa pero me sale este error Uncaught (in promise) TypeError: interpolator is not a function
at scale (d3.js:14092)
at mapa.js:144
at i.eachLayer (leaflet.js:5)
at mapa.js:142

 function colorDomain() {
            let gridBoxIndex = gridBoxes().features.map(el => el.properties.id),
                gridBoxData = forecastData.t2(0).filter((_, i) => gridBoxIndex.indexOf(i) > -1);
            return d3.extent(gridBoxData);
        }
   

        var colorScheme = d3.schemeSpectral;
        var interpolate = d3.interpolateSpectral;
        function colorScale(t) {
            let schemesNeedingInversion = ("Spectral", "RdBu", "RdYlBu", "RdYlGn");
            return d3.scaleSequential(d3(`interpolate${ colorScheme }`)).domain(
                schemesNeedingInversion.indexOf(colorScheme) > -1 ? (colorDomain()(1), colorDomain()(0)) : colorDomain()
            );
       

Fatal error: Uncaught Error: Call to undefined method WP_Error::has_errors()

I tried to install a “NEVE” theme and got this error. Not knowing how to fix it. Please help how this can be fixed.
The goal I want to achieve is to bring back the theme I used before, namely the original WordPress theme 2017. Let me clarify that the problem happened the day before.
The places where are added dots “….” are from me.

Fatal error: Uncaught Error: Call to undefined method WP_Error::has_errors() in /home/…../addon_domains/…../wp-content/themes/neve/functions.php:81
Stack trace: #0 /home/…../addon_domains/…../wp-settings.php(425): include() #1
/home/…../addon_domains/…../wp-config.php(103): require_once(‘/home/concretec…’) #2 /home/…../addon_domains/…../wp-load.php(37): require_once(‘/home/concretec…’) #3 /home/…../addon_domains/…../wp-blog-header.php(13): require_once(‘/home/concretec…’) #4 /home/…../addon_domains/…../index.php(17): require(‘/home/concretec…’) #5 {main} thrown in /home/…../addon_domains/…../wp-content/themes/neve/functions.php on line 81

magento2 – Magento 2 Uncaught TypeError: Constr is not a constructor when returning functions on Knockout Js

i’m trying to get functions from a JS file in a Knockou file, like this:

quote.js

define(('jquery', 'uiComponent', 'ko','Vendor_GetQuote/js/ajax-request'), function ($, Component, ko, ajaxrequest) {
    'use strict';

And I try to access like this

ajaxrequest.functionA();
ajaxrequest.functionB();

With just one function it works, but with 2 or more it does not.

This is my ajax-request.js file

define(
    (
        'jquery'
    ),
    function(
        $
    ) {
        'use strict';

        var methods = {
            functionA: function() {
                console.log('This is from module A, functionA');
            },
    
            functionB: function() {
                console.log('This is from module A, function B');
            }
        };
    
        return methods;
     }
);

This is the error I’m getting:
Uncaught TypeError: Constr is not a constructor

Can someone orient me?
Thanks!

magento2.4.1 – Custom module Uncaught Error: [object Object]

I am created a custom module to override the core file,

My module :

appcodezeroWishlistBrandetcdi.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoWishlistCustomerDataWishlist">
        <plugin disabled="false" name="Zero_WishlistBrand_Plugin_Magento_Wishlist_CustomerData_Wishlist" sortOrder="10" type="ZeroWishlistBrandPluginMagentoWishlistCustomerDataWishlist"/>
    </type>
</config>

appcodeZeroWishlistBrandetcmodule.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Zero_WishlistBrand" setup_version="1.0.0">
    </module>
</config>

appcodeZeroWishlistBrandPluginMagentoWishlistCustomerDataWishlist.php

<?php
/**
 * Copyright ©  All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace ZeroWishlistBrandPluginMagentoWishlistCustomerData;


class Wishlist
{

    protected $wishlistHelper;

    public function __construct(
        MagentoWishlistHelperData $wishlistHelper
    )
    {
        $this->wishlistHelper = $wishlistHelper;
    }


    public function afterGetSectionData(
        MagentoWishlistCustomerDataWishlist $subject,
        MagentoWishlistModelItem $wishlistItem,
        $result
    ) {

        // Your code here
        return (
            'image' => $this->getImageData($this->itemResolver->getFinalProduct($wishlistItem)),
            'product_sku' => $product->getSku(),
            'product_id' => $product->getId(),
            'product_url' => $this->wishlistHelper->getProductUrl($wishlistItem),
            'product_name' => $product->getName(),
            // 'product_brand' => $product->getCustomAttribute('brand'),
            'product_brand' => $product->getResource()->getAttribute('brand')->getFrontend()->getValue($product),
            
            'product_price' => $this->block->getProductPriceHtml(
                $product,
                'wishlist_configured_price',
                MagentoFrameworkPricingRender::ZONE_ITEM_LIST,
                ('item' => $wishlistItem)
            ),
            'product_is_saleable_and_visible' => $product->isSaleable() && $product->isVisibleInSiteVisibility(),
            'product_has_required_options' => $product->getTypeInstance()->hasRequiredOptions($product),
            'add_to_cart_params' => $this->wishlistHelper->getAddToCartParams($wishlistItem),
            'delete_item_params' => $this->wishlistHelper->getRemoveParams($wishlistItem),
        );

        return $result;
    }
}

Error:

enter image description here

enter image description here

Se produce el siguiente error al crear un calendario"fullcalendar.min.js:8 Uncaught TypeError: Cannot set property ‘el’ of undefined"

este es el cod:

const calendarContainer = panelInicial.find(‘#calendar_container’);
calendarContainer.fullCalendar({
eventColor: ‘#378006’,
defaultView: ‘agenda’,
expandRows: true,
groupByResource: true,
minTime: ’09:00:00′,
maxTime: ’18:00:00′,
header: {
left: ”,
center: ‘title’,
right: ”
},

events: (                     

     {
        title: 'Event Title1',
        start: '2021-03-26T11:30:00',
        end: '2021-03-26T13:30:00'
      },
       
),
}); 

};

magento2.3 – PHP Fatal error: Uncaught Error: Undefined class constant

I tried to update some Amasty modules today and have been struggling a lot. and now I’m stuck.

When I run code

I get this error: PHP Fatal error: Uncaught Error: Undefined class constant 'AmastyBlogModelResourceModelCategories::STORE_TABLE_NAME' in /chroot/home/a96f0e0b/stores.etailhandel.no/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116 Stack trace: #0 /chroot/home/a96f0e0b/stores.etailhandel.no/html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Amasty\Blog\Set...', Array) #1 /chroot/home/a96f0e0b/stores.etailhandel.no/html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Amasty\Blog\Set...', Array) #2 /chroot/home/a96f0e0b/stores.etailhandel.no/html/vendor/magento/framework/Setup/Patch/PatchApplier.php(149): MagentoFrameworkObjectManagerObjectManager->create('\Amasty\Blog\Se...', Array) #3 /chroot/home/a96f0e0b/stores.etailhandel.no/html/setup/src/Magento/Setup/Model/Installer.php(1006): MagentoFrameworkSetupPatchPatchApplier->a in /chroot/home/a96f0e0b/stores.etailhandel.no/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 116 {"messages":{"error":({"code":500,"message":"Server internal error. See details in report api/1232703043988"})}}(a96f0e0b@etailhandel ~/stores.etailhandel.no/html)$ ^C
Anyone that knows what this can be? I rolled back to the old version and still gets this error.