Notice: Use of undefined constant PREG_CLASS_CJK - assumed 'PREG_CLASS_CJK' in SearchApiHighlight->__construct() (line 28 of .../search_api/includes/processor_highlight.inc).

I have search core module disabled, which defines this define. Prob need an if (!is_defined(...) or such

Comments

drunken monkey’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB

Thanks for spotting this, a stupid mistake. I'm pretty sure I was aware that I needed to change that before committing, but I must have forgotten before I got round to it.

Anyways, patch attached which should solve this.

drunken monkey’s picture

Title: Notice: Use of undefined constant PREG_CLASS_CJK - assumed 'PREG_CLASS_CJK' in SearchApiHighlight->__construct() » Fix use of core search constant
Component: Documentation » Plugins
gmclelland’s picture

Applied the patch and the error went away for me. I don't know enough about this to set it to RBTC.

drunken monkey’s picture

Status: Needs review » Fixed

Great, thanks for testing!
Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.