The following error is generated if the user is 'anonymous' and site caching is set to 'normal':

Fatal error: Call to undefined function arg() in /sites/all/modules/ecommerce/cart/cart.module on line 117

Although most browsers seem to get past the error and produce reasonable results, IE6 and IE7 simply truncate HTML and therefore exhibit significant rendering issues. I tested other browsers (FF2, FF3, Safari, Chrome, Konquerer) and they seem to render the page well.

There is no error after logging in.

If I set caching to 'none', there is no error, even when logged out.

It seems as if the Drupal bootstrap process skips a step for anonymous users when the site is cached and so path.inc isn't loaded when arg() is called.

CommentFileSizeAuthor
#2 cart_fatal_error.patch618 bytesneclimdul
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

crozilla’s picture

I'm getting the same caching error doing the same thing. Noticed it first on Chromium/Ubuntu. Looking for a fix, too.

neclimdul’s picture

Status: Active » Needs review
FileSize
618 bytes

Gah, very annoying indeed. Breaks rss.xml. Patch.