Upgrade version from 2018.04 to 2019.04

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Harpal Singh
Posts: 28
Joined: 21 May 2019, 09:52

Upgrade version from 2018.04 to 2019.04

Post by Harpal Singh » 21 Oct 2019, 12:47

Is it possible to upgrade current version to 2019.04?
I have updated my app`s existing version(2018.04) to 2019.04 but my app stopped working.

What should I do?

I shows the following exception in `/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Controller/CatalogController.php`

Code: Select all

 ErrorException (E_WARNING)
Invalid argument supplied for foreach()

Code: Select all

/**
     * Returns the html for the catalog detail page.
     *
     * @return \Illuminate\Http\Response Response object with output and headers
     */
    public function detailAction()
    {
        foreach( app( 'config' )->get( 'shop.page.catalog-detail' ) as $name )
        {
            $params['aiheader'][$name] = Shop::get( $name )->getHeader();
            $params['aibody'][$name] = Shop::get( $name )->getBody();
        }
 
        return Response::view( 'shop::catalog.detail', $params )
            ->header( 'Cache-Control', 'private, max-age=10' );
    }
Thanks
Harpal Singh

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

Re: Upgrade version from 2018.04 to 2019.04

Post by aimeos » 21 Oct 2019, 20:55

Between major versions (e.g. 2018 -> 2019) there are breaking changes:
https://aimeos.org/docs/Developers/Changelog/2019

You need to adapt your self written code and copied templates to that changes.

BTW: 2019.04 isn't supported any more, only 2019.10 LTS is now. Please have a look at the roadmap for the versioning scheme and the support periods: https://aimeos.org/roadmap
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Harpal Singh
Posts: 28
Joined: 21 May 2019, 09:52

Re: Upgrade version from 2018.04 to 2019.04

Post by Harpal Singh » 22 Oct 2019, 10:07

I have updated now to 2019.10 v, but now I am getting following ecxception.

Code: Select all

Class 'Aimeos\MW\Session\Base' not found

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

Re: Upgrade version from 2018.04 to 2019.04

Post by aimeos » 23 Oct 2019, 08:15

Seems like an incomplete update because the class is available in the 2019.10 release:
https://github.com/aimeos/aimeos-core/t ... MW/Session
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply