Git Product home page Git Product logo

shopware / shopware Goto Github PK

View Code? Open in Web Editor NEW
2.6K 110.0 960.0 255.12 MB

Shopware 6 is an open commerce platform based on Symfony Framework and Vue and supported by a worldwide community and more than 1.500 community extensions

Home Page: https://shopware.com

License: MIT License

PHP 59.84% JavaScript 24.77% HTML 0.02% Smarty 0.01% Vue 0.06% SCSS 1.94% Twig 10.48% CSS 0.26% Shell 0.08% TypeScript 2.46% Python 0.06% Nix 0.01% Groovy 0.01% Dockerfile 0.01%
shopware php ecommerce vuejs symfony shop shopping-cart online-shop online-store experience-manager

shopware's Introduction

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Crowdin License GitHub closed pull requests Slack

Shopware

Modern open source e-Commerce

Tweet

Shopware 6 is an open headless commerce platform powered by Symfony 7 and Vue.js 3 that is used by thousands of shops and supported by a huge, worldwide community of developers, agencies and merchants.

If you like Shopware 6, give us a ⭐️  on Github!

Table of contents

Project overview

To discover the features of Shopware and what sets us apart from other e-commerce systems, take the feature tour on the Shopware home page.

From a developer's perspective, here are some highlights that make Shopware easy and fun to work with:

Platform and Framework

Shopware itself is based mainly on Symfony and VueJS. It is a fully functional e-commerce platform, but it is also an e-commerce framework.

Shopware is:

Installation

Extending Shopware

There are already a lot of extensions available in the Shopware store.

After setting up Shopware locally for development, you can start with our extension guides in the documentation.

The preferred way of extending Shopware is through the App System. If the feature you want to implement needs direct access to the Shopware process and the database, you can also use the plugin system.
You can find an overview and differentiation in the documentation.

Production setup

The easiest way to run a Shopware shop is booking a commercial plan in the Shopware cloud, a fully managed setup, ready to use.

The recommended way for on-premise shops is installing Shopware through the flex template. To unlock the full potential Shopware has to offer, commercial plans are also available for on-premise.
These plans enrich your shop with unique functionality, giving you an additional advantage over your competition.

There is a list of hosting partners, who offer a pre-installed shop, making your start a lot faster.

We also provide a web-based installer, the documentation walks you through the necessary steps.

Code Contribution

If you have decided to contribute code to Shopware and become a member of the Shopware community, we appreciate your hard work and want to handle it with the most possible respect. To ensure the quality of our code and our products we have created a guideline we all should endorse to. It helps you and us to collaborate. Following these guidelines will help us to integrate your changes in our daily workflow.

Read more in our contribution guideline or in our short HowTo contribute code.

Contribution setup

There are multiple ways to get an installation running, the way with the fewest steps involved is using the contribute image from dockware, a community maintained docker setup by the Shopware agency dasistweb. More on this in the documentation.

The Shopware CLA

When submitting your code to Shopware you automatically need to sign our CLA (Contributor License Agreement). This CLA ensures that Shopware will stay an open and living product. In short, you give the explicit right to use your code in Shopware to shopware AG.

Authors & Contributors

Shopware is built with the help of our community.

You can find an overview of everyone who contributed to the platform repository in the official github overview. Additionally there are numerous people contributing to the ecosystem through activities not related to the codebase. Thank you all for being part of this!

License

Shopware 6 is completely free and released under the MIT License.

Bugs & Feedback

No software is perfect, Shopware is no exception. Should you spot a bug, please report it in our issue tracker.

If you want to suggest features or how certain parts of Shopware 6 work, we'd be happy to hear from you.

Reporting security issues

Please have a look at our security policy.

shopware's People

Contributors

aydinhassan avatar benjamin-ott avatar dneustadt avatar fschmtt avatar haberkamp avatar janbuecker avatar janpietrzyk avatar jenskueper avatar jleifeld avatar keulinho avatar king-of-babylon avatar leichteckig avatar marcelbrode avatar mitelg avatar mstegmeyer avatar nguyenytran avatar niklaslimberg avatar oliverskroblin avatar pantrtxp avatar phil23 avatar philipreinken avatar pweyck avatar sebastianfranze avatar seggewiss avatar shyim avatar ssltg avatar sydinh avatar taltholtmann avatar tobiasberge avatar vienthuong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shopware's Issues

