Skip to content

magento man

Why would product description not transfer when doing an export and reimport from Magento 2 into a different Magento 2?

I have exported products from Magento 2.4.2-p1 and imported the file into Magento 2.4.5-p1. I’ve noticed there are a lot of product descriptions missing when going through the products on Magento 2.4.5-p1. Why is that and how to fix? Does… Read More »Why would product description not transfer when doing an export and reimport from Magento 2 into a different Magento 2?

size parameter cannot be negative

I have problem with elasticsearch on catalog category pages. For some reasons on some pages i have this error: ElasticsearchCommonExceptionsBadRequest400Exception: {“error”:{“root_cause”:[{“type”:”illegal_argument_exception”,”reason”:”[size] parameter cannot be negative, found [-137]”}],”type”:”illegal_argument_exception”,”reason”:”[size] parameter cannot be negative, found [-137]”},”status”:400} in /vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:693 Version of Magento is 2.4.3-p3… Read More »size parameter cannot be negative

How I can reference product SKU as foreign key reference?

In my db_schema.xml I made a table with a pivot one: <?xml version=”1.0″?> <schema xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd”> <table name=”blog_posts” resource=”default” engine=”innodb” comment=”Blog articles”> <column xsi:type=”int” name=”blog_post_id” unsigned=”true” nullable=”false” identity=”true” comment=”primary_key”/> <column xsi:type=”varchar” name=”title” comment=”Blog Post’s title” /> <column xsi:type=”text” name=”post” comment=”Blog… Read More »How I can reference product SKU as foreign key reference?