Gitter got replaced by Slack. Please use following invite link https://slack.shopware.com to rejoin the awesome Shopware community! https://www.shopware.com/en/news/an-introduction-to-the-shopware-community-slack/
With version 6.3.0 IndexerMessageSender has been removed. Unfortunately, there is nothing in the 6.2.x source code or in the upgrade notes that explains what this has been replaced by. Can anyone give me a hint?
Previously:
public function activate(ActivateContext $activateContext): void
{
$indexerMessageSender = $this->container->get(IndexerMessageSender::class);
$indexerMessageSender->partial(new \DateTimeImmutable(), [InheritanceIndexer::getName()]);
}
Okay, so I basically am experiencing the same issues that are described here:
https://forum.shopware.com/discussion/68281/product-extension-manytomany
Does anyone have a solution for this?
@istgin
Hi
I want to configure scheduled task in shopware
I download plugin from here: https://github.com/shopware/swag-docs-scheduled-task-plugin
I change
public static function getDefaultInterval(): int
{
return 1;
}
i run from docker SSH: bin/console scheduled-task:run
i run from docker SSH: bin/console messenger:consume -vv
I cant see any messages there
why?
Hey,
My custom twig files inside my custom theme don't load. Anyone knows why?
path:
{themename}/src/Resources/views/storefront/layout/header/logo.html.twig
template:
{% sw_extends '@Storefront/storefront/layout/header/logo.html.twig' %}
{% block layout_header_logo_image %}
<h3>test</h3>
{% endblock %}
Theme config:
{
"name": "xxxx",
"author": "xxxx",
"views": [
"@Storefront",
"@Plugins",
"@xxxx"
],
"style": [
"app/storefront/src/scss/overrides.scss",
"@Storefront",
"app/storefront/src/scss/base.scss"
],
"script": [
"@Storefront",
"app/storefront/dist/storefront/js/teethx.js"
],
"asset": [
"app/storefront/src/assets"
]
}
I tried the following comands:
./psh.phar storefront:build
bin/console theme:compile
bin/console theme:change
Changing styles and adding js files does work. Only the twig files seem to have an issue.
PLease help me out :)
Hi, I tried to install Shopware 6.3.1.0 in debian and get the folloing error
Browser:
Type: TypeError
Message: openssl_pkey_get_details() expects parameter 1 to be resource, bool given
File: /var/customers/webs/customer/vendor/shopware/recovery/Common/src/Service/JwtCertificateService.php
Line: 30
Log File:
[Mon Sep 14 12:32:38.138939 2020] [php7:warn] [pid 30972] [client IP] PHP Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/customers/webs/customer:/tmp) in /var/customers/webs/customer/vendor/shopware/recovery/Install/src/Requirements.php on line 244, referer: https://domain/recovery/install/index.php
[Mon Sep 14 12:32:39.429400 2020] [php7:warn] [pid 30972] [client 84.62.197.236:42482] PHP Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/customers/webs/customer:/tmp) in /var/customers/webs/customer/vendor/shopware/recovery/Install/src/Requirements.php on line 244, referer: https://domain/recovery/install/index.php/requirements/?language=de
[Mon Sep 14 12:32:55.648274 2020] [php7:warn] [pid 27855] [client 84.62.197.236:42486] PHP Warning: openssl_pkey_export_to_file(): cannot get key from parameter 1 in /var/customers/webs/customer/vendor/shopware/recovery/Common/src/Service/JwtCertificateService.php on line 27, referer: https://messerundloeffel.de/recovery/install/index.php/database-configuration/
[Mon Sep 14 12:35:00.644248 2020] [php7:warn] [pid 27865] [client 84.62.197.236:42516] PHP Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/customers/webs/customer:/tmp) in /var/customers/webs/customer/vendor/shopware/recovery/Install/src/Requirements.php on line 244, referer: https://domain/recovery/install/index.php
[Mon Sep 14 12:35:02.010283 2020] [php7:warn] [pid 27865] [client 84.62.197.236:42516] PHP Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/customers/webs/customer:/tmp) in /var/customers/webs/customer/vendor/shopware/recovery/Install/src/Requirements.php on line 244, referer: https://domain/recovery/install/index.php/requirements/?language=de
Ist es richtig, dass man maximal 3 Root Kategorien haben kann bei Shopware 6? Also für die Hauptnavi, für die Footernavi und für die Servicenavi...Aber wo genau packt man nun irgendwelche Landingpages / Blogelemente oder sonst ein Customcontent rein. Eine Struktur wie:
Geht gar nicht, da wenn im Saleschannel Katalog / Footer / Service zugewiesen sind. Bedeutet, man kann maximal 3 Oberkategorien haben und irgendwo darunter soll man die CMS Seiten machen. Ich hab mal im Code geschaut, die NavigationRoute
in platform/src/Content/Category/SalesChannel/
hat die Methode validate
und diese prüft explizit auf:
private function validate(string $activeId, ?string $path, SalesChannelContext $context): void
{
$ids = array_filter([
$context->getSalesChannel()->getFooterCategoryId(),
$context->getSalesChannel()->getServiceCategoryId(),
$context->getSalesChannel()->getNavigationCategoryId(),
]);
foreach ($ids as $id) {
if ($this->isChildCategory($activeId, $path, $id)) {
return;
}
}
throw new CategoryNotFoundException($activeId);
}
Kann mir jemand sagen wie eine gute Kategorieordnerstruktur in Shopware 6 aussieht?
@Tschitt I am getting the same error when I try to import a javascript plugin within my theme in Shopware v6.3.3.0 Stable Version:
Uncaught SyntaxError: Cannot use import statement outside a module
So looks like my main.js under custom/plugins/sw6-theme/src/Resources/app/storefront/src/main.js:
// Import plugins
import RvagTheme from './plugin/theme/theme.plugin';
const PluginManager = window.PluginManager;
PluginManager.register('RvagTheme', RvagTheme);
And so my ./plugin/theme/theme.plugin.js:
import Plugin from 'src/plugin-system/plugin.class';
import deepmerge from 'deepmerge';
export default class RvagTheme extends Plugin {
static options = deepmerge(FilterBasePlugin.options, {
// option variables
});
init() {
// init code
}
}
After running a storefront:build still get the same error.
Starting Execution of 'storefront:build' ('/Applications/.../dev-ops/storefront/actions/build.sh')
(1/4) Starting
> bin/console bundle:dump
[OK] Dumped plugin configuration.
(2/4) Starting
> PROJECT_ROOT=/Applications/.../ npm --prefix vendor/shopware/platform/src/Storefront/Resources/app/storefront/ run production
> sw-next-storefront@1.0.0 production /Applications/.../vendor/shopware/platform/src/Storefront/Resources/app/storefront
> NODE_ENV=production webpack --config webpack.config.js
# Webpack Plugin Injector: Plugin "Storefront" injected as a new entry point
# Webpack Plugin Injector: Plugin "RvagTheme" injected as a new entry point
# Webpack Plugin Injector: Plugin "RvagGeneral" injected as a new entry point
# Webpack Plugin Injector: Plugin "Ankauf" injected as a new entry point
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
ℹ Compiling Shopware 6 Storefront
✔ Shopware 6 Storefront: Compiled successfully in 3.06s
320 modules
It looks like the plugin is being compiled and injected by Webpack (RvagTheme) but still on the frontend is occurring the same error:
Uncaught SyntaxError: Cannot use import statement outside a module
Has anybody already encountered and solved this error?