Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [error]

Questions about PHP error messages and error logs

44
votes
2answers
21k views

What's the preferred way of throwing exceptions in Magento?

All of the following methods are used in Magento core so which one is the preferred (or the latest "best practice") way? Mage::throwException('Some Message') - 732 Usages throw new Exception('Some ...
36
votes
3answers
26k views

Enable exception printing on the webpage in Magento2

I was installing Magento 2 and got the following error. There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record ...
35
votes
2answers
9k views

Error after successfull patch SUPEE-5994: Class 'Mage_Install_Controller_Router_Install' not found

I successfully installed the SUPEE-5994 patch : [root@x]# sh PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh Checking if patch can be applied/reverted successfully... Patch was applied/...
29
votes
2answers
23k views

Magento CSS and JavaScript not loading due to using file system path

I was unable to install a module using Magento Connect, getting a Connection Error try again later error. Following the instructions of the module developer I attempted to fix permissions in the ...
27
votes
3answers
43k views

Error after magento upgrade

After firing this command in CLI php bin/magento setup:upgrade I am getting below error -: Fatal error: Uncaught exception 'Magento\Framework\Exception\LocalizedException' with message 'Can't ...
26
votes
4answers
37k views

Magento 2 - There are no commands defined in the “setup” namespace on windows [duplicate]

I have problem when I run this command: php bin/magento setup:upgrade Display error: [InvalidArgumentException] There are no commands defined in the "setup" namespace. I found some answers ...
23
votes
4answers
10k views

Magento2 CLI module:enable gives error “Unkown module(s)”

In Magento2 I've built a simple custom module and want to enable it by CLI: bin/magento module:enable Vendorname_Modulename But it is giving me the following error: Unknown module(s): '...
22
votes
9answers
19k views

CE1.9.1 Please make sure your password match issue during User registration

I am encountering this issue in CE1.9.1. When a User registers (doesn't matter if it's during checkout or from the Create an Account link) the user keeps getting the password mismatch error even ...
20
votes
2answers
13k views

Error while printing invoice

I've got a standard Magento 1.8.0.0 installation on Windows 7 using the BitNami Magento installation for XAMPP. When I open the Sales -> Invoices screen and click on an invoice and then click on the ...
19
votes
2answers
30k views

How to diagnose “Invalid block type ..” error?

Not sure how to figure out this error, I've been googling for a week and I can't seem to find a solution. Any ideas? 2013-06-10T04:04:28+00:00 ERR (3): exception 'Mage_Core_Exception' with message '...
17
votes
2answers
27k views

How to enable error and exception logging in Magento2?

I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when ...
16
votes
5answers
3k views

Index error after upgrade to EE 1.14.2.0: table catalog_product_entity_tmp_indexer doesn't exist

After I've upgraded my Magento to EE 1.14.2.0 the cron enterprise_refresh_index always gets this error: exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 ...
15
votes
3answers
8k views

Magento 2 StoreManagerInterface already exists in context object in compilation

I am getting this error in my extension. PackageName\ModuleName\Block\Enhanced Incorrect dependency in class PackageName\ModuleName\Block\Enhanced in /var/www/html/app/code/...
15
votes
3answers
179 views

Dealing with neutered type hinting in Magento

Just wondering if anyone has better strategies than I've thought of for type checking to co-exist with Magento's custom error handler. Specifically, I'm wondering about a "Catchable Fatal Errors" as ...
14
votes
7answers
72k views

Exception printing is disabled by default for security reasons [closed]

I tried to setup my magento to my hosting. So i created a new database and i did import my sql file and changed the settings in the local.xml for the database. but now i’m getting Exception printing ...
14
votes
2answers
12k views

Magento 2 error: We're sorry, an error has occurred while generating this email

I am getting below error in magento 2 local system. We're sorry, an error has occurred while generating this email.
12
votes
1answer
10k views

How i can fix error Invalid backend model specified

when i try run magento, i see in log file next error: a:5:{i:0;s:74:"Invalid backend model specified: eav/entity_attribute_backend_time_updated";i:1;s:6088:"#0 \app\code\core\Mage\Eav\Model\...
12
votes
2answers
20k views

What is the cause of “Front controller reached 100 router match iterations” error?

As a Magento developer I have faced this problem tons of times, I know it is a misconfiguration problem when it occurs some modules are not loaded, neither their routers, causing the error. Most of ...
11
votes
2answers
4k views

My magento 2 website is crashed: Unknown or bad timezone () error

When i am accessing my magento website i am getting errors DateTimeZone::__construct(): Unknown or bad timezone () on Block and CMS pages and all my product list pages on frontend shows 404 page ...
11
votes
10answers
16k views

There are no commands defined in the “setup” namespace : Magento 2

I have installed latest version of Megento 2, everything is working fine frontend, backend and functionality. I have one issue with bin/magento setup:upgrade command, when I run this command in ...
11
votes
5answers
17k views

Getting this error message: dbModel read resource does not implement Zend_Db_Adapter_Abstract

I put my magento project on a linux server. First the error log messages shown up, but the folder var was missed. Then I created the var folder, I give it the 777 permissions and same with cache, ...
11
votes
1answer
10k views

Magento system.log 'Warning: SimpleXMLElement' - (adminNotification/Model/Feed.php)

Magento has me stumped again! Within /var/log/system.log I'm seeing the following warnings and I have been unable to track down the cause. Going by the timestamp, it appears as though they're all ...
11
votes
3answers
3k views

Order mail confirmation generates DOMXPath::query() error

on order place the email contains the following error and does not display properly CSS Inline Error: Warning: DOMXPath::query(): Invalid expression in .../vendor/pelago/emogrifier/Classes/Emogrifier....
10
votes
2answers
11k views

Error after deleting all cache in Magento 2

On deleting all cache as rm -rf var/cache/* var/page_cache/* var/view_preprocessed/* var/generation/* I got below error Warning: ltrim() expects parameter 1 to be string, object given in vendor\...
10
votes
1answer
573 views

How can i scroll up error message after click on place order magento2

If a user is a small screen device, there are many situations where they will never see an error message. I referred this link Usability issues with error/notice/success messages. But do not get any ...
9
votes
3answers
10k views

Creating custom module in magento2 show fatal error

I working on creating custom module in magento 2, but it's not working. Could you please suggest me where i went wrong?. My module code: app/etc/config.php: 'modules' => array ( '...
9
votes
2answers
7k views

magento 1.7 : Cannot reindex product_flat_data

I get the following error while trying to reindex my magento database.. Product Flat Data index process unknown error: exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint ...
9
votes
8answers
21k views

Magento image upload not working even after giving all folders 777 permissions

I am unable to upload images in magento admin panel , getting error "Destination folder is not writable or doen't exist". Recently moved all files from one hosting to another. Any solution for this?
9
votes
13answers
56k views

Magento 2: 500 Internal Server Error

I followed the Magento dev docs per below: If you add a new .html template, and then edit it, the changes will not apply until you do the following: delete all files in the pub/static/frontend ...
9
votes
5answers
10k views

Mysql access denied error

I have a common problem but the usual solutions are not working so apologies for what on first appearance may seem like a previously asked question. I have the following error when trying to view my ...
9
votes
3answers
9k views

Magento 1.9.0.1 Paypal error The totals of the cart item amounts do not match order amounts (#10413:

is this using magento 1.9.0.1 has integrated the box expres paypal, in addition to this you have the plugin pro rewards points as reward points to buy some productosen which when it became the ...
8
votes
2answers
10k views

Magento 1.9.2 and php7 - image upload error

I'm just testing Magento 1.9.2 with Php 7. All seemed to work, but suddenly I tried to upload image for the product. I got error like below: Fatal error</b>: Uncaught Error: Function name must ...
8
votes
10answers
3k views

Magento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)

I'm trying to migrate my Magento 1.9.3.4 to Magento 2.2.2 with the data-migration-tool. I did it and the store is working in localhost; I have the customers, sales, static pages and products. I ...
8
votes
6answers
5k views

Magento 1.9.2.1 SUPEE-7405 admin not working

I installed the new patch today - SUPEE-7405 via FTP from this site. https://magentary.com/kb/install-supee-7405-without-ssh/ Now, it looks like my front end store is still working, however when I ...
8
votes
4answers
7k views

Constant name is expected. Error

I am receiving this error: Uncaught exception 'InvalidArgumentException' with message 'Constant name is expected. While running php bin/magento setup:upgrade in command line. i got this http://...
8
votes
1answer
5k views

Incorrect dependency ScopeConfigInterface already exists in context object in compilation of magento2

<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Ortho\Featuredproduct\Helper; use Magento\Framework\App\Helper\AbstractHelper; /** ...
8
votes
2answers
4k views

Magento 2 - Error on running update/cron.php

I'm getting an error on running update/cron.php I setup the cronjob according to the documentation. But it gives the following error: PHP Warning: require_once(update/vendor/autoload.php): failed ...
8
votes
2answers
23k views

Magento 2.0: Exception printing is disabled by default for security reasons

I was able to login into Admin and see the website albeit without any data or graphics. shortly I received this message: Exception printing is disabled by default for security reasons I don't ...
8
votes
1answer
8k views

What does “SQLSTATE[HY000] [2002] No such file or directory” in error log mean?

This page just started coming up: There has been an error processing your request a:4:{i:0;s:48:"SQLSTATE[HY000] [2002] No such file or directory";i:1;s:2075:"#0 /home/dtacolle/public_html/lib/Zend/...
8
votes
3answers
3k views

Cron crashes MySQL

After moving to a new server I am getting the MySQL crash [1] issue once a day, which is coming to my email and annoying not to mention potential impact. Any hints how to debug this issue? Obviously ...
8
votes
3answers
9k views

Getting TypeError: $.widget is not a function Magento 2

I am getting a JavaScript type error in Minicart, Product view page, and Checkout page. TypeError: $.widget is not a function $.widget('mage.priceBox') $.widget('mage.dataPost') ...
8
votes
7answers
7k views

Data migration Eav step error

Anyone having this issue? data migration > EAV Step SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-Migration_Default' for key '...
8
votes
1answer
1k views

What causes the following error: Warning: Illegal string offset 'is_in_stock' … AdvancedInventory.php on line 87

During module development I've been writing a plugin which modifies the product options collection before it was loaded (adds a description field). Here is it: etc/di.xml <type name="Magento\...
7
votes
3answers
10k views

Onepage checkout: Already registered customer login redirects to create an account or login page

I have recently upgraded to 1.8.1 and am fairly new to magento. All other aspects of my site seems to be working just fine, however when a customer with an existing account adds item to the cart and ...
7
votes
2answers
4k views

Product image Upload (Flash) not working in Firefox

Image Upload using Flash is not working in Firefox. It works in IE and Chrome on the same system. The usual error "ssl error invalid or self-signed certificate" appears. I tried to debug it with ...
7
votes
2answers
5k views

Adding product to cart cause error 'The stock item for Product is not valid.'?

I'm adding a nominal product programically to the shopping cart. But it throws an exception as 'The stock item for Product is not valid.'. How can I resolve this? NOTE : $product is getting passed to ...
7
votes
5answers
18k views

Attempted Magento Backup - now throws 500 Internal server error page

I tried taking a backup of Magento by Admin->System->Tools and when I clicked on System Backup, the website showed me - Internal Server Error The server encountered an internal error or ...
7
votes
2answers
3k views

Magento 2 Full Page Cache not working

Whenver I turn on FPC(Full Page Cache) feature in my Magento CE 2.0.2 site (doesn't matter if default theme or custom theme is running.) and when I open the Homepage of this site, then it gives "...
7
votes
4answers
1k views

Call to undefined method Mage_Directory_Helper_Data::getRegionJsonByStore() in admin sales order create

This is very strange. I disabled both app/community and app/local as well as replaced app/core with stock Magento files and yet I keep getting the following error: Call to undefined method ...
7
votes
2answers
3k views

Developer mode on production environment

I was recently contacted by a client to evaluate their Magento store. I realized that the store (even though running in production) had developer mode enabled in their index.php file: if (isset($...