update from developer preview to early access

Hello,

is it possible to update the developer preview to early access?

I'm switched to the commit/release "v6.0.0+ea1" for both repositories, but the backend still say:
current version: 9999999-dev

Best regards,
DevertNEt

Admin Backend: Storefront and Headless form breaks with specific input

Hi,

I found a bug in Admin Backend where the form input for payment methods breaks after an specific input.

Steps to reproduce:

  • Open Storefront or Headless configuration
  • Remove all payment methods from list
  • Hit save button
  • An Error message apears
  • Add at least one Payment Method
  • Hit save button

After Performing those steps you are not able to choose a standart payment method. Trying so results in an JS error
shopware.local-1559910171237.log

This also aplies to other form fields. (but not always?). I managed to break all fields right now. Some fields seemed not to be breakable at first, but broke after i broke the following fields.

Main-Navigation recursion

Hello Guys,

The Main-Navigation recursion not working properly, frontend should be fine, but the CategoryLoader not. It wont load the children of children (mobile works..).

Maybe also cool if {% set navigationMaxDepth = 3 %} in layout/navigation/categories.html.twig will be added in own block for override purposes.

King regards,
Daniel

Internal Server Error

Screenshot

Argument 2 passed to Shopware...\NavigationController::home() must be and instance of shopware...\SalesChannelContext null given, called in .../symfony/http-kernel/HttpKernel.php
as shown in the image.

npm build: permission denied mkdir

I tried to install shopware6 in Docker. When running the install script (./psh.phar install) I always get an authorization error with npm install:

Error: EACCES: permission denied, mkdir '/app/vendor/shopware/platform/src/Administration/Resources/administration/node_modules/node-sass/.node-gyp'

Broken URLs after manual installation

Hi.

I have installed developer version without docker. During installation I have entered application URL as "http://shopware.loc", how it was offered by installation helper.
And now I got all urls as "http://shopware.loc/http://shopware.loc/index.php/navigation/...".

I have tryed to edit or delete "APP_URL" parameter in .env and .env.dist, but it had no effect. Dropping cache in symfony console also didn't help.

What I did wrong? I can't get even into the admin panel.

Cant extend template

Hi,

i've created a plugin, which need to extend the web storefront via twig.

Most of the templates work but for example those don't:
{% sw_extends '@Storefront/component/product/card/box-standard.html.twig' %}
{% sw_extends '@Storefront/element/cms-element-image.html.twig' %}

I thought it's the dash in the name, but following works:
{% sw_extends '@Storefront/layout/header/search-suggest.html.twig' %}

And I thought it's the include by {% sw_include .. %}, but following works:
(inlucde in aside-item.twig)
{% sw_extends '@Storefront/page/checkout/_item/product-aside.html.twig' %}

I tried to debug the process but didn't found anything which helps me to extend the template correct.

More Information:
Views path: custom/plugins/pluginName/src/Resources/views

Not working template paths:

  • custom/plugins/pluginName/src/Resources/views/component/product/card/box-standard.html.twig
  • custom/plugins/pluginName/src/Resources/views/element/cms-element-image.html.twig

Cheers.

Failed at 22/33 the @shopware/[email protected] lerna script.

I'm running a fresh install, following the README, and am encountering the below issue.

I'm running Mac OS Mojave 10.14.4, with docker v18.09.2, docker-compose v1.23.2 and docker desktop v2.0.0.3.

Everything runs fine until this step, and then I can't get past it.

