1

All of a sudden, I cannot view orders any longer. Shipments, invoices, credit memos work, but Orders returns an error:

**There has been an error processing your request Exception printing is disabled by default for security reasons.

Error log record number: 1931180224**

The log says:

2014-11-14T01:32:08+00:00 ERR (3): Notice: Undefined variable: _items in \app\design\frontend\default\theme000\template\catalog\product\view.phtml on line 173

and line 173 is:

<?php if (count($_items)):?>

What could have gone wrong? I haven't touched the site in weeks, no upgrades, no changes, so I am wondering why is it giving me the error now. Any ideas?

| improve this question | | | | |
  • I dont know why this error has just started. In that template is $_items set ? E.g.$_items = something – James Cowie Nov 14 '14 at 2:25
  • Even if you haven't touched the site, something has still changed be that file based or something in the database. What have you done to determine why a value is not being set correctly to $_items? – Jonathan Hussey Nov 14 '14 at 8:03
  • That is not the error you are looking for. Look for var/report/1931180224. – Melvyn Nov 14 '14 at 8:03
  • Did you manage to get the issue resolved? – Sander Mangel Dec 18 '14 at 12:38
2

Since it's a notice that is stopping the script I'm guessing your shop is in developer mode?

Either the server env variable MAGE_IS_DEVELOPER_MODE is set in the vhost or .htaccess or Mage::setIsDeveloperMode(true); is no longer wrapped in an if statement.

To resolve this either turn of developer mode or edit the code as follows

<?php if (isset($_items) && count($_items)):?>
| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.