Warning: Compilation failed ...

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
msdq
Posts: 13
Joined: Thu Apr 29, 2004 7:27 pm

Warning: Compilation failed ...

Post by msdq »

Hello

I have installed version 1.3.10 in Arabic language
When I run search for any word it result the following

Code: Select all

Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/inc/functions.php on line 1016

Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/inc/functions.php on line 1017
What is that could be for, and wht to do ...!!?

Thanks ..
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this should be fixed in the next release 1.3.15!

If you want the fix posted here, just answer me.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
msdq
Posts: 13
Joined: Thu Apr 29, 2004 7:27 pm

Post by msdq »

I will appreciate if you post the fix here …

Regards,
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the two lines 1016 and 1017 have to be changed into this:

Code: Select all

            $thema = preg_replace('/(((href|src)="[^"]*)?'.$begriff.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $thema);
			$content = preg_replace('/(((href|src)="[^"]*)?'.$begriff.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
msdq
Posts: 13
Joined: Thu Apr 29, 2004 7:27 pm

Post by msdq »

It works fine now ,

But when I click on the search results (url) I got this message ,,

Code: Select all

Warning: Compilation failed: invalid UTF-8 string at offset 22 in /mypath/artikel.php on line 89
Regards ,,
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you have to change the line 89 into this:

Code: Select all

    $content = preg_replace('/(((href|src)="[^"]*)?'.$highlight.'(?(1).*"))/mies', "highlight_no_links(\"\\1\")", $content);
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
msdq
Posts: 13
Joined: Thu Apr 29, 2004 7:27 pm

Post by msdq »

Thank you,

great Job :)

Regards,
Post Reply