shopwareBot on 5.7
SW-25899 - Remove superfluous #… Merge branch 'sw-25899/5.7/auto… (compare)
shopwareBot on 5.6
SW-25898 - Require the filter e… Merge branch 'sw-25898/5.6/auto… (compare)
Holy shit, this was an annoying bug to find:
So, the other day I asked if anyone ever had similar problems like me: having 12k+ articles and suddenly new keywords not being added to the search index.
After an annoyingly long debugging session, I now know why new words weren't added to the index anymore.
Turns out, the
s_search_keywords table is "updated" with loooooots of
INSERT IGNOREs (about 150k per index refresh in our case).
INSERT IGNORE increases the
Another fun fact:
unsigned int(11) - but the column
s_search_index.keywordId which references this column is a
Result: the index refreshing job is trying to add $newword to both tables, but silently fails because it can't reference the ID 4240317481 with only a
How can I add a compiler pass without having to touch Kernel.php
$container->addCompilerPass(new EventListenerCompilerPass(), PassConfig::TYPE_BEFORE_REMOVING); $container->addCompilerPass(new EventSubscriberCompilerPass(), PassConfig::TYPE_BEFORE_REMOVING); $container->addCompilerPass(new DoctrineEventSubscriberCompilerPass()); $container->addCompilerPass(new FormPass()); $container->addCompilerPass(new AddConstraintValidatorsPass()); $container->addCompilerPass(new StaticResourcesCompilerPass()); $container->addCompilerPass(new AddConsoleCommandPass()); $container->addCompilerPass(new MatcherCompilerPass()); $container->addCompilerPass(new LegacyApiResourcesPass()); $container->addCompilerPass(new ConfigureApiResourcesPass(), PassConfig::TYPE_OPTIMIZE, -500); $container->addCompilerPass(new RegisterFieldsCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 500); $container->addCompilerPass(new RegisterDynamicController()); $container->addCompilerPass(new RegisterTypeRepositories()); $container->addCompilerPass(new ControllerCompilerPass()); $container->addCompilerPass(new RegisterControllerArgumentLocatorsPass('argument_resolver.service', 'shopware.controller')); $container->addCompilerPass(new VersionCompilerPass());
[27-Jan-2020 09:43:54 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function getCoverId() on null in /home/memodev/kabeldirect.memodev.nu/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/ListProductService.php:242
I got a question about custom plugins. Lets say I want to install this plugin into my shopware appliaction:
So I've done the installation process described in this link, but any of the files in git weren't added or changed. Which means if I push the project to remote repo and other developer will checkout it, he won't get the plugin I've installed. Could you explain me what's the idea behind this or how can I install this plugin in the proper way to allow my other team members to get this plugin in their instance of the project?
i made some testplugin for SW5 inside the docker container from shopwarelabs: https://github.com/shopwareLabs/shopware-docker. Installed Shopware 5.6 branch from github inside.
plugin works. all is fine. the only thing is: if i install the plugin packaged as a zip (like in the documentation: the folder of the plugin wrapped inside the zip) the plugin will be uploaded and shopware says the uploade was a success, but the plugin does not show up in the plugin manager. i compared the zip with example plugins from the shopware tutorial pages and did not recognize any differences, but the example plugins do work...
does maybe anyone know some problems that can occure even if all seems fine?
heres the plugin as a zip: https://github.com/daMichl/swplugin-mista-test-plugin/releases/tag/a778e05