So this question is based more on why only part of an error is showing that the error itself (although it would be great if someone could also solve the error as well).
However, I have a logging function in Laravel that emails an error notification as well as logs it. (Admittedly, it's probably not the best practice, although it tends to serve its purpose). My code for sending the error email is as shown below...
Exceptions\Handler.php
public function report(Exception $e)
{
\Mail::send('emails.error', ['error' => $e], function ($m) use ($e) {
$m->from('noreply#mydomain.com', 'MMC API | Laravel Error ');
$m->to('me#mydomain.com')
->cc('someoneelse#mydomain.com')
->subject($e->getMessage());
});
parent::report($e);
}
resources\views\emails\error.blade.php
<p><strong>Message: </strong>{{ $error->getMessage() }}</p>
<p><strong>File: </strong>{{ $error->getFile() }}</p>
<p><strong>Trace: </strong>{{$error->getTraceAsString()}}</p>
However, I just recieved and error without the Message from the getMessage() section of the email (as shown below)...
Message:
File: C:\api\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php
Trace:
#0 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Router.php(823): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request))
#1 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Router.php(691): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request))
#2 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Router.php(675): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#3 C:\api\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(246): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#4 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#5 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#6 C:\api\vendor\barryvdh\laravel-cors\src\HandleCors.php(34): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#7 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#8 C:\api\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#9 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#11 C:\api\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 C:\api\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)
#14 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 C:\api\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#16 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 C:\api\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#18 C:\api\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(132): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 C:\api\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(99): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#20 C:\api\public\index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#21 {main}
It seems like there might have possibly been something wrong with the Barryvdh\Cors\HandleCors- which I use to enable a cross-domain API or possibly a web crawler trying to poke around a different route than what I allow.
For my original question though: is it possible to have an error without a Message by which I could get it with getMessage()
And bonus question: is it possible to diagnose the Route error I'm getting with the limited information I have available?
The answer to your original question is yes, you can have an Exception that does not have a message.
The answer to your bonus question is yes, you can get an educated guess based on the current information. When you do this, this actually shows you the answer to your original question.
From the stacktrace, it shows that the last method called (from line #0) was Illuminate\Routing\RouteCollection->match. If you go into the code and look at this method, you can see that, if no route is matched, it calls throw new NotFoundHttpException;.
Given that this is the only Exception explicitly thrown by this method, as well as the fact that it is thrown without setting a message, it is a pretty good guess that this is your error.
So, basically, someone attempted to go to a route that didn't exist.
I have seen this kind of error before but not for mailing. But I can tell you that the error is from your Route its either you are trying to access a Route method that does not exist or you are using the wrong Route method
Related
I'm having this issue with Drupal after an update from Drupal 7 to Drupal 8.
The error is the following, when I go to the admin page, I go to content -> filter by -> tab pages -> and try to access a tab page a 502 bad gateway error presents.
My question is, someone has encounter with this particular error? You have any idea how can to solve it?
I never use Drupal, this project came to me through my company
Thank you!
Error: Call to a member function setDisplay() on null in Drupal\twig_views\Twig\RenderView::renderViewWithTitle() (line 59 of /var/www/drupal/modules/contrib/twig_views/src/Twig/RenderView.php)
#0 /var/www/drupal/sites/default/files/php/twig/61feb32897263_page--node--tab-pages.htm_hLYAbaj1Mcn9LHSkwCDf8ZbIY/xcq3DAem6ZT2uZs-Kb3Gn7rZluiRQRmG__g4ETTayds.php(130): Drupal\twig_views\Twig\RenderView::renderViewWithTitle()
#1 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_827f20d5d2f1c354e33f539028960e11adcc66cb1f8d12dddbb1dcb48a017905->doDisplay()
#2 /var/www/drupal/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#3 /var/www/drupal/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#4 /var/www/drupal/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#5 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#6 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#7 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#8 /var/www/drupal/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render()
#9 /var/www/drupal/sites/default/files/php/twig/61feb32897263_html.html.twig_kaa8ME2Dkk82q-sPQZLCsSAsP/9-CkZxCTZaBASgY3GcbELndOM5DYZkgNaMvxIM5XsDc.php(118): Drupal\Core\Template\TwigExtension->escapeFilter()
#10 /var/www/drupal/vendor/twig/twig/src/Template.php(455): __TwigTemplate_f599ebce244696485f15c3f1883c62b8ba60d77b9f9eb7c31be207d98bac4f5c->doDisplay()
#11 /var/www/drupal/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#12 /var/www/drupal/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#13 /var/www/drupal/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#14 /var/www/drupal/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#15 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#16 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#17 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): Drupal\Core\Render\Renderer->render()
#18 /var/www/drupal/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#19 /var/www/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): Drupal\Core\Render\Renderer->executeInRenderContext()
#20 /var/www/drupal/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#21 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#22 /var/www/drupal/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#23 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(156): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#24 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#25 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#26 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#27 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#28 /var/www/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#29 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#30 /var/www/drupal/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#31 /var/www/drupal/index.php(19): Drupal\Core\DrupalKernel->handle()
#32 {main}
Is "Tab Pages" a Content Type in your filter?
Have you tried running the Update Database job and clearing Drupal's cache?
If that doesn't sort it out. I would then try installing the Twig Tweak Module. Then locate the server folder of the theme in use at:
/web/themes/custom/...
Inside there, it seems you might have a custom template utilizing the Twig function:
{{ render_view('view_machine_name', 'display_machine_name', $arg1, $arg2, ...) }}
If you locate that, then try updating that function with the one provided by Twig Tweak.
{{ drupal_view('view_machine_name', 'display_machine_name') }}
Then clear Drupal's cache.
I have stumbled upon this error while reinstalling a backup from Installatron and I can't seem to make it go away.
I have encountered this error as I was doing this.
Update Magento using Instrallatron to 1.9.1
Found it to mess with all the CSS and as we don't have the web guy in office at the moment...
Delete the site.
Re-install the installatron backup created just before update.
The error occurs in both frontend and backend.
I have read some other posts regarding singleton errors so...
- tried flushing the cache (delete everything in var/cache folder) : doesn't work
- Went to the compiler and noticed it was disabled to tried & running the compiler : also doesn't work
Any suggestions?
The full trace is
Mage registry key "_singleton/license/module" already exists
Trace:
#0 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(477): Mage::register('_singleton/lice...', false)
#2 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(21667): Mage::getSingleton('license/module')
#3 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('core_block_abst...', Array)
#4 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(2616): Mage::dispatchEvent('core_block_abst...', Array)
#5 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Block_Dashboard_Diagrams.php(49): Mage_Core_Block_Abstract->toHtml()
#6 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(1966): Mage_Adminhtml_Block_Dashboard_Diagrams->_prepareLayout()
#7 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27977): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#8 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Block_Dashboard.php(66): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...')
#9 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(1966): Mage_Adminhtml_Block_Dashboard->_prepareLayout()
#10 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27977): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#11 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27993): Mage_Core_Model_Layout->createBlock('adminhtml/dashb...', 'dashboard')
#12 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27760): Mage_Core_Model_Layout->addBlock('adminhtml/dashb...', 'dashboard')
#13 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27726): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#14 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(27731): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#15 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(13941): Mage_Core_Model_Layout->generateBlocks()
#16 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(13866): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#17 /home/sytccoma/public_html/funketcomau/shop/includes/src/Mage_Adminhtml_Controller_Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#18 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(40): Mage_Adminhtml_Controller_Action->loadLayout()
#19 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(14015): Mage_Adminhtml_DashboardController->indexAction()
#20 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(18399): Mage_Core_Controller_Varien_Action->dispatch('index')
#21 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(17933): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#22 /home/sytccoma/public_html/funketcomau/shop/includes/src/__default.php(20705): Mage_Core_Controller_Varien_Front->dispatch()
#23 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#24 /home/sytccoma/public_html/funketcomau/shop/index.php(87): Mage::run('', 'store')
#25 {main}
Edited April 27.
There is a new trace which is a little different to the one I had before. The end result is the same. It calls for singleton/license/module and fails...
#0 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(477): Mage::register('_singleton/lice...', false)
#2 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('license/module')
#3 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('core_block_abst...', Array)
#4 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(943): Mage::dispatchEvent('core_block_abst...', Array)
#5 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#6 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(577): Mage_Core_Block_Abstract->_getChildHtml('js_cookies', true)
#7 /home/sytccoma/public_html/funketcomau/shop/app/design/frontend/base/default/template/page/html/head.phtml(43): Mage_Core_Block_Abstract->getChildHtml()
#8 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(241): include('/home/sytccoma/...')
#9 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#10 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#12 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#13 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('head', true)
#14 /home/sytccoma/public_html/funketcomau/shop/app/design/frontend/rwd/default/template/page/1column.phtml(43): Mage_Core_Block_Abstract->getChildHtml('head')
#15 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(241): include('/home/sytccoma/...')
#16 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/rwd/de...')
#17 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#18 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#19 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#20 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#21 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#22 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#23 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#24 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#25 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#26 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#27 /home/sytccoma/public_html/funketcomau/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#28 /home/sytccoma/public_html/funketcomau/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#29 /home/sytccoma/public_html/funketcomau/shop/index.php(87): Mage::run('', 'store')
#30 {main}
Edited Apr 28
Thanks to zhartaunik I have found that this issue is related to one of my extensions... I have asked the developers to get back to me with a solution... if I don't get an answer back, I will post the config.xml here...
Thanks
I was getting same issue & later on i got the solutions. I was overriding customer account page(login) & my module name was Customer due to which it was conflicting later i deleted it & create a new module named Customeroverride
& now it is working fine.
PS : Please do not create module name on existed one.
open includes/config.php and put # before following row:
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
upd.1
When you see following lines in you
/includes/src/__default.php
It can happen only when your compiler is enabled! Try to check:
native and other caches are disabled / cleaned
is it really that magento? Maybe you call some another? Check your core_config_data for 'web/unsecure/base_url' value.
upd.2
I have found one more interesting solution. When magento call in some place this code:
Mage::getSingleton('license/module')
According to singleton pattern magento allow create only one instance of this object. Magento achieve that using Mage::registry. Most probably you have following situation:
1st call of Mage::getSingleton('license/module'). Magento can't create this object and put in registry smth like false
2nd time magento call this existing registry and see there false
After that magento trying to create registry again, but this regirsty has false value and you are getting an error.
To resolve this problem:
you can disable this extension
if you need to use this extension and don't know how to resolve this problem - copy it's config.xml (model part) to your first post.
This issue has been now resolved.
The issue was related to an extension and its files being removed from the server due to an encryption which made the server antivirus to kick in.
Thanks for all your help especially to zhartaunik who enabled me to pinpoint the issue.
I am using the Bigcommerce PHP SDK within my Laravel 4 application. The Bigcommerce SDK is configured to throw exceptions when errors occur. These exceptions are usually of the class Bigcommerce\Api\ClientError. When these exceptions are thrown, instead of seeing a detailed output in my error logs like I normally do for Laravel exceptions (with stack traces, line numbers, file locations, etc), I only see a single line in the error log, something like this:
[2015-05-05 21:19:00] production.ERROR: Client Error (404): The requested resource was not found. [] []
Is there something I need to do within my app to ensure that these Bigcommerce exceptions are logged using the same detail as other Laravel exceptions?
Here's an example of the error output I'm used to seeing from Laravel. This output was the result of a Bigcommerce\Api\NetworkError. I do not understand why the output for this type of exception is what I'm looking for, but a Bigcommerce\Api\ClientError is not:
[2015-05-05 13:22:22] production.ERROR: exception 'Bigcommerce\Api\NetworkError' with message 'Empty reply from server' in /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Connection.php:213
Stack trace:
#0 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Connection.php(326): Bigcommerce\Api\Connection->handleResponse()
#1 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Client.php(225): Bigcommerce\Api\Connection->post('https://api.big...', Object(stdClass))
#2 /var/www/html/dev.example/vendor/bigcommerce/api/src/Bigcommerce/Api/Client.php(436): Bigcommerce\Api\Client::createResource('/products', Array)
#3 /var/www/html/dev.example/app/spire_models/Product.php(873): Bigcommerce\Api\Client::createProduct(Array)
#4 /var/www/html/dev.example/app/spire_models/Product.php(35): Spire_models\Product->pushToExternal()
#5 /var/www/html/dev.example/app/extensions/SlaveTrait.php(26): Spire_models\Product->additionalSyncWithMaster()
#6 /var/www/html/dev.example/app/controllers/ProductInfoController.php(225): Spire_models\Product->syncWithMaster()
#7 [internal function]: ProductInfoController->saveProductDetails()
#8 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#9 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('saveProductDeta...', Array)
#10 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(ProductInfoController), Object(Illuminate\Routing\Route), 'saveProductDeta...')
#11 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(967): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'ProductInfoCont...', 'saveProductDeta...')
#12 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#13 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Route.php(109): call_user_func_array(Object(Closure), Array)
#14 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1033): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#15 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1001): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#16 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#17 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#18 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#19 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#20 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#21 /var/www/html/dev.example/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#22 /var/www/html/dev.example/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#23 /var/www/html/dev.example/public/index.php(49): Illuminate\Foundation\Application->run()
#24 {main} [] []
In the Bigcommerce/Api/ClientError.php theres one method __toString(). Comment it out.
I am building a laravel application and everything seems to be working fine, except for the fact that I keep getting these errors appearing in the log file continuously. I mean they are showing up every few minutes, sometimes more often, sometimes less - it's making harder to find real problems in the log file. Except of these problems, they aren't really causing any problems - I have an App::missing method to take care of real users.
Do you have any idea of where to look for the solution?
[2014-05-15 19:58:20] local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' with message 'Controller method not found.' in /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:254
Stack trace:
#0 [internal function]: Illuminate\Routing\Controller->missingMethod(Array)
#1 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(231): call_user_func_array(Array, Array)
#2 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(93): Illuminate\Routing\Controller->callAction('missingMethod', Array)
#3 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(62): Illuminate\Routing\ControllerDispatcher->call(Object(HomeController), Object(Illuminate\Routing\Route), 'missingMethod')
#4 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Router.php(934): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'HomeController', 'missingMethod')
#5 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Array)
#6 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Route.php(105): call_user_func_array(Object(Closure), Array)
#7 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1000): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#8 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Routing/Router.php(968): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#9 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(738): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#10 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(708): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#11 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#12 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#13 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#14 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#15 /Applications/MAMP/htdocs/gran.pw/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#16 /Applications/MAMP/htdocs/gran.pw/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(606): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#17 /Applications/MAMP/htdocs/gran.pw/public/index.php(49): Illuminate\Foundation\Application->run()
#18 {main} [] []
Its a 404 for a non existant url.
i.e. http://example.com/this-url-does-not-exist
To see which URL is actually causing the 404 - add this to your filters file
App::missing(function($exception)
{
Log::error('Missing URL was: ' . Request::fullUrl());
});
It will record the URL that any exception occurs on in your logs.
It is most likely due to either a search engine bot trying to search for old links, or could be some broken links within your application.
I did mention this to Taylor as a possible bug in Laravel 4.1 - that the http exception does not record the missing url - but it was closed at the time. I might re-open it as I'm sure it is a bug (since old 404 did record the url).
Looks like your HomeController is not extending Laravel's controller:
class HomeController extends Controller {
}
Because the method missingMethod is missing from yours and this one is in the Laravel Controller base class.
I was just on the verge of turning my site live, as I had to update my database to the sites current standards for sales orders and transactions and what not so they fell just in line. I imported the sales files from the live database to the soon to be live database, which had been working perfectly prior to this. Once the updated sales and orders files were updated, my checkout process fails on the very last step of hitting 'Place Order' .. It goes into the submitting process, then simply comes up with a popup message stating "There was an error processing your order. Please contact us or try again later." Click okay, and you just stare at your waiting cart. I have looked around and tried a few things, to no avail. So I come to you all knowing stack crew!
This is the error log I am getting now;
exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in /www/www/store/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /www/www/store/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement- >execute(Array)
#1 /www/www/store/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /www/www/store/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /www/www/store/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#4 /www/www/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `sales_f...', Array)
#5 /www/www/store/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `sales_f...', Array)
#6 /www/www/store/lib/Zend/Db/Adapter/Abstract.php(825): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#7 /www/www/store/app/code/local/Mage/Sales/Model/Resource/Quote.php(169): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#8 /www/www/store/app/code/core/Mage/Sales/Model/Quote.php(1637): Mage_Sales_Model_Resource_Quote->isOrderIncrementIdUsed('100014532')
#9 /www/www/store/app/code/core/Mage/Sales/Model/Service/Quote.php(147): Mage_Sales_Model_Quote->reserveOrderId()
#10 /www/www/store/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#11 /www/www/store/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#12 /www/www/store/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#13 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#14 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#15 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /www/www/store/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#17 /www/www/store/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#18 /www/www/store/index.php(87): Mage::run('', 'store')
#19 {main}
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in /www/www/store/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /www/www/store/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /www/www/store/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /www/www/store/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /www/www/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `sales_f...', Array)
#4 /www/www/store/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `sales_f...', Array)
#5 /www/www/store/lib/Zend/Db/Adapter/Abstract.php(825): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#6 /www/www/store/app/code/local/Mage/Sales/Model/Resource/Quote.php(169): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
#7 /www/www/store/app/code/core/Mage/Sales/Model/Quote.php(1637): Mage_Sales_Model_Resource_Quote->isOrderIncrementIdUsed('100014532')
#8 /www/www/store/app/code/core/Mage/Sales/Model/Service/Quote.php(147): Mage_Sales_Model_Quote->reserveOrderId()
#9 /www/www/store/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#10 /www/www/store/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#11 /www/www/store/app/code/core/Mage/Checkout/controllers/OnepageController.php(579): Mage_Checkout_Model_Type_Onepage->saveOrder()
#12 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#13 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#14 /www/www/store/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#15 /www/www/store/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#16 /www/www/store/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#17 /www/www/store/index.php(87): Mage::run('', 'store')
#18 {main}
I can see they are both dealing with the same invalid parameter, but I assume if I just fix that one single parameter (which is probably just the parameter for my one personally made user account I assume) it would still error for some other, not effectively solving the issue. So I have to ask, does this give anyone an idea of what the heck I did to blow up my store?! Thanks for your time guys, truly!
First, looking at your specific error
exception 'PDOException' with message SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
This is PHP's database layers saying "someone used me wrong". Specifically, it looks like someone used a parameterized query where they included a blank and/or invalid parameter.
Second, looking at your stack trace, I noticed this.
/www/www/store/app/code/local/Mage/Sales/Model/Resource/Quote.php(169): Zend_Db_Adapter_Abstract->fetchOne(Object(Varien_Db_Select), Array)
Specifically, it looks like you, or someone, has created a code pool override for the quote resource model. Everything else being equal, I'd say it's likely the change you made to this file from the file in core is what's causing your problem. Likely in this method (around line 169)
#File: app/code/core/Mage/Sales/Model/Resource/Quote.php
public function isOrderIncrementIdUsed($orderIncrementId)
{
$adapter = $this->_getReadAdapter();
$bind = array(':increment_id' => (int)$orderIncrementId);
$select = $adapter->select();
$select->from($this->getTable('sales/order'), 'entity_id')
->where('increment_id = :increment_id');
$entity_id = $adapter->fetchOne($select, $bind);
if ($entity_id > 0) {
return true;
}
return false;
}
My guess is you've either jiggered with the $bind array
$entity_id = $adapter->fetchOne($select, $bind);
or included additional query parameters in the SQL that aren't accounted for.
->where('increment_id = :increment_id');