Invalid response when updating things in admin view

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
NicolasLapointe(ComradeNixco)
Posts: 5
Joined: 27 Apr 2018, 18:18

Invalid response when updating things in admin view

Post by NicolasLapointe(ComradeNixco) » 27 Apr 2018, 18:26

I have this error that appears when I try to edit or delete entries in the admin view:

Code: Select all

The controller must return a response (Object(Aimeos\MW\View\Helper\Response\Symfony2) given).
500 Internal Server Error - LogicException
.
It can be noted that the actions is still done (I.E.: The product is removed), I just have to go back and reload the page
I run Aimeos 2018.04 latest non-dev with symfony 2.8 in production with apache 2.4, php 5.6.35 via Wampserver (windows).

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Invalid response when updating things in admin view

Post by aimeos » 27 Apr 2018, 19:30

Can you please execute "composer update" again? You should get "aimeos/ai-admin-jqadm" version 2018.04.9 which fixes the problem.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

NicolasLapointe(ComradeNixco)
Posts: 5
Joined: 27 Apr 2018, 18:18

Re: Invalid response when updating things in admin view

Post by NicolasLapointe(ComradeNixco) » 30 Apr 2018, 16:57

Sadly upgrading didn't correct the problem in my app.
here's my composer.json:

Code: Select all

{
    "name": "symfony/framework-standard-edition",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.6.31",
        "symfony/symfony": "2.8.*",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.4,>=1.4.0",
        "twig/extensions": ">=1.5.0",
        "symfony/assetic-bundle": "~2.3,>=2.3.0",
        "symfony/swiftmailer-bundle": "~2.3,>=2.3.0",
        "jms/security-extra-bundle": "~1.6,>=1.6.0",
        "jms/di-extra-bundle": "~1.4",
		"jms/payment-core-bundle": "1.1.0",
		"jms/payment-paypal-bundle": "1.0.0",
        "twbs/bootstrap": "~3.3,>=3.3.7",
        "sensio/framework-extra-bundle": "~2.3",
        "stof/doctrine-extensions-bundle": ">=1.2",
        "friendsofsymfony/user-bundle": ">=1.3.7",
        "orderly/paypal-ipn-bundle": "dev-master",
        "egulias/email-validator": "~1.2",
        "symfony/monolog-bundle": "~2.4",
        "aimeos/aimeos-symfony": "~2018.04@dev"
    },
    "require-dev": {
        "sensio/distribution-bundle": "~2.2,>=2.2.0",
        "doctrine/doctrine-fixtures-bundle": ">=2.3.0",
        "sensio/generator-bundle": "~2.2,>=2.2.0"
    },
    "scripts": {
        "post-install-cmd": [
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::installBundle",
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::updateConfig",
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::setupDatabase",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-update-cmd": [
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::installBundle",
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::updateConfig",
            "Aimeos\\ShopBundle\\Composer\\ScriptHandler::setupDatabase",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "app",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web"
    }
}
also a picture of the installed packages is attached to this reply
Attachments
The error page
The error page
Capture2.PNG (53.79 KiB) Viewed 5928 times
Capture.PNG
Capture.PNG (7.03 KiB) Viewed 5928 times

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Invalid response when updating things in admin view

Post by aimeos » 02 May 2018, 08:06

Can you try to add the Symfony PSR-7 bridge?
http://symfony.com/doc/current/components/psr7.html
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Invalid response when updating things in admin view

Post by aimeos » 02 May 2018, 08:35

Resp. can you post the output of "composer show"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

NicolasLapointe(ComradeNixco)
Posts: 5
Joined: 27 Apr 2018, 18:18

Re: Invalid response when updating things in admin view

Post by NicolasLapointe(ComradeNixco) » 02 May 2018, 14:27

FInally, I opted to separate the shop from the main wweb site, now the shop runs on symfony 3 and it works perfectly. I'll see to show you the result of what you asked, but it'll have to wait, sorry.

Post Reply