(23/33) Starting
> npm run --prefix vendor/shopware/platform/src/Administration/Resources lerna -- bootstrap

	> @shopware/[email protected] lerna /app/vendor/shopware/platform/src/Administration/Resources
	> lerna "bootstrap"

	lerna notice cli v3.14.1
	lerna info versioning independent
	lerna info Bootstrapping 6 packages
	lerna info Installing external dependencies
	lerna ERR! npm install exited 1 in 'shopware-e2e'
	lerna ERR! npm install stdout:

	> [email protected] postinstall /app/platform/src/Administration/Resources/e2e/node_modules/cypress
	> node index.js --exec install

	Cypress cannot write to the cache directory due to file permissions

	See discussion and possible solutions at
	https://github.com/cypress-io/cypress/issues/1281

	----------

	Failed to access /home/appuser/.cache/Cypress:

	EACCES: permission denied, mkdir '/home/appuser'

	----------

	Platform: linux (Debian - 9.9)
	Cypress Version: 3.3.1

	lerna ERR! npm install stderr:
	npm WARN [email protected] requires a peer of eslint-plugin-promise@>=4.0.0 but none is installed. You must install peer dependencies yourself.
	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

	npm ERR! code ELIFECYCLE
	npm ERR! errno 1
	npm ERR! [email protected] postinstall: `node index.js --exec install`
	npm ERR! Exit status 1
	npm ERR!
	npm ERR! Failed at the [email protected] postinstall script.
	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

	npm ERR! A complete log of this run can be found in:
	npm ERR!     /.npm/_logs/2019-06-27T22_43_26_960Z-debug.log

	lerna ERR! npm install exited 1 in 'shopware-e2e'
	lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
	npm ERR! code ELIFECYCLE
	npm ERR! errno 1
	npm ERR! @shopware/[email protected] lerna: `lerna "bootstrap"`
	npm ERR! Exit status 1
	npm ERR!
	npm ERR! Failed at the @shopware/[email protected] lerna script.
	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

	npm ERR! A complete log of this run can be found in:
	npm ERR!     /.npm/_logs/2019-06-27T22_43_27_098Z-debug.log

Execution aborted, a subcommand failed!

appuser@54af9b9c8fdd:/app$

I can see in the docs that Docker is not the preferred installation method for a Mac, but I was hoping to still use it and gauge the performance issues myself if poss.

Any help would be really appreciated 🙏 Thanks!

New user or editing existing user doesn't work

I can't add a new user nor can I edit an existing one. Everything else seems to work fine.
The loading circle just spins indefinitely. Sorry for the vague description I can't find any logs.
Add user

Invalid-login counter not working

It doesn't count how often a bad login was made, and therefore doesn't lock the account in of the administration environment.

(Lucky me for #6)

Typo in repo description

Diff:

- Shopware 6 is an open source eCommerce platform realised by the ideas and the spirit of it's community
+ Shopware 6 is an open source eCommerce platform realised by the ideas and the spirit of its community

Docker-Installation on Mac: Unknown MySQL server host 'mysql'

I get this when i try to do ./psh.phar install in the docker-container:

> php dev-ops/generate_ssl.php
        Private/Public key already exists. Skipping
(2/28) Starting
> composer install --no-interaction --optimize-autoloader --no-suggest --no-scripts
        Loading composer repositories with package information
        Installing dependencies (including require-dev) from lock file
        Nothing to install or update
        Generating optimized autoload files

(3/28) Starting
> mysql -u 'app' -p'app' -h 'mysql' --port='3306' -e "DROP DATABASE IF EXISTS \`shopware\`"
        ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (-2)

EDIT: The MySQL-Container didn't start because there were files already in the volume directory.

Register Controller as Plugin

The Problem

In order for plugins to create custom controllers, it needs to be possible to register custom routes.

(And one needs to be able to create custom controllers, if only to extend the administration/backend.)

Where do we need changes?

Within the Core/Kernel.php, there's a configureRoutes method which already loads the basic routes as provided by config/routes***. It would only make sense that within this method, there will also be some code that loads the plugin-specific routes.

The ObjectRouteLoader dynamically calls this loadRoutes method in the Kernel (as part of the MicroKernelTrait).

The Solutions

Two possible solutions, of which I dislike the first. The second one feels more Bundle-like, e.g. where you don't have to rely on magic filenames / directories that get loaded. Alternatively, it allows for dynamically loading routes (PHP), instead of having to hardcode them into the yaml/xml files. I've added a third point because it feels related.

  1. Dynamically load all route files/directories defined in the plugin, much like the kernel does, but then without Resources:
$routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir . '/{routes}/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir . '/{routes}' . self::CONFIG_EXTS, '/', 'glob');
  1. One could extend the Plugin class definition to include a protected function configureRoutes(RouteCollectionBuilder $routes) which can be overwritten by the Plugin itself (as an alternative to the build method). Then one could specifically import the files needed, or add them dynamically as needed.

  2. A new service which contains the logic described. On top of either of the above solutions, one could extend this service to do crazy stuff itself, like completely replacing routes.

I'm not sure what the recommended approach is to overriding / decorating such controller-services. This should be taken into account when testing the above.

Error during the setup (19/29)

during the bin/setup process on step (19/29)

it says

(19/29) Starting
> mysql -u 'dev_sw6' -p'xxx' -h 'localhost' --port='3306' -e "DROP DATABASE IF EXISTS \`dev_sw6_e2e\`"
        mysql: [Warning] Using a password on the command line interface can be insecure.
        ERROR 1044 (42000) at line 1: Access denied for user 'dev_sw6'@'localhost' to database 'dev_sw6_e2e'

Error on "Update profile information" through API

I have same error No route found for "PUT /sales-channel-api/v1/customer/profile" on PUT request to update customer profile
Error1:
ProfileError

and No route found for "POST /sales-channel-api/v1/customer/default-billing-address/c0f27908d47843f09b4bb31ba2baf0cd on POST request to set billing address as a default.
Error2:
default-billing

Foreign Key Constraint Error in Shipping Method Migration for Availability Rule ID column

I've installed shopware/platform using the shopware/development repository locally on my mac through Valet+

Steps to reproduce

  1. .psh.phar install

Expected Result

Install command completes successfully

Actual Result

(7/28) Starting
> bin/console database:migrate --all Shopware\\
	Get collection from directories
	migrate Migrations
	   0/199 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
	  19/199 [▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░]   9%
	  38/199 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░]  19%
	  57/199 [▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░]  28%
	  76/199 [▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░]  38%
	  95/199 [▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░]  47%
	 114/199 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░]  57%
	 133/199 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░]  66%14:25:55 ERROR     [app] Migration: "Shopware\Core\Migration\Migration1553593164ShippingAvailabilityRule" failed: "An exception occurred while executing 'ALTER TABLE `shipping_method`
	                           MODIFY COLUMN `availability_rule_id` BINARY(16) NOT NULL':

	SQLSTATE[HY000]: General error: 1832 Cannot change column 'availability_rule_id': used in a foreign key constraint 'fk.shipping_method.availability_rule_id'"
	 ---------- ----------------------
	  Action     Number of migrations
	 ---------- ----------------------
	  Migrated   150 from 199
	 ---------- ----------------------


	In MigrationCommand.php line 106:

	  Migration error: An exception occurred while executing 'ALTER TABLE `shippi
	  ng_method`
	                             MODIFY COLUMN `availability_rule_id` BINARY(16)
	  NOT NULL':

	  SQLSTATE[HY000]: General error: 1832 Cannot change column 'availability_rul
	  e_id': used in a foreign key constraint 'fk.shipping_method.availability_ru
	  le_id'


	database:migrate [-all|--all] [-l|--limit [LIMIT]] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<identifier> [<until>]]


Execution aborted, a subcommand failed!

Looking into the migration that failed. It seems that at the start of the migration, the foreign key constraint is added and then on the following line referenced, the column type is changed. I think this is guaranteed to fail if it's done in this order. Should the foreign key constraight line be moved to the end?

https://github.com/shopware/platform/blob/91afedb017c5ecd7b4279cd4ade85c6d6db0eee1/src/Core/Migration/Migration1553593164ShippingAvailabilityRule.php#L32

Not working with symfony serve webserver

When I use symfony tool as a webserver with serve I get an error after redirect to /recover/install in the console:

PHP Fatal error:  Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "/var/www/shopware/public/../.env" environment file. in /var/www/shopware/vendor/symfony/dotenv/Dotenv.php:484 

Then if i touch .env, i get another one that Doctrine PDO MySQL is wrongly configured.

The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection().

Please just close if symfony local webserver is just not supported.

npm clean-install: Unable to save binary

This issue concerns the installation step 22/28.

When npm clean-install is performed, the execution results in an error since the process doesn't have the required permissions for /app/platform/src/Administration/Resources/administration/node_modules/node-sass/vendor.

shopware-installation-npm-error

I attempted to create the directory manually, but running it again will still result in that error.

Any ideas?

Installation Database: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes"

During installation (Shopware 6 Early Access), some tables are not created in InnoDB, but in MyISAM. As a result, the following error may occur (if no default storage engine has been set):

Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes "

One can eliminate the error by entering the following value in the * .ini:

default-storage-engine = InnoDB

However, it would be nice if the installation of the tables is implemented properly.

Argument 3 passed to PasswordField::__construct() must be of the type integer, string given

While generating demodata with APP_ENV=prod bin/console framework:demodata I got following error:

Argument 3 passed to Shopware\Core\Framework\DataAbstractionLayer\Field\PasswordField::__construct()
  must be of the type integer, string given, called in /var/www/vhosts/MYPROJECT/vendor/shopware/platform/src/Core/Checkout/Customer/CustomerDefinition.php on line 78

This leads to:

https://github.com/shopware/platform/blob/e36a665bc580a675d27b2942a998bd82ad47e659/src/Core/Framework/DataAbstractionLayer/Field/PasswordField.php#L24

where constant PASSWORD_ARGON2I is used to define hash algorithm.

On my used environment, php7.2.x was not compiled with argon2 support as needed

Workaround:
Replace with PASSWORD_DEFAULT

I do not recommend this workaround for production environment!

rm -Rf var/cache fails during initial install

Hi,

I followed the instruction within the readme and ended up with the following error on step 21:

(21/28) Starting
> rm -rf var/cache
	rm: cannot remove 'var/cache/dev_59202da9aa4f43de6b3a45a9585ca53b44378c3f/pools': Directory not empty

Execution aborted, a subcommand failed!

any ideas?

Administration Variants: onOptionEdit is not defined

If you have variants generated for a product and you want to edit a variant after that, following error is raised in the console:

ReferenceError: onOptionEdit is not defined
at click (eval at nr (app.js?1558934040:21), :3:3303)
at He (app.js?1558934040:21)
at HTMLAnchorElement.n (app.js?1558934040:21)
at HTMLAnchorElement.o._wrapper (app.js?1558934040:21)
Ze @ app.js?1558934040:21
Ve @ app.js?1558934040:21
Ue @ app.js?1558934040:21
He @ app.js?1558934040:21
n @ app.js?1558934040:21
o._wrapper @ app.js?1558934040:21

api 412 errors in firefox

Hello,

the administration area don't run correctly in firefox. No orders, products,. ...
Symfony Profiler shows many 412 http errors.

Introduce phpstan in build pipeline

Please consider to add https://github.com/phpstan/phpstan into your build pipeline.
Even on Level 0 phpstan was able to report 233 Errors:

$ ./vendor/bin/phpstan analyse -c phpstan.neon -l0 Checkout Content Framework Profiling System
[...]
 ------ -------------------------------------------------------------------------------------------------------------- 
  Line   Framework/Test/Serializer/StructNormalizerTest.php                                                            
 ------ -------------------------------------------------------------------------------------------------------------- 
  31     Class stdClass referenced with incorrect case: StdClass.                                                      
  87     Class stdClass referenced with incorrect case: StdClass.                                                      
  107    Class stdClass referenced with incorrect case: StdClass.                                                      
  279    Constructor of class Shopware\Core\Framework\Test\Serializer\ConstructorStruct has an unused parameter $age.  
 ------ -------------------------------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   Profiling/Cart/CircularCartCalculationTracer.php                                                                                                                           
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  22     Shopware\Core\Profiling\Cart\CircularCartCalculationTracer::__construct() does not call parent constructor from Shopware\Core\Checkout\Cart\Cart\CircularCartCalculation.  
 ------ --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------------------ 
  Line   System/Listing/Struct/ListingSortingDetailStruct.php                                                              
 ------ ------------------------------------------------------------------------------------------------------------------ 
  19     Access to an undefined property Shopware\Core\System\Listing\Struct\ListingSortingDetailStruct::$productStreams.  
 ------ ------------------------------------------------------------------------------------------------------------------ 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   System/Mail/Aggregate/MailAttachment/Collection/MailAttachmentDetailCollection.php                                                                   
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- 
  35     Return typehint of method Shopware\Core\System\Mail\Aggregate\MailAttachment\Collection\MailAttachmentDetailCollection::getShops() has invalid type  
         Shopware\Core\System\Mail\Collection\ShopBasicCollection.                                                                                            
  37     Instantiated class Shopware\Core\System\Mail\Collection\ShopBasicCollection not found.                                                               
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------- 
                                                                                                                        
 [ERROR] Found 233 errors                                                                                                      

Would you accept a PR with a matching phpstan configuration?

Empty continuation line warning

Building app_server
	[WARNING]: Empty continuation line found in:
	    RUN sed -ri -e 's!VirtualHost \*:80!VirtualHost \*:8000!g' /opt/docker/etc/httpd/vhost.conf     && echo "Listen 8000" | tee -a /etc/apache2/ports.conf     && curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -     && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'     && mkdir -p /usr/share/man/man1     && curl -sL https://deb.nodesource.com/setup_11.x | bash     && apt-install mysql-client nodejs google-chrome-stable libicu-dev graphviz vim     && npm i npm -g     && ln -s /app/psh.phar /bin/psh     && pecl install pcov     && docker-php-ext-enable pcov
	[WARNING]: Empty continuation lines will become errors in a future release.

Promise.all(...).then(...).catch(...).finally is not a function

I got the following error while trying to install:

> node vendor/shopware/platform/src/Storefront/Resources/copy-to-vendor.js
        /home/vagrant/shopware-dev/vendor/shopware/platform/src/Storefront/Resources/copy-to-vendor.js:56
                .finally(() => {
                        ^
        
        TypeError: Promise.all(...).then(...).catch(...).finally is not a function
            at onCopyProcess (/home/vagrant/shopware-dev/vendor/shopware/platform/src/Storefront/Resources/copy-to-vendor.js:56:17)
            at Object.<anonymous> (/home/vagrant/shopware-dev/vendor/shopware/platform/src/Storefront/Resources/copy-to-vendor.js:64:1)
            at Module._compile (module.js:652:30)
            at Object.Module._extensions..js (module.js:663:10)
            at Module.load (module.js:565:32)
            at tryModuleLoad (module.js:505:12)
            at Function.Module._load (module.js:497:3)
            at Function.Module.runMain (module.js:693:10)
            at startup (bootstrap_node.js:188:16)
            at bootstrap_node.js:609:3
        
Execution aborted, a subcommand failed!

Using npm 6.1.0.1 and node 8.10.0.

What's going wrong?

ERROR in static/js/commons.js from UglifyJs

What did I do?

./psh.phar administration:build

What did I want to achieve?

Rebuilding all js files for the administration, to see any changes (like the color for menu items).

What did I expect?

An error-free experience.

What happened?

Some weird UglifyJs error pops up, regardless of me extending anything. Unexpected token: punc ())

The files have not changed; the color of the menu item stayed the same.

Full error log

(2/3) Starting
> npm run --prefix vendor/shopware/platform/src/Administration/Resources/administration/ build -- http://localhost:8000
        
        > [email protected] build /app/vendor/shopware/platform/src/Administration/Resources/administration
        > node build/build.js "http://localhost:8000"
        
        # Loading Shopware administration plugin definitions
        Trying to load plugin definitions from "/app/var/config_administration_plugins.json"
        Found 1 plugin definition(s): WebcuMarketplaceConnector
        
        # Adding Shopware administration plugins to Webpack
        Plugin "WebcuMarketplaceConnector" was injected into the Webpack config
        
        Hash: 6ca2890ae4755bc0695f
        Version: webpack 3.10.0
        Time: 18422ms
                                             Asset     Size  Chunks                    Chunk Names
                           static/js/vendor.js.map   3.8 MB       0  [emitted]         vendor
                static/img/sw-login-background.png   513 kB          [emitted]  [big]  
                                  static/js/app.js   459 kB       1  [emitted]  [big]  app
                              static/js/commons.js  79.3 kB       2  [emitted]         commons
            static/js/WebcuMarketplaceConnector.js  2.17 kB       3  [emitted]         WebcuMarketplaceConnector
                             static/js/manifest.js  1.45 kB       4  [emitted]         manifest
                                static/css/app.css   295 kB       1  [emitted]  [big]  app
                               static/js/vendor.js   533 kB       0  [emitted]  [big]  vendor
                              static/js/app.js.map  1.76 MB       1  [emitted]         app
                          static/js/commons.js.map   113 kB       2  [emitted]         commons
        static/js/WebcuMarketplaceConnector.js.map  8.83 kB       3  [emitted]         WebcuMarketplaceConnector
                         static/js/manifest.js.map  14.1 kB       4  [emitted]         manifest
                 static/css/prism-github-theme.css  2.23 kB          [emitted]         
                  static/css/storybook-preview.css  1.05 kB          [emitted]         
                           static/img/sw-icons.svg   356 kB          [emitted]  [big]  
        
        ERROR in static/js/commons.js from UglifyJs
        Unexpected token: punc ()) [./node_modules/eslint-loader?{}!./node_modules/eslint-loader??ref--0!./src/core/common.js:28,0][static/js/commons.js:372,30]
        
          Build complete.
        
          Tip: built files are meant to be served over an HTTP server.
          Opening index.html over file:// won't work.
        

Version Info

Using the shopware/platform commit 051852a as of Monday 30.07.2018 around 12.00.

Shopware 6 docker installation failed @26/37

Hello,

we tried to install shopware 6 on a vm(CentOS 7) via docker but we keep getting the same error over and over again.
after connecting to docker with ssh we tried "./psh.phar install" but it always crashes @(26/37) and we have no clue why.
We tried different workarounds etc. but we still didn't manage to make it work properly.
Sometimes the installation would run through but we don't know why and we were not able to reproduce it.

There were many different errors for example something like :
"
events.js:170
throw er; // Unhandled 'error' event
^

    Error: ENOENT: no such file or directory, open '/app/platform/src/Administration/Resources/public/static/js/storefront.js'
    Emitted 'error' event at:
        at /app/platform/src/Administration/Resources/common/webpack-plugin-injector/node_modules/graceful-fs/graceful-fs.js:207:14
        at /app/platform/src/Administration/Resources/common/webpack-plugin-injector/node_modules/graceful-fs/graceful-fs.js:258:16
        at FSReqCallback.args [as oncomplete] (fs.js:145:20)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] build: `node build/build.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /.npm/_logs/2019-07-26T08_59_20_919Z-debug.log

