hi
i have me make a field who i can highlight code with codefilter. all was working fine. but now with the new 6.x-1.x-dev, xxxx-xx-xx i read and see only "Array" in the field. the same is when i try to highlight the code with php tags. i´m in use of PHP 5.2.13

CommentFileSizeAuthor
#3 codefilter_1019194_3.patch1.19 KBAnonymous (not verified)
0543256346457.gif1.45 KBeule

Comments

Anonymous’s picture

Title: only array to see » Only 'Array' is output

I'm also experiencing this issue. I upgraded to the dev version on my Atrium site to fix spacing issues with codefilter and now all that's being output is 'Array'...

Anonymous’s picture

It seems this is the only major change to codefilter that could have caused this bug: #890622: Remove the use of /e (Completely broke Codefilter module in D6!)

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Ok, I think I found the issue. I believe it's something to do with the argument passed to the different callback functions...

I don't know much about regular expressions or preg_replace_callback() functions, but from what I read and tested, this patch seems to have fixed it.

duntuk’s picture

Thanks, the patch worked.

crystaldawn’s picture

Status: Needs review » Needs work

This patch does NOT work correctly. If you have NOTHING above the <?php tag, then the "array" word shows up again. But as soon as I placed some verabage above it, the highlighting worked fine.

Marko B’s picture

I am having the same problem in DEV version.

jennifer.chang’s picture

Priority: Major » Critical

codefilter does not work at all.

Marko B’s picture

jcisio’s picture

Status: Needs work » Closed (duplicate)