I am looking into some legacy code. Php application is throwing an error when I want to edit a page element. Not even sure why it means. Documenttemplateelement has no repeat attribute.
Error:
Exception (Unknown Property) 'yii\base\UnknownPropertyException' with message 'Getting unknown property: common\models\Documenttemplateelement::repeat'
in C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\Component.php:154
Stack trace:
#0 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\db\BaseActiveRecord.php(298): yii\base\Component->__get('repeat')
#1 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\helpers\BaseHtml.php(2233): yii\db\BaseActiveRecord->__get('repeat')
#2 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\helpers\BaseHtml.php(1826): yii\helpers\BaseHtml::getAttributeValue(Object(common\models\Documenttemplateelement), 'repeat')
#3 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\helpers\BaseHtml.php(1664): yii\helpers\BaseHtml::activeListInput('dropDownList', Object(common\models\Documenttemplateelement), 'repeat', Array, Array)
#4 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\widgets\ActiveField.php(654): yii\helpers\BaseHtml::activeDropDownList(Object(common\models\Documenttemplateelement), 'repeat', Array, Array)
#5 C:\xampp\htdocs\ddtool\vendor\yii-ui\yii2-materialize\ActiveField.php(189): yii\widgets\ActiveField->dropDownList(Array, Array)
#6 C:\xampp\htdocs\ddtool\backend\views\documentmanager\element.php(50): yiiui\yii2materialize\ActiveField->dropDownList(Array)
#7 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\View.php(348): require('C:\\xampp\\htdocs...')
#8 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\View.php(257): yii\base\View->renderPhpFile('C:\\xampp\\htdocs...', Array)
#9 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\View.php(156): yii\base\View->renderFile('C:\\xampp\\htdocs...', Array, Object(backend\controllers\DocumentmanagerController))
#10 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\Controller.php(386): yii\base\View->render('element', Array, Object(backend\controllers\DocumentmanagerController))
#11 C:\xampp\htdocs\ddtool\backend\controllers\DocumentmanagerController.php(228): yii\base\Controller->render('element', Array)
#12 [internal function]: backend\controllers\DocumentmanagerController->actionElementUpdate('137')
#13 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#14 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#15 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('element-update', Array)
#16 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('documentmanager...', Array)
#17 C:\xampp\htdocs\ddtool\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#18 C:\xampp\htdocs\ddtool\backend\web\index.php(22): yii\base\Application->run()
#19 {main}
Related
My code was working fine I was using firebase with php then I reinstalled composer and xampp now this error is appearing on my screen
<b>Fatal error</b>: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://oauth2.googleapis.com/token` resulted in a 400 Bad Request response:
{"error":"invalid_grant","error_description":"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reaso (truncated...)
in C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113
Stack trace:
#0 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(69): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response))
#2 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(153): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}()
#4 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(248): GuzzleHttp\Promise\TaskQueue->run(true)
#5 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending()
#7 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\promises\src\Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(123): GuzzleHttp\Promise\Promise->wait()
#10 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\HttpHandler\Guzzle6HttpHandler.php(47): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#11 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\OAuth2.php(544): Google\Auth\HttpHandler\Guzzle6HttpHandler->__invoke(Object(GuzzleHttp\Psr7\Request))
#12 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Credentials\ServiceAccountCredentials.php(205): Google\Auth\OAuth2->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#13 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\FetchAuthTokenCache.php(79): Google\Auth\Credentials\ServiceAccountCredentials->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#14 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Middleware\AuthTokenMiddleware.php(122): Google\Auth\FetchAuthTokenCache->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#15 C:\xampp\htdocs\pakistanPlants\admin\vendor\google\auth\src\Middleware\AuthTokenMiddleware.php(102): Google\Auth\Middleware\AuthTokenMiddleware->fetchToken()
#16 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(35): Google\Auth\Middleware\AuthTokenMiddleware->Google\Auth\Middleware{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#17 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#18 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#19 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Middleware.php(63): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#20 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#21 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(331): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#22 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(107): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#23 C:\xampp\htdocs\pakistanPlants\admin\vendor\guzzlehttp\guzzle\src\Client.php(123): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
#24 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(192): GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#25 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(42): Kreait\Firebase\Database\ApiClient->requestApi('GET', Object(GuzzleHttp\Psr7\Uri))
#26 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(295): Kreait\Firebase\Database\ApiClient->get(Object(GuzzleHttp\Psr7\Uri))
#27 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(262): Kreait\Firebase\Database\Reference->getSnapshot()
#28 C:\xampp\htdocs\pakistanPlants\header.php(140): Kreait\Firebase\Database\Reference->getValue()
#29 C:\xampp\htdocs\pakistanPlants\index.php(2): include('C:\xampp\htdocs...')
#30 {main}
Next Kreait\Firebase\Exception\Database\DatabaseError: invalid_grant in C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php:64
Stack trace:
#0 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php(33): Kreait\Firebase\Exception\DatabaseApiExceptionConverter->convertGuzzleRequestException(Object(GuzzleHttp\Exception\ClientException))
#1 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(194): Kreait\Firebase\Exception\DatabaseApiExceptionConverter->convertException(Object(GuzzleHttp\Exception\ClientException))
#2 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\ApiClient.php(42): Kreait\Firebase\Database\ApiClient->requestApi('GET', Object(GuzzleHttp\Psr7\Uri))
#3 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(295): Kreait\Firebase\Database\ApiClient->get(Object(GuzzleHttp\Psr7\Uri))
#4 C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Database\Reference.php(262): Kreait\Firebase\Database\Reference->getSnapshot()
#5 C:\xampp\htdocs\pakistanPlants\header.php(140): Kreait\Firebase\Database\Reference->getValue()
#6 C:\xampp\htdocs\pakistanPlants\index.php(2): include('C:\xampp\htdocs...')
#7 {main}
thrown in <b>C:\xampp\htdocs\pakistanPlants\admin\vendor\kreait\firebase-php\src\Firebase\Exception\DatabaseApiExceptionConverter.php</b> on line <b>64</b><br />
Thanks in advance :)
I want to run my project as usual
I'm running code available here under feature-1-login branch:
https://github.com/dzidlicious/invest-tracker
After running the docker-compose up and accessing the BACKEND part of the application, I'm getting the following stack trace:
yii\base\ErrorException: Exception (Invalid Configuration) 'yii\base\InvalidConfigException' with message 'The directory does not exist: '
in /app/vendor/yiisoft/yii2/web/AssetManager.php:236
Stack trace:
#0 /app/vendor/yiisoft/yii2/web/AssetManager.php(546): yii\web\AssetManager->checkBasePathPermission()
#1 /app/vendor/yiisoft/yii2/web/AssetManager.php(478): yii\web\AssetManager->publishDirectory('/app/vendor/yii...', Array)
#2 /app/vendor/yiisoft/yii2/web/AssetBundle.php(181): yii\web\AssetManager->publish('/app/vendor/yii...', Array)
#3 /app/vendor/yiisoft/yii2/web/AssetManager.php(292): yii\web\AssetBundle->publish(Object(yii\web\AssetManager))
#4 /app/vendor/yiisoft/yii2/web/AssetManager.php(263): yii\web\AssetManager->loadBundle('yii\\validators\\...', Array, true)
#5 /app/vendor/yiisoft/yii2/web/View.php(287): yii\web\AssetManager->getBundle('yii\\validators\\...')
#6 /app/vendor/yiisoft/yii2/web/AssetBundle.php(125): yii\web\View->registerAssetBundle('yii\\validators\\...')
#7 /app/vendor/yiisoft/yii2/validators/RequiredValidator.php(93): yii\web\AssetBundle::register(Object(yii\web\View))
#8 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(833): yii\validators\RequiredValidator->clientValidateAttribute(Object(common\models\LoginForm), 'username', Object(yii\web\View))
#9 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(233): yii\widgets\ActiveField->getClientOptions()
#10 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(223): yii\widgets\ActiveField->begin()
#11 /app/vendor/yiisoft/yii2-bootstrap4/src/ActiveField.php(244): yii\widgets\ActiveField->render('<label for="log...')
#12 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(176): yii\bootstrap4\ActiveField->render()
#13 /app/backend/views/site/login.php(27): yii\widgets\ActiveField->__toString()
#14 /app/vendor/yiisoft/yii2/base/View.php(348): require('/app/backend/vi...')
#15 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/backend/vi...', Array)
#16 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/backend/vi...', Array, Object(backend\controllers\SiteController))
#17 /app/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\View->render('login', Array, Object(backend\controllers\SiteController))
#18 /app/backend/controllers/SiteController.php(87): yii\base\Controller->render('login', Array)
#19 [internal function]: backend\controllers\SiteController->actionLogin()
#20 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#21 /app/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#22 /app/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('login', Array)
#23 /app/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('site/login', Array)
#24 /app/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#25 /app/backend/web/index.php(17): yii\base\Application->run()
#26 {main} in /app/vendor/yiisoft/yii2/base/ErrorHandler.php:343
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(256, 'Exception (Inva...', '/app/vendor/yii...', 343, Array)
#1 /app/vendor/yiisoft/yii2/base/ErrorHandler.php(343): trigger_error('Exception (Inva...', 256)
#2 /app/vendor/yiisoft/yii2/widgets/ActiveField.php(178): yii\base\ErrorHandler::convertExceptionToError(Object(yii\base\InvalidConfigException))
#3 /app/backend/views/site/login.php(27): yii\widgets\ActiveField->__toString()
#4 /app/vendor/yiisoft/yii2/base/View.php(348): require('/app/backend/vi...')
#5 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/backend/vi...', Array)
#6 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/backend/vi...', Array, Object(backend\controllers\SiteController))
#7 /app/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\View->render('login', Array, Object(backend\controllers\SiteController))
#8 /app/backend/controllers/SiteController.php(87): yii\base\Controller->render('login', Array)
#9 [internal function]: backend\controllers\SiteController->actionLogin()
#10 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#11 /app/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#12 /app/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('login', Array)
#13 /app/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('site/login', Array)
#14 /app/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request))
#15 /app/backend/web/index.php(17): yii\base\Application->run()
#16 {main}
I have intentionally committed my config files and attached a screenshot.
That error happens because you are missing the backend/web/assets folder and the server does not have the permissions to create it.
Check the owner and permissions of backend/web if the server can't write it, it won't be able to create the assets folder.
You could update backend/web and make it server-writable.
You can also create backend/web/assets manually, then update the permissions and give the server group rw permissions, or run init on the project root, if you are sure that nothing you have modified will be overwritten.
When completing a card purchase I get the following error:
There was an error processing your order. Please contact us or try again later.
The Magento error log is here:
exception 'Exception' with message 'Notice: Array to string conversion in /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php on line 1060' in /home/luluinth/public_html/app/code/local/Mage/Core/functions.php:247
Stack trace:
#0 [internal function]: mageCoreErrorHandler(8, 'Array to string...', '/home/luluinth/...', 1060, Array)
#1 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1060): sprintf('PayPal NVP gate...', Array, '4f0c10ba893f2', '72.0')
#2 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(1008): Mage_Paypal_Model_Api_Nvp->_handleCallErrors(Array)
#3 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Api/Nvp.php(659): Mage_Paypal_Model_Api_Nvp->call('DoDirectPayment', Array)
#4 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(343): Mage_Paypal_Model_Api_Nvp->callDoDirectPayment()
#5 /home/luluinth/public_html/app/code/core/Mage/Paypal/Model/Direct.php(202): Mage_Paypal_Model_Direct->_placeOrder(Object(Mage_Sales_Model_Order_Payment), '12')
#6 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(443): Mage_Paypal_Model_Direct->capture(Object(Mage_Sales_Model_Order_Payment), '12')
#7 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Invoice.php(385): Mage_Sales_Model_Order_Payment->capture(Object(Mage_Sales_Model_Order_Invoice))
#8 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(608): Mage_Sales_Model_Order_Invoice->capture()
#9 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(410): Mage_Sales_Model_Order_Payment->_invoice()
#10 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(348): Mage_Sales_Model_Order_Payment->capture(NULL)
#11 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(886): Mage_Sales_Model_Order_Payment->place()
#12 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Order.php(1104): Mage_Sales_Model_Order->_placePayment()
#13 [internal function]: Mage_Sales_Model_Order->place()
#14 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(105): call_user_func(Array)
#15 /home/luluinth/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(159): Mage_Core_Model_Resource_Transaction->_runCallbacks()
#16 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
#17 /home/luluinth/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#18 /home/luluinth/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#19 /home/luluinth/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#20 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#21 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#22 /home/luluinth/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#23 /home/luluinth/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#24 /home/luluinth/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#25 /home/luluinth/public_html/index.php(98): Mage::run('', 'store')
#26 {main}
You're trying to cast $value as a string for the comparison, but $value is an array. If $value has some kind of value you need in it (perhaps it's nested inside an array) for the comparison, then you must process it so that it is not array.
Go to that nvp.php file and do this before the if statement.
var_dump($value); die;
Or
Mage::log($value); // Check var/log/system.log with logging enabled
And just examine how the data is structured in $value. Make it into a string variable.
Here $value is a variable you can put the variable from the line number that exception is generated.
Check this and let me know if it works.
I cloned a project from my git repo and tried to do following command
php artisan serve
I was getting
Laravel 5 Failed opening required bootstrap/../vendor/autoload.php
So I followed this answer
Laravel 5 Failed opening required bootstrap/../vendor/autoload.php
and then did composer install
after this when I did
php artisan serve
The server started fine but in chrome browser I am getting following error
Whoops, looks like something went wrong. error in Laravel 5
Any heads Up what could have gone wrong
UPDATE
I opened the folder storage/logs/ and there is a file called laravel
this is the dump from it
`[2015-11-18 10:48:25] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(9459): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\bootstrap\cache\compiled.php(2932): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 D:\iclock.in\bootstrap\cache\compiled.php(9459): call_user_func_array(Array, Array)
#12 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 D:\iclock.in\bootstrap\cache\compiled.php(9449): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#14 D:\iclock.in\bootstrap\cache\compiled.php(2209): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#15 D:\iclock.in\bootstrap\cache\compiled.php(2192): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#16 D:\iclock.in\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#17 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#18 {main}
[2015-11-18 10:48:25] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(2216): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\public\index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#10 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#11 {main}
[2015-11-18 10:48:32] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(9459): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\bootstrap\cache\compiled.php(2932): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 D:\iclock.in\bootstrap\cache\compiled.php(9459): call_user_func_array(Array, Array)
#12 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 D:\iclock.in\bootstrap\cache\compiled.php(9449): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#14 D:\iclock.in\bootstrap\cache\compiled.php(2209): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#15 D:\iclock.in\bootstrap\cache\compiled.php(2192): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#16 D:\iclock.in\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#17 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#18 {main}
[2015-11-18 10:48:32] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(2216): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\public\index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#10 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#11 {main}
[2015-11-18 10:49:10] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(9459): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\bootstrap\cache\compiled.php(2932): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 D:\iclock.in\bootstrap\cache\compiled.php(9459): call_user_func_array(Array, Array)
#12 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 D:\iclock.in\bootstrap\cache\compiled.php(9449): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#14 D:\iclock.in\bootstrap\cache\compiled.php(2209): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#15 D:\iclock.in\bootstrap\cache\compiled.php(2192): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#16 D:\iclock.in\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#17 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#18 {main}
[2015-11-18 10:49:10] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\iclock.in\bootstrap\cache\compiled.php:6943
Stack trace:
#0 D:\iclock.in\bootstrap\cache\compiled.php(1242): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build(Object(Closure), Array)
#2 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('encrypter', Array)
#3 D:\iclock.in\bootstrap\cache\compiled.php(1287): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 D:\iclock.in\bootstrap\cache\compiled.php(1271): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 D:\iclock.in\bootstrap\cache\compiled.php(1257): Illuminate\Container\Container->getDependencies(Array, Array)
#6 D:\iclock.in\bootstrap\cache\compiled.php(1195): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 D:\iclock.in\bootstrap\cache\compiled.php(1733): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 D:\iclock.in\bootstrap\cache\compiled.php(2216): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 D:\iclock.in\public\index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#10 D:\iclock.in\server.php(21): require_once('D:\\iclock.in\\pu...')
#11 {main}
`
Thanks & Regards
It looks like you don't have a .env file in the root of your project. This file contains all the global settings for your application.
Normaly there is a .env.example file in the root of your application. rename this file to .env and change the APP_KEY property to a random string for better security.
Rename the .env.example to .env
Go to bootstrap=>app.php and uncomment $app->withEloquent();
Make sure that APP_DEBUG=true in .env file. Now it will work.
I have an upgraded shop from 1.6 to 1.7. When I go to try to use a coupon on the front end I get a debug email with the following information. This didnt happen when it was at 1.6. Just now after upgrade.
Has anyone seen this issue thus far?
URL: http://xxxxxxxxxx.com/checkout/cart/couponPost/
IP Address:
Time: 2012-10-09 08:04:26 GMT
Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rule_coupons.type' in 'where clause'
Trace:
#0 /home/hsstore/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/hsstore/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/hsstore/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /home/hsstore/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `main_ta...', Array)
#4 /home/hsstore/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `main_ta...', Array)
#5 /home/hsstore/public_html/lib/Zend/Db/Adapter/Abstract.php(734): Varien_Db_Adapter_Pdo_Mysql->query('SELECT `main_ta...', Array)
#6 /home/hsstore/public_html/lib/Varien/Data/Collection/Db.php(734): Zend_Db_Adapter_Abstract->fetchAll('SELECT `main_ta...', Array)
#7 /home/hsstore/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(521): Varien_Data_Collection_Db->_fetchAll('SELECT `main_ta...', Array)
#8 /home/hsstore/public_html/lib/Varien/Data/Collection/Db.php(566): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#9 /home/hsstore/public_html/lib/Varien/Data/Collection.php(268): Varien_Data_Collection_Db->load()
#10 /home/hsstore/public_html/app/code/community/TBT/Rewards/Model/Salesrule/Observer.php(167): Varien_Data_Collection->getFirstItem()
#11 /home/hsstore/public_html/app/code/core/Mage/Core/Model/App.php(1338): TBT_Rewards_Model_Salesrule_Observer->checkRedemptionCouponBefore(Object(Varien_Event_Observer))
#12 /home/hsstore/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(TBT_Rewards_Model_Salesrule_Observer), 'checkRedemption...', Object(Varien_Event_Observer))
#13 /home/hsstore/public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#14 /home/hsstore/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(532): Mage::dispatchEvent('controller_acti...', Array)
#15 /home/hsstore/public_html/app/code/core/Mage/Core/Controller/Front/Action.php(64): Mage_Core_Controller_Varien_Action->preDispatch()
#16 /home/hsstore/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(408): Mage_Core_Controller_Front_Action->preDispatch()
#17 /home/hsstore/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('couponPost')
#18 /home/hsstore/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/hsstore/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/hsstore/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#21 /home/hsstore/public_html/index.php(87): Mage::run('', 'store')
#22 {main}