billowy-xylophone-80304
10/28/2020, 7:50 PMicy-hydrogen-3905
10/29/2020, 8:59 AMbillowy-xylophone-80304
10/29/2020, 12:21 PMarst
.billowy-xylophone-80304
10/29/2020, 12:30 PMcareful-country-34175
10/29/2020, 1:31 PMacoustic-painter-45206
10/29/2020, 4:33 PMSearch failed with the following reason: no such index [index: de_page]. Query: {"query":{"bool":{"must":[{"match_all":{}},{"match":{"type":"product_abstract"}},{"match":{"store":"DE"}},{"match":{"locale":"de_DE"}},{"match":{"is-active":true}},{"bool":{"should":[{"range":{"active-from":{"lte":"now"}}},{"bool":{"must_not":[{"exists":{"field":"active-from"}}]}}]}},{"bool":{"should":[{"range":{"active-to":{"gte":"now"}}},{"bool":{"must_not":[{"exists":{"field":"active-to"}}]}}]}}],"filter":[{"nested":{"query":{"term":{"integer-facet.facet-name":{"value":"price-DEFAULT-EUR-GROSS_MODE","boost":1}}},"path":"integer-facet"}},{"term":{"category.all-parents":...
It looks like some process is missing in my setup, what kind of a process it is?rough-scientist-68683
10/30/2020, 9:26 AMacoustic-painter-45206
11/01/2020, 5:04 PMpropel migration:down
command?acoustic-painter-45206
11/02/2020, 2:37 PMnpm run yves:watch
, for some reason, all slots are stopping to render (which is generally makes page to become pretty much blank with only a few components on it). Restarting the docker container fixes the issue, still. How can we solve that, since it looks like restarting containers takes a lot of their time?billowy-xylophone-80304
11/02/2020, 2:41 PMcareful-country-34175
11/02/2020, 3:12 PMShoppingListPageControllerProvider
is getting called correctly (it’s an old Spryker-Shop and it is getting called in the YvesBootstrap) and is added to the App-Dependencies.
So it is getting registered in YvesControllerProvider
as: controller.service.shopping-list-page.shopping-list-overview.index
When calling it, is getting resolved in CallbackResolver
as controller.service.shopping-list-page.shopping-list-overview.index
. So that’s the same and you can see the registered service in the attached Screenshot (dd($this->app) in CallbackResolver::convertCallback()).
The problem is, that the callback of that service returns error/404
- and i have no clue, why. Is there any possibility to debug the callback of that service? I would expect that the return should be ShoppingListOverviewController
.ancient-apartment-59274
11/02/2020, 4:34 PMacoustic-painter-45206
11/02/2020, 5:44 PMElastica\Exception\ResponseException - Exception: analyzer [fulltext_search_analyzer] not found for field [full-text]
in /data/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (182)
Command: vendor/bin/console search:setup:sources
Trace:
#0 /data/vendor/ruflin/elastica/lib/Elastica/Request.php(194): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)
#1 /data/vendor/ruflin/elastica/lib/Elastica/Client.php(689): Elastica\Request->send()
#2 /data/vendor/ruflin/elastica/lib/Elastica/Client.php(721): Elastica\Client->request('de_page/_mappin...', 'PUT', Array, Array)
The command runs smooth on one environment, and fails on another one, yet codebase is the same.sparse-fall-78248
11/04/2020, 7:31 AMPackage fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package sebastian/finder-facade is abandoned, you should avoid using it. No replacement was suggested.
Package spryker/silex is abandoned, you should avoid using it. No replacement was suggested.
Package spryker/zend is abandoned, you should avoid using it. No replacement was suggested.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package flow/jsonpath is abandoned, you should avoid using it. Use softcreatr/jsonpath instead.
Package zendframework/zend-config is abandoned, you should avoid using it. Use laminas/laminas-config instead.
Package zendframework/zend-filter is abandoned, you should avoid using it. Use laminas/laminas-filter instead.
Package zendframework/zend-servicemanager is abandoned, you should avoid using it. Use laminas/laminas-servicemanager instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Which of them can I remove or switch to the suggested dependency instead? Thanks for your help!kind-tomato-4671
11/05/2020, 3:11 PMwooden-dress-65386
11/06/2020, 1:14 PMcomposer require spryker/web-profiler --dev
and:
To be able to use Web Profiler, add `\Spryker\Zed\WebProfiler\Communication\Plugin\Application\WebProfilerApplicationPlugin`of the`spryker-shop/web-profiler-widget`module toSo, the package is being installed with.\Pyz\Zed\Application\ApplicationDependencyProvider::getApplicationPlugins()
--dev
, but it should be added normally to the ApplicationPlugins... Now my question: Does this mean we always should deploy Spryker with composer install --dev
also on production systems? Because else the getApplicationPlugins() will contain a fatal error (class not found). Sounds a bit strange to me. How would I solve this?little-secretary-81579
11/06/2020, 3:24 PMmysterious-king-59256
11/09/2020, 10:49 AMmodern-van-15222
11/12/2020, 11:15 AMworried-chef-16639
11/12/2020, 1:34 PMvendor/bin/console event:trigger -r product_category_filter
Event queue is populated with EventTransfers having id_product_category_filter
as id (nothing more)
Then when I consume the event queue the message goes to ProductCategoryFilterPublishStorageListener
Here as you see it tries to collect categoryIds from the EventTransfers but they are not set by the event:trigger command.
https://github.com/spryker/product-category-filter-storage/blob/master/src/Spryker/Zed/ProductCategoryFilterStorage/Communication/Plugin/Event/Listener/ProductCategoryFilterPublishStorageListener.php#L36
I had to override the ProductCategoryFilterPublishStorageListener::handleBulk
method for it to work:
public function handleBulk(array $eventTransfers, $eventName)
{
$this->preventTransaction();
$categoryIds = $this->getFactory()->getEventBehaviorFacade()->getEventTransferForeignKeys($eventTransfers, SpyProductCategoryFilterTableMap::COL_FK_CATEGORY);
if (empty($categoryIds)) {
$eventTransferIds = $this->getFactory()->getEventBehaviorFacade()->getEventTransferIds($eventTransfers);
$categoryIds = $this
->getQueryContainer()
->queryProductCategoryByCategoryFilterIds($eventTransferIds)
->select([SpyProductCategoryFilterTableMap::COL_FK_CATEGORY])
->find()
->getData();
}
$this->getFacade()->publish($categoryIds);
}
Am I missing something? It seems to be some problem within the event:trigger
🧐careful-country-34175
11/12/2020, 3:04 PMacoustic-musician-21045
11/13/2020, 9:34 AMcrooked-house-89121
11/13/2020, 9:58 AMglamorous-quill-49387
11/16/2020, 9:17 AMacoustic-painter-45206
11/16/2020, 11:47 AM<table name="oneal_dealer_store_storage" phpName="DealerStoreStorage">
<column name="id" type="integer" autoIncrement="true" primaryKey="true" />
<column name="dealer_store_id" type="INTEGER" required="true"/>
<behavior name="synchronization">
<parameter name="resource" value="dealer_store"></parameter>
<parameter name="key_suffix_column" value="dealer_store_id"></parameter>
<parameter name="queue_group" value="sync.storage.dealer_stores"></parameter>
</behavior>
<behavior name="timestampable"/>
</table>
Code:
$object = new DealerStoreStorage();
$object->setDealerStoreId($store->getId());
$object->setData($store);
$object->save();
So calling it fails like this:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for ▶
\n
Executed query: \n
INSERT INTO oneal_dealer_store_storage (id, dealer_store_id, data, key, created_at, updated_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5)
It looks like I have an issue with column named 'key', since it's reserved in MySQL. So now I'm confused a little, what should I do about it? Another weird thing is that spy_product_abstract_group_storage
table, to say, has column named key as well, but I still see some records in thre.quick-megabyte-3337
11/16/2020, 12:14 PMTotalsTransfer
.
TotalsTransfer
contains several price properties but I'm interesting in two of them. It's grandTotal and priceToPay. As I understand when we need to reduce or increase some price and show it on some summary page we always working with priceToPay. But I was surprised when found out that we don't save priceToPay property into database by default.
So my questions:
1. What a difference between grandTotal and priceToPay?
2. Why we don't save priceToPay?
3. Should I provide additional recalculation of existing order prices if I need to show for customer priceToPay at customer order history page ?billions-knife-68708
11/16/2020, 2:14 PMancient-apartment-59274
11/17/2020, 8:44 AMechoing-notebook-55206
11/17/2020, 3:17 PMglamorous-finland-91316
11/17/2020, 9:02 PM/**
* @return array
*/
protected function getRules(): array
{
return [
'meta_info.errcode' => [
['EqualTo', 'options' => ['value' => AgErpConstants::AG_ERP_NO_ERROR]],
],
'meta_info.aes' => [
['InList', 'options' => ['values' => [AgErpConstants::AG_ERP_AES_STATUS_NEW, AgErpConstants::AG_ERP_AES_STATUS_UPDATE]]],
],
'konto' => 'NotBlank',
'address' => ['Type', 'options' => ['type' => 'array']],
];
}
the TypeValidator for "address" complains (throws an exception) that no required options are provided. I am using 'options' => ['type' => 'array']
What I want to do is to check if address
is of type array
Would appreciate your help.