Page 1 of 1

Class web does not exist

Posted: 01 Feb 2016, 15:13
by anders
Hi guys,

I'm sure I'm doing something wrong as I'm trying to integrate the laravel aimeos package into an existing site :oops:

ReflectionException in Container.php line 741:
I having an issue whereby I'm getting a complaint that Class web does not exits.

Working off of Laravel 5.2.

Hoping someone might be able to steer me in the right direction?

Cheers,

A

Re: Class web does not exist

Posted: 01 Feb 2016, 16:03
by aimeos
That doesn't look like an Aimeos problem in the first place.
Could you please post the stack trace nevertheless?

Re: Class web does not exist

Posted: 23 Mar 2016, 12:18
by Karthick
Hi there,

I have also same error while running 'Test installation' step.

Here is the 'stack trace nevertheless':

ReflectionException in Container.php line 741:
Class web does not exist
in Container.php line 741
at ReflectionClass->__construct('web') in Container.php line 741
at Container->build('web', array()) in Container.php line 631
at Container->make('web', array()) in Application.php line 674
at Application->make('web') in Pipeline.php line 123
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54

Could you please help me?

Cheers,
Karthick S

Re: Class web does not exist

Posted: 23 Mar 2016, 12:39
by aimeos
If you are using Laravel 5.1, the middleware array in ./config/shop.php must not contain the "web" middleware because this is new in Laravel 5.2. Please have a look at https://github.com/aimeos/aimeos-larave ... -or-update (last paragraph).

Re: Class web does not exist

Posted: 23 Mar 2016, 12:50
by Karthick
Thank you very much.

Its working fine.