Execution aborted, a subcommand failenm! "

Has anyone experienced a similar if not the same issue ?
Thanks in advance!

Local installation: Unknown MySQL server host

Then I run ./psh.phar install as suggested in the guide for local installation, an error occurs:

ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (2)

This is due to the -h 'mysql' option for the mysql command at step 3/28.

I fixed the error by registering 127.0.0.1 mysql in /etc/hosts. Maybe this information should be added to the installation guide?

VIOLATION::ENTITY_DOES_NOT_EXISTS

"title": "Constraint violation error",
"detail": "The "salutation" entity with id "B3A89CA8-BBEF-4F49-AE07-2C6C993E1766" does not exists." as Image describing the error

Register

Sales Channel Default Currency

Hi,

When changing my default currency to USD in my headless sales channel, instead of Euro I still get Euro as default in the sales-channel API. While in the backend it did save as USD and shows as USD.

Installation without mod_rewrite

Currently it is possible to install the shop without mod_rewrite - the installation routine runs through clean but the shop shows serious errors. Maybe you should check the value in the installation routine?!? The error message after installation is:

Slim Application Error

The application could not run because of the following error:
details
Type: Shopware \ Recovery \ Common \ HttpClient \ ClientException
Code: 6
Message: Could not resolve host: shopware6.ubuntuserver
File: /var/www/html/shopware6/public/recovery/common/src/HttpClient/CurlClient.php
Line: 96
trace

