I have this error when i enable liquid wiki engine. And nothing elese are happend. :(

Comments

Luna Vulpo’s picture

I have this error. I try cheange art() to argv() or $_SERVER["argv"] but this don't work. I seem that this funkction is called when no urser are login. When i login to site this error disapire.

Luna Vulpo’s picture

I made new function argXX() and copy body of arg() funkcion And also cheange all call funkcion arg() to argXX(). I fix this problem but i thing its not clean solution.

jonhattan’s picture

You can also avoid the bug by unsetting

Set breadcrumbs

in admin/settings/liquid

gmak’s picture

I've had the same problem. I think the problem is related to page caching and may be similar to problems here:
http://drupal.org/node/62942

If you turn off page caching, it all seems to work.

jhutchins’s picture

We get the same error on the drupal root (http://hostname.com/drupal/), but if there's any argument to the URL it seems to work fine. (http://hostname.com/drupal/index.php works.)

jhutchins’s picture

We do NOT have "set breadcrumbs" enabled, and we still get this error.

...and isn't page caching an important performance feature?

fractile81’s picture

Status: Active » Needs review

If you change line liquid.module:116 to read the following, it'll work:

    if (function_exists('arg') && arg(0) == 'node' && (is_numeric(arg(1)) || is_numeric(arg(2)))) {

All that's added is a simple check to see if the function 'arg' exists before it's used. This will suppress these error messages, but I'm not sure if this is the best solution.

sorenp’s picture

Assigned: Luna Vulpo » sorenp
Priority: Critical » Normal
Status: Needs review » Postponed (maintainer needs more info)

I'm not sure that it's a good solutions since the menus won't be generated in that way.

I have not been able to reproduce the error with the latest version of liquid.

Could you please make sure that this is still a problem in the 5.1 version?

If it is, could you provide me with detailed info on how to reproduce the problem?

Best regards, Soren