•Notice: Use of undefined constant full_html - assumed 'full_html' in __lambda_func() (line 1 of /home/jixutuan/www/sites/all/modules/geshifilter/geshifilter.pages.inc(127) : runtime-created function).
•Notice: Use of undefined constant full_html - assumed 'full_html' in __lambda_func() (line 1 of /home/jixutuan/www/sites/all/modules/geshifilter/geshifilter.pages.inc(232) : runtime-created function).
.

I tried to change line 127 of geshifilter.pages.inc from

 $text = preg_replace_callback($pattern, create_function('$match', "return _geshifilter_prepare_callback(\$match, $format);"), $text);

to

 $text = preg_replace_callback($pattern, create_function('$match', "return _geshifilter_prepare_callback(\$match, '$format');"), $text);

, that is, to enclose $format in quotes. The first error disappears.

Line 132, 137 and 232 may need such change too.

CommentFileSizeAuthor
#1 1020856_2.patch2.24 KBmariusz.slonina

Comments

mariusz.slonina’s picture

StatusFileSize
new2.24 KB

quick patch

mariusz.slonina’s picture

Status: Active » Needs review
nicholasthompson’s picture

Status: Needs review » Reviewed & tested by the community

I wish I'd checked before I committed a patch! ;-)
#1023530: Fixes for hook_process and preg_replace_callback error fixes
Thats mine - it also includes a fix for the hook_process issue.

soxofaan’s picture

Status: Reviewed & tested by the community » Closed (fixed)

committed: http://drupal.org/cvs?commit=480218

thanks for patching and testing guys!