Profiling:Collector:db.html.twig not found

Hi,

I installed Shopware 6 locally on a Linux system.
The Symfony Toolbar raises a 500 network error, because the mentioned file Profiling:Collector:db.html.twig (referenced in https://github.com/shopware/platform/blob/master/src/Core/Profiling/DependencyInjection/services.xml#L42) is not found.

When changing the syntax to

<service id="Shopware\Core\Profiling\Doctrine\ConnectionProfiler">
        <tag name="data_collector"
	    template="@Profiling/Collector/db.html.twig"
            id="app.connection_collector"
            priority="200"
        />
</service>

as described here https://symfony.com/doc/current/templating.html#referencing-templates-in-a-bundle everything works.

Bug or not? Feature? :-)
Please advise.

Kind regards,
Christopher

basic auth not working for /admin

Hi,

I am trying to add basic auth in the apache config, it works in the frontend, but in admin there are lots of 401 error, like this one below
{"errors":[{"code":"9","status":"401","title":"The resource owner or authorization server denied the request.","detail":"The JWT string must have two dots"}]}
for requests like api/v1/language/2fbb5fe2e29a4d70aa5854ce7ce3e20b

here is my apache config

    AllowOverride All
    Options Indexes FollowSymLinks MultiViews

    AuthType Basic
    AuthName "Restricted Area"
    AuthBasicProvider file
    AuthUserFile "/var/www/.htpasswd"
    Require valid-user

