Skip to content

why do I get these numbers rendered in the front end? when I use ajax to do a get to an api

my pokemon-component.js define([ “jquery” ], function ($) { “use strict”; return { getPokemonResults: function () { /** * Return result from pokeapi * @return {Deferred} */ return $.ajax({ url: “https://pokeapi.co/api/v2/pokemon/”, type: “GET”, global: true, contentType: “application/json”, Data:{ ‘pokeData’:[] } });… Read More »why do I get these numbers rendered in the front end? when I use ajax to do a get to an api

Magento 2.1 Invalid Block Type Error

I got this error while trying to access an admin page 2 exception(s): Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid block type: WDWarehousingCreditNoteBlockAdminhtmlWarehousingcreditnoteEditForm Exception #1 (ReflectionException): Class WDWarehousingCreditNoteBlockAdminhtmlWarehousingcreditnoteEditForm does not exist Exception #0 (MagentoFrameworkExceptionLocalizedException): Invalid block type: WDWarehousingCreditNoteBlockAdminhtmlWarehousingcreditnoteEditForm #0 /var/www/wd-magento/vendor/magento/framework/View/Layout/Generator/Block.php(237): MagentoFrameworkViewLayoutGeneratorBlock->getBlockInstance(‘WD\WarehousingC…’, Array) #1… Read More »Magento 2.1 Invalid Block Type Error

“Warning: file_exists(): open_basedir restriction in effect

When I try enable pagespeed everytime I get: {“0″:”Warning: file_exists(): open_basedir restriction in effect. File(//assets.pinterest.com/images/pidgets/pin_it_button.png) is not within the allowed path(s): (/home/user/:/tmp:/var/tmp:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php74/lib/php/) in /home/user/domains/myweb.com/public_html/vendor/swissup/module-image/Helper/Dimensions.php on line 137″,”1”:”#1 file_exists() called at [vendor/swissup/module-image/Helper/Dimensions.php:137]n#2 Swissup\Image\Helper\Dimensions->getImageDimensions() called at [vendor/swissup/module-image/Helper/Dimensions.php:109]n#3 Swissup\Image\Helper\Dimensions->getDimensions() called at [vendor/swissup/module-pagespeed/Model/Optimiser/Image/SpecifyDimension.php:49]n#4 Swissup\Pagespeed\Model\Optimiser\Image\SpecifyDimension->getDimensions()… Read More »“Warning: file_exists(): open_basedir restriction in effect