I am using the laravel framework and I am trying to get a colleagues project working on my own machine.
When I try to load the project in my browser I get this error:
PDOException thrown with message "could not find driver"
Stacktrace:
#29 PDOException in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47
#28 PDO:__construct in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47
#27 Illuminate\Database\Connectors\Connector:createConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php:20
#26 Illuminate\Database\Connectors\MySqlConnector:connect in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:59
#25 Illuminate\Database\Connectors\ConnectionFactory:createSingleConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:47
#24 Illuminate\Database\Connectors\ConnectionFactory:make in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:127
#23 Illuminate\Database\DatabaseManager:makeConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\DatabaseManager.php:63
#22 Illuminate\Database\DatabaseManager:connection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:2782
#21 Illuminate\Database\Eloquent\Model:resolveConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:2748
#20 Illuminate\Database\Eloquent\Model:getConnection in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1765
#19 Illuminate\Database\Eloquent\Model:newBaseQueryBuilder in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1681
#18 Illuminate\Database\Eloquent\Model:newQuery in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:628
#17 Illuminate\Database\Eloquent\Model:all in C:\wamp\www\sportskicker.tld\app\controllers\FollowController.php:6
#16 FollowController:showWhoToFollow in <#unknown>:0
#15 call_user_func_array in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Controller.php:231
#14 Illuminate\Routing\Controller:callAction in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:93
#13 Illuminate\Routing\ControllerDispatcher:call in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:62
#12 Illuminate\Routing\ControllerDispatcher:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:930
#11 Illuminate\Routing\Router:Illuminate\Routing\{closure} in <#unknown>:0
#10 call_user_func_array in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Route.php:105
#9 Illuminate\Routing\Route:run in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:996
#8 Illuminate\Routing\Router:dispatchToRoute in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Routing\Router.php:964
#7 Illuminate\Routing\Router:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:738
#6 Illuminate\Foundation\Application:dispatch in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:708
#5 Illuminate\Foundation\Application:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Session\Middleware.php:72
#4 Illuminate\Session\Middleware:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Cookie\Queue.php:47
#3 Illuminate\Cookie\Queue:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Cookie\Guard.php:51
#2 Illuminate\Cookie\Guard:handle in C:\wamp\www\sportskicker.tld\vendor\stack\builder\src\Stack\StackedHttpKernel.php:23
#1 Stack\StackedHttpKernel:handle in C:\wamp\www\sportskicker.tld\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:606
#0 Illuminate\Foundation\Application:run in C:\wamp\www\sportskicker.tld\public\index.php:55
I cannot figure out what I can do to fix it. If anyone could provide some help it would be much appreciated. I am running WAMP2.2 with PHP v5.4.31
Related
I´m trying to run a performance test in a simple web developed with Laravel 5.5 as backend.
It´s a simple test, only one sample getting the home page. When the test begins, all works correctly, but earlier or later, randomly, the request gets Error 500. No matters the concurrent users, ocurrs with 2 or 10 users.
This is the plan used: jMeter Laravel-Core Simple Request JMX
Download jMeter 3.13
File > Open > Select jmx
Configure the User Defined Variables
Run test
Screenshot with a fail example with 5 users.
Reviewing the laravel.log, the error is:
[2017-11-21 14:38:16] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(NULL)
#1 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\\Encryption\\EncryptionServiceProvider->key(Array)
#3 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build(Object(Closure))
#5 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('encrypter', Array)
#6 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('encrypter', Array)
#7 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(885): Illuminate\\Foundation\\Application->make('encrypter')
#8 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(813): Illuminate\\Container\\Container->resolveClass(Object(ReflectionParameter))
#9 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(779): Illuminate\\Container\\Container->resolveDependencies(Array)
#10 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('App\\\\Http\\\\Middle...')
#11 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Middle...', Array)
#12 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('App\\\\Http\\\\Middle...', Array)
#13 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(138): Illuminate\\Foundation\\Application->make('App\\\\Http\\\\Middle...')
#14 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#15 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#16 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#17 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#18 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#19 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#20 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#21 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#22 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(58): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#23 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#24 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#25 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/fideloper/proxy/src/TrustProxies.php(56): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#26 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#27 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#28 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#29 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#30 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#31 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#32 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#33 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#34 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#35 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#36 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#37 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#38 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#39 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#40 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#41 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#42 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#43 /opt/http-2.4.12_2/htdocs/laravel-web/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#44 {main}
"}
[2017-11-21 14:38:16] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(NULL)
#1 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\\Encryption\\EncryptionServiceProvider->key(Array)
#3 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build(Object(Closure))
#5 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('encrypter', Array)
#6 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('encrypter', Array)
#7 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(885): Illuminate\\Foundation\\Application->make('encrypter')
#8 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(813): Illuminate\\Container\\Container->resolveClass(Object(ReflectionParameter))
#9 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(779): Illuminate\\Container\\Container->resolveDependencies(Array)
#10 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('App\\\\Http\\\\Middle...')
#11 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Middle...', Array)
#12 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\\Container\\Container->make('App\\\\Http\\\\Middle...', Array)
#13 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\\Foundation\\Application->make('App\\\\Http\\\\Middle...')
#14 /opt/http-2.4.12_2/htdocs/laravel-web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Foundation\\Http\\Kernel->terminateMiddleware(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#15 /opt/http-2.4.12_2/htdocs/laravel-web/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->terminate(Object(Illuminate\\Http\\Request), Object(Illuminate\\Http\\Response))
#16 {main}
"}
In my .env file, I have APP_ENV=local not APP_ENV=production and the APP_KEY is set correctly (all earlier requests load correctly). I tried setting APP_ENV=production, but the problem persist...
In other laravel project tested, the error is:
[2017-11-20 16:19:37] production.ERROR: PDOException: SQLSTATE[HY000] [1044] Access denied for user ''#'localhost' to database 'forge' in C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43
Stack trace:
#0 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(116): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'forge', '', Array)
#2 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(56): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'forge', '', Array)
#3 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#4 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php(61): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#6 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(956): call_user_func(Object(Closure))
#7 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(824): Illuminate\Database\Connection->getPdo()
#8 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(709): Illuminate\Database\Connection->reconnectIfMissingConnection()
#9 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(351): Illuminate\Database\Connection->run('select column_n...', Array, Object(Closure))
#10 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlBuilder.php(38): Illuminate\Database\Connection->select('select column_n...', Array)
#11 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(238): Illuminate\Database\Schema\MySqlBuilder->getColumnListing('settings')
#12 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\backpack\settings\src\SettingsServiceProvider.php(29): Illuminate\Support\Facades\Facade::__callStatic('getColumnListin...', Array)
#13 [internal function]: Backpack\Settings\SettingsServiceProvider->boot()
#14 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Container\Container.php(507): call_user_func_array(Array, Array)
#15 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(759): Illuminate\Container\Container->call(Array)
#16 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(742): Illuminate\Foundation\Application->bootProvider(Object(Backpack\Settings\SettingsServiceProvider))
#17 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Backpack\Settings\SettingsServiceProvider), 25)
#18 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(743): array_walk(Array, Object(Closure))
#19 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php(17): Illuminate\Foundation\Application->boot()
#20 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(203): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#21 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(253): Illuminate\Foundation\Application->bootstrapWith(Array)
#22 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(144): Illuminate\Foundation\Http\Kernel->bootstrap()
#23 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#24 C:\xampp_7.0.9\htdocs\backpack-demo\public\index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#25 {main}
Next Doctrine\DBAL\Driver\PDOException: SQLSTATE[HY000] [1044] Access denied for user ''#'localhost' to database 'forge' in C:\xampp_7.0.9\htdocs\backpack-demo\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:47
Stack trace:
#0 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(116): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(56): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=loca...', 'forge', '', Array)
#2 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#3 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php(61): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#5 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(956): call_user_func(Object(Closure))
#6 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(824): Illuminate\Database\Connection->getPdo()
#7 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(709): Illuminate\Database\Connection->reconnectIfMissingConnection()
#8 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Connection.php(351): Illuminate\Database\Connection->run('select column_n...', Array, Object(Closure))
#9 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Database\Schema\MySqlBuilder.php(38): Illuminate\Database\Connection->select('select column_n...', Array)
#10 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(238): Illuminate\Database\Schema\MySqlBuilder->getColumnListing('settings')
#11 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\backpack\settings\src\SettingsServiceProvider.php(29): Illuminate\Support\Facades\Facade::__callStatic('getColumnListin...', Array)
#12 [internal function]: Backpack\Settings\SettingsServiceProvider->boot()
#13 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Container\Container.php(507): call_user_func_array(Array, Array)
#14 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(759): Illuminate\Container\Container->call(Array)
#15 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(742): Illuminate\Foundation\Application->bootProvider(Object(Backpack\Settings\SettingsServiceProvider))
#16 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(Object(Backpack\Settings\SettingsServiceProvider), 25)
#17 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(743): array_walk(Array, Object(Closure))
#18 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php(17): Illuminate\Foundation\Application->boot()
#19 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(203): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(Object(Illuminate\Foundation\Application))
#20 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(253): Illuminate\Foundation\Application->bootstrapWith(Array)
#21 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(144): Illuminate\Foundation\Http\Kernel->bootstrap()
#22 C:\xampp_7.0.9\htdocs\backpack-demo\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#23 C:\xampp_7.0.9\htdocs\backpack-demo\public\index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#24 {main}
So, I think, the problem it´s that sometimes, the config read fails and get the default values especifies in the config/app.php.
Has anyone had this problem or can test a Laravel project with the jmx provided?
Thanks!
This is a laravel configuration issue:
You need to execute php artisan config:cache command. and check env configuration.
Add an env configuration option to your app.php configuration file that looks like the following:
'env' => env('APP_ENV', 'production'),
Caching And Env
If you are using the config:cache command during deployment, you must make sure that you are only calling the env function from within your configuration files, and not from anywhere else in your application.
If you are calling envfrom within your application, it is strongly recommended you add proper configuration values to your configuration files and call env from that location instead, allowing you to convert your env calls to config calls.
I have encountered this error as I was doing this.
The error happen in both frontend and backend.
I have tried below action:
Flushing the cache (delete everything in var/cache folder) : doesn't work.
Went to the compiler and noticed it was disabled
Tried & running the compiler : also doesn't work
Any suggestions?
Trace:
#0 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(476): Mage::register('_singleton/tax/...', false)
#2 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('tax/observer')
#3 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('catalog_product...', Array)
#4 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php(526): Mage::dispatchEvent('catalog_product...', Array)
#5 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(885): Mage_Catalog_Model_Resource_Product_Collection->_afterLoad()
#6 /var/www/vhosts/jomgroupon.com/httpdocs/lib/Varien/Data/Collection.php(301): Mage_Eav_Model_Entity_Collection_Abstract->load()
#7 /var/www/vhosts/jomgroupon.com/httpdocs/app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml(36): Varien_Data_Collection->getItems()
#8 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#9 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#10 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#12 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#14 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#15 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('right', true)
#16 /var/www/vhosts/jomgroupon.com/httpdocs/app/design/frontend/default/skytheme/template/page/2columns-right.phtml(58): Mage_Core_Block_Abstract->getChildHtml('right')
#17 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#18 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#19 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#21 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/local/Gclone/Deal/controllers/IndexController.php(72): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Gclone_Deal_IndexController->viewAction()
#25 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#26 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#27 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#28 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#29 /var/www/vhosts/jomgroupon.com/httpdocs/index.php(87): Mage::run('', 'store')
#30 {main}
Check this file: /var/www/vhosts/jomgroupon.com/httpdocs/app/code/local/Gclone/Deal/controllers/IndexController.php if you have call to the Mage::register() method
Mage::register('_singleton/tax/observer', $theObject)
Then change that call with adding third parameter as true:
Mage::register('_singleton/tax/observer', $theObject, true);
For further explanation please see: Error processing request: Mage registry key "_singleton/callforprice/observer" already exists
Finally, I found the solution here:
1st: looks tax/observer does not exists in your site, check if Observer.php is in app/code/core/Tax/Model folder
2nd: check if affiliateplusprogram/observer class file is there.
The found observer file names have been changed wrongly in both folders. Once corrected, the error no longer prompted up when clicking checkout
I get this error when trying to enter catalog/categories, I have tried everything possible with no result, my version of Magento is 1.7:
There has been an error processing your request
Source model "legenda/system_config_source_attribute_columns" not found for attribute "sw_lg_cat_design"
Trace:
#0 /home/tricka/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(387): Mage::exception('Mage_Eav', 'Source model "l...')
#1 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource()
#2 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset))
#3 /home/tricka/app/code/local/GoMage/Navigation/Block/Adminhtml/Catalog/Category/Tab/Attributes.php(183): Mage_Adminhtml_Block_Catalog_Category_Tab_Attributes->_prepareForm()
#4 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): GoMage_Navigation_Block_Adminhtml_Catalog_Category_Tab_Attributes->_prepareForm()
#5 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml()
#6 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php(140): Mage_Core_Block_Abstract->toHtml()
#7 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Tabs->_prepareLayout()
#8 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#9 /home/tricka/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php(55): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'tabs')
#10 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Catalog_Category_Edit_Form->_prepareLayout()
#11 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#12 /home/tricka/app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php(82): Mage_Core_Model_Layout->createBlock('adminhtml/catal...')
#13 /home/tricka/app/code/core/Mage/Core/Block/Abstract.php(238): Mage_Adminhtml_Block_Widget_Form_Container->_prepareLayout()
#14 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#15 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/catal...', 'category.edit')
#16 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/catal...', 'category.edit')
#17 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#18 /home/tricka/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#19 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#20 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#21 /home/tricka/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#22 /home/tricka/app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php(201): Mage_Adminhtml_Controller_Action->loadLayout()
#23 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Catalog_CategoryController->editAction()
#24 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('edit')
#25 /home/tricka/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#26 /home/tricka/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#27 /home/tricka/app/Mage.php(698): Mage_Core_Model_App->run(Array)
#28 /home/tricka/index.php(87): Mage::run('tricka_cz', 'website')
#29 {main}
go via cPanel
find table mage_eav_attribute
erase tables that starts with sw_
You have most certainly installed a theme that uploads attribute to database.
I am facing a serious error in magento version 1.5.1.0 while checkout. can somebody help me?
the error occurs When i enable display shopping cart sidebar,
Invalid method Mage_Checkout_Block_Cart_Sidebar::canApplyMsrp(Array
(
)
)
Trace:
#0 /home5/bunnygla/public_html/app/design/frontend/default/helloresponsive/template/hellothemes/mini_cart.phtml(60): Varien_Object->__call('canApplyMsrp', Array)
#1 /home5/bunnygla/public_html/app/design/frontend/default/helloresponsive/template/hellothemes/mini_cart.phtml(60): Mage_Checkout_Block_Cart_Sidebar->canApplyMsrp()
#2 /home5/bunnygla/public_html/includes/src/__default.php(2976): include('/home5/bunnygla...')
#3 /home5/bunnygla/public_html/includes/src/__default.php(3007): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#4 /home5/bunnygla/public_html/includes/src/__default.php(3021): Mage_Core_Block_Template->renderView()
#5 /home5/bunnygla/public_html/includes/src/__default.php(2312): Mage_Core_Block_Template->_toHtml()
#6 /home5/bunnygla/public_html/includes/src/__default.php(2079): Mage_Core_Block_Abstract->toHtml()
#7 /home5/bunnygla/public_html/includes/src/__default.php(2030): Mage_Core_Block_Abstract->_getChildHtml('miniCart', true)
#8 /home5/bunnygla/public_html/app/design/frontend/default/helloresponsive/template/page/html/header.phtml(67): Mage_Core_Block_Abstract->getChildHtml('miniCart')
#9 /home5/bunnygla/public_html/includes/src/__default.php(2976): include('/home5/bunnygla...')
#10 /home5/bunnygla/public_html/includes/src/__default.php(3007): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#11 /home5/bunnygla/public_html/includes/src/__default.php(3021): Mage_Core_Block_Template->renderView()
#12 /home5/bunnygla/public_html/includes/src/__default.php(2312): Mage_Core_Block_Template->_toHtml()
#13 /home5/bunnygla/public_html/includes/src/__default.php(2079): Mage_Core_Block_Abstract->toHtml()
#14 /home5/bunnygla/public_html/includes/src/__default.php(2030): Mage_Core_Block_Abstract->_getChildHtml('header', true)
#15 /home5/bunnygla/public_html/app/design/frontend/default/helloresponsive/template/page/homepage.phtml(123): Mage_Core_Block_Abstract->getChildHtml('header')
#16 /home5/bunnygla/public_html/includes/src/__default.php(2976): include('/home5/bunnygla...')
#17 /home5/bunnygla/public_html/includes/src/__default.php(3007): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#18 /home5/bunnygla/public_html/includes/src/__default.php(3021): Mage_Core_Block_Template->renderView()
#19 /home5/bunnygla/public_html/includes/src/__default.php(2312): Mage_Core_Block_Template->_toHtml()
#20 /home5/bunnygla/public_html/includes/src/__default.php(25560): Mage_Core_Block_Abstract->toHtml()
#21 /home5/bunnygla/public_html/includes/src/__default.php(12333): Mage_Core_Model_Layout->getOutput()
#22 /home5/bunnygla/public_html/includes/src/__default.php(9938): Mage_Core_Controller_Varien_Action->renderLayout()
#23 /home5/bunnygla/public_html/includes/src/__default.php(9860): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#24 /home5/bunnygla/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#25 /home5/bunnygla/public_html/includes/src/__default.php(12362): Mage_Cms_IndexController->indexAction()
#26 /home5/bunnygla/public_html/includes/src/__default.php(16512): Mage_Core_Controller_Varien_Action->dispatch('index')
#27 /home5/bunnygla/public_html/includes/src/__default.php(16109): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#28 /home5/bunnygla/public_html/includes/src/__default.php(18506): Mage_Core_Controller_Varien_Front->dispatch()
#29 /home5/bunnygla/public_html/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#30 /home5/bunnygla/public_html/index.php(89): Mage::run('', 'store')
#31 {main}
Reason:
Mage_Catalog_Helper_Data::canApplyMsrp() method is implemented since Magento 1.6 version, attempts to use this method in earlier Magento versions, like Magento 1.5.1.0 or Magento 1.5.0.1 will result in fatal error.
I am assuming the error is caused at file location Mage_Catalog_Helper_Data::canApplyMsrp() in template/checkout/cart/item/default.phtml
The solution is to check if the method canApplyMsrp exists like below
Change
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(),Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
To
if (method_exists(Mage::helper('catalog')->canApplyMsrp))
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(),Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
I hope it helps..
#supal: actually your compiler is on. Please disable it or recompile. For this goto admin > tools > compiler. Disable it and clear whole cache.
i m newi to magento and in my website menu working proper and category show with its product in list.phtml proper but when i click on product for detail of product this time page redirect to localhost/magento/index.php/categoryname/productname.html but got error report show in below image..
plz give any suggestion or help for solve this issue
Thanks
a:5:{i:0;s:203:"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right syntax to use near ')' at line 1";i:1;s:4055:"
#0 D:\wamp\www\magento\lib\Varien\Db\Statement\Pdo\Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 D:\wamp\www\magento\lib\Zend\Db\Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 D:\wamp\www\magento\lib\Zend\Db\Adapter\Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 D:\wamp\www\magento\lib\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `catalog...', Array)
#4 D:\wamp\www\magento\lib\Varien\Db\Adapter\Pdo\Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `catalog...', Array)
#5 D:\wamp\www\magento\lib\Zend\Db\Adapter\Abstract.php(753): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 D:\wamp\www\magento\app\code\core\Mage\Eav\Model\Entity\Abstract.php(943): Zend_Db_Adapter_Abstract->fetchRow(Object(Varien_Db_Select))
#7 D:\wamp\www\magento\app\code\core\Mage\Catalog\Model\Resource\Abstract.php(698): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Catalog_Model_Category), Object(Mage_Catalog_Model_Category), NULL)
#8 D:\wamp\www\magento\app\code\core\Mage\Core\Model\Abstract.php(225): Mage_Catalog_Model_Resource_Abstract->load(Object(Mage_Catalog_Model_Category), Object(Mage_Catalog_Model_Category), NULL)
#9 D:\wamp\www\magento\app\code\core\Mage\Catalog\Block\Product\List.php(84): Mage_Core_Model_Abstract->load(Object(Mage_Catalog_Model_Category))
#10 D:\wamp\www\magento\app\code\core\Mage\Catalog\Block\Product\List.php(145): Mage_Catalog_Block_Product_List->_getProductCollection()
#11 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php(867): Mage_Catalog_Block_Product_List->_beforeToHtml()
#12 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Text\List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php(868): Mage_Core_Block_Text_List->_toHtml()
#14 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#15 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#16 D:\wamp\www\magento\app\design\frontend\base\default\template\page\2columns-right.phtml(48): Mage_Core_Block_Abstract->getChildHtml('content')
#17 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Template.php(241): include('D:\wamp\www\mag...')
#18 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Template.php(272): Mage_Core_Block_Template->fetchView('frontend\base\d...')
#19 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Template.php(286): Mage_Core_Block_Template->renderView()
#20 D:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php(868): Mage_Core_Block_Template->_toHtml()
#21 D:\wamp\www\magento\app\code\core\Mage\Core\Model\Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 D:\wamp\www\magento\app\code\core\Mage\Cms\Helper\Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#24 D:\wamp\www\magento\app\code\core\Mage\Cms\Helper\Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'no-route')
#25 D:\wamp\www\magento\app\code\core\Mage\Cms\controllers\IndexController.php(75): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'no-route')
#26 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(419): Mage_Cms_IndexController->noRouteAction()
#27 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('noRoute')
#28 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#29 D:\wamp\www\magento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#30 D:\wamp\www\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#31 D:\wamp\www\magento\index.php(87): Mage::run('', 'store')
#32 {main}";s:3:"url";s:33:"/magento/index.php/coca-cola.html";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:7:"default";
you can try to add die in catalog/product/view.phtml with some message like here:
die("here");
after a while, you will see which line is making a problem, which will be easier to track.