is there some workaround here, or something wrong in my config?

Lei

Scheduled Tasks behave unexpectedly

Used Version: User v6.0.0-Early Access 1
Installation: Manual Installation on a local system
System: Linux CentOS 7
PHP-Version: PHP 7.2.14RC1
Web-Server: Apache 2.4.37, PHP-FPM
Database: MariaDB-10.2.21

I've been trying to set up scheduled Tasks in a Plugin. I've followed the steps at: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/scheduled-tasks?category=shopware-platform-dev-en/how-to but could not seem to make it work. Upon further investigation in the database, I discovered some strange behaviour while monitoring the scheduled_task table.
When using the Administration backend under Plugins, then ACTIVATING the Plugin with a scheduled task, the database table does not update. BUT when DEACTIVATING the Plugin with a scheduled task, the database table does an update and includes the scheduled task of the plugin and runs it once.
Since I wasn't sure whether or not I made an error in my plugin structure, I decided to test the same procedure with your provided Example Plugin at https://github.com/shopware/swag-docs-scheduled-task-plugin .
To make it easier to track I only altered the MyTaskHandler.php::run function and added a simple error_log("Hello World"); instruction to it. - The same phenomenon happened.
Steps I have done to make this issue occur:

  1. Install and Configure a Shopware 6 installation
  2. Fetch Plugin from https://github.com/shopware/swag-docs-scheduled-task-plugin
  3. Place Plugin to /custom/plugins
  4. Initiate Command /bin/console plugin:refresh
  5. Install Plugin in Admin Backend
  6. Activate Plugin in Admin Backend (No Scheduled Task in Database)
  7. Deactivate Plugin in Admin Backend (Scheduled Task in Database, but only 1 execution)
  8. Activate Plugin in Admin Backend (Scheduled Task disappears from Database)
    .....

