Not sure if it is just us but we started working with liquid and it is working great about 95% of the time but about once every 1-2 weeks it throws a fatal error and drops the site. Usually all it takes is reloading it and it works fine again for another 1-2 weeks just wondering if there is anyway to avoid this. Considering the fatal error makes the site unusable to anyone till it is fixed it would be nice to have a perment fix to the issue.
The error reports as follows:
Fatal error: Call to undefined function: arg() in /homepages/44/d157584041/htdocs/drupal-4.7.0/modules/liquid/liquid.module on line 116
Comments
Comment #1
BlackCaT-1 commentedPertains to :
/*
* Implementation of hook_init.
*/
function liquid_init() {
// set breadcrumb, if appropirate
if (variable_get(PREF_LIQUID_SET_BREADCRUMB, LIQUID_SET_BREADCRUMB_DEFAULT))
if (/*arg(0) == 'node' && */(is_numeric(arg(1)) || is_numeric(arg(2)))) {
$nid = is_numeric(arg(1))?arg(1):arg(2);
Comment #2
moshe weitzman commentedarg() is not available during the bootstrap. this code should do a function_exists('arg') before using it in init hook. this will be experienced only when page cachcing is enabled.
Comment #3
sorenp commentedThis has been fixed in the dev-5.1 version (not the release)
Thanks for pointing it out!
Comment #4
(not verified) commented