Something appears to go wrong with Extensions>Store Activate
Internal Server Error
Return value of Symfony\Component\Process\Process::close() must be of the type int, null returned
This does not add entries to the Settings>System>Logs.
Also, under Shopware Account, it does say successfully connected.
Currently running a fresh install 6.4.13.0 (latest version available in the package manager of the hosting provider)
Is there something I can do to diagnose the cause of this problem?
Turns out, a PHP package called „Composer“ was not installed.
So far not impressed, as this error gives me the impression that errors get dragged along until an exception happens to occur.
Especially not impressed because that package isn’t even in the system requirements, only found it after looking into the requirements of this (outdated/unmaintained) Symphony module…
I have a similar problem. After trying to activate the store in the Admin UI, I get a graphical error message without any detail information. The error message simply says „Error during activation. Please try again. If that does not work, ask your administrator for help.“ and a blue „Retry“ button below.
There is nothing relevant in the error log (only frontend 404 errors), although the admin UI’s browser console shows that there has been a 500 Internal Server error, causing follow-up client side errors:
/api/_action/extension/activate/plugin/SwagExtensionStore
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
/api/notification/message?limit=5:1
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/api/_info/queue.json
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
/bundles/administration/static/js/commons.js?1668607807231938
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')
at commons.js?1668607807231938:1:203362
After retry, at least I get a real error message, this time about a seemingly exhausted memory limit, claiming that trying to allocate 6M has exhausted the limit of 143M?!
Internal Server Error
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 6242480 bytes)
I had a similar misleading memory limit message recently.
Questions:
How to fix the problems? Raise memory limit in php.ini even further? Use the CLI rather than the admin UI for tasks like this (specifying custom memory limits if needed)?
How to get proper error messages? The 500 Internal Server Error from the API call should have been logged somewhere, but it wasn’t, so there are no error details to provide to Shopware’s core team either.
I have the same problem - after klick on „Activate“ at local instance of Shopware, I’ve got Internal Server Error with a description: [Semantical Error] The annotation „@Shopware\Core\Framework\Routing\Annotation\RouteScope“ in class SwagExtensionStore\Controller\DataController was never imported. Did you maybe forget to add a „use“ statement for this annotation? in /Users/mbp/PhpstormProjects/shopware-test/custom/plugins/SwagExtensionStore/src/Controller/DataController.php (which is being imported from „/Users/mbp/PhpstormProjects/shopware-test/custom/plugins/SwagExtensionStore/src/Resources/config/routes.yaml“). Make sure there is a loader supporting the „annotation“ type."
I’ve tried to clear cache, it does not help. Also, the Stackoverflow link is already 404.
Anyone has got this problem solved? Thanks in advance.
@kuzmin were you able to solve this? I have the same effect as you had with the missing annotation. But the use statement is present in the file DataController.php
The solution, as suggested in a comment by J.Elfering on StackOverflow in 2022:
In general you should prefer installing plugins over the CLI, as you have way more control over memory limits or timeouts and the error messages are probably also easier to understand.