I didn't have time to test it on a separate server installation yet.

Maybe I did a crucial mistake in the order of execution here, or I found a bug in how scheduled tasks are handled. Either way I would be delighted to hear back from you.

Plugin - Theme

Hello,

  • Plugin Theme uninstall does not remove the theme from storefront and admin view. (would be great for completly re-apply theme config or something)

  • Theme configuration custom logos in dist folder can only installed once:
    Message: A file with the name "logo.x" already exists.
    On a new install, you cant apply the theme.json again - force command?!

  • the documentation say, place theme.json under resources, but it should be placed under src

Cheers :-)!

git clone error: Filename too long

On "Windows 10 Pro (1809)" following error occurs during "git clone" the plattform:

$ git clone https://github.com/shopware/platform.git
Cloning into 'platform'...
remote: Enumerating objects: 367, done.
remote: Counting objects: 100% (367/367), done.
remote: Compressing objects: 100% (269/269), done.
remote: Total 217997 (delta 166), reused 283 (delta 93), pack-reused 217630
Receiving objects: 100% (217997/217997), 97.32 MiB | 3.86 MiB/s, done.
Resolving deltas: 100% (157886/157886), done.
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-prices/sw-product-variants-configurator-prices.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-restrictions/sw-product-variants-configurator-restrictions.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-restrictions/sw-product-variants-configurator-restrictions.scss: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-selection/sw-product-variants-configurator-selection.html.twig: Filename too long
error: unable to create file src/Administration/Resources/administration/src/module/sw-product/component/sw-product-variants/sw-product-variants-configurator/sw-product-variants-configurator-selection/sw-product-variants-configurator-selection.scss: Filename too long
Checking out files: 100% (5897/5897), done.
fatal: unable to checkout working tree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.