Fatal error: Call to undefined function: arg() in modules/liquid/liquid.module on line 116

oczykota - September 5, 2006 - 10:19
Project:Liquid Wiki Engine Project
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:sorenp
Status:postponed (maintainer needs more info)
Description

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

#1

oczykota - September 6, 2006 - 10:57

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.

#2

oczykota - September 6, 2006 - 20:08

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.

#3

jonhattan - October 6, 2006 - 12:14

You can also avoid the bug by unsetting

Set breadcrumbs

in admin/settings/liquid

#4

gmak - October 19, 2006 - 16:06

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.

#5

jhutchins - November 21, 2006 - 15:46

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.)

#6

jhutchins - November 21, 2006 - 15:52

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

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

#7

fractile81 - February 1, 2007 - 21:55
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.

#8

sorenp - February 8, 2007 - 22:11
Priority:critical» normal
Assigned to:oczykota» sorenp
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

 
 

Drupal is a registered trademark of Dries Buytaert.