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) |
Jump to:
Description
I have this error when i enable liquid wiki engine. And nothing elese are happend. :(

#1
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
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
You can also avoid the bug by unsetting
Set breadcrumbs
in admin/settings/liquid
#4
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
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
We do NOT have "set breadcrumbs" enabled, and we still get this error.
...and isn't page caching an important performance feature?
#7
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
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