×
Blue Eagle 5 v1.5.5 has been Released (22 Nov 2020)

The Kunena team has announce the arrival of Kunena template Blue Eagle 5 v1.5.5 which is now available for download. This version addresses most of the issues that were discovered in development.

× If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

K 2.0 support will cease on 31 August 2013 and this section of the forum will be closed and archived after that time and no further questions will be answered about this version.

Question preg_match() expects parameter 2 to be string array given

More
6 years 10 months ago - 6 years 10 months ago #1 by tbganesha
Firstly, I'd like to say sorry because the topic should be posted in Kunena 2.0 category.

I'm still using kunena 2.04 because it's the latest version available for Joomla 1.5

I get many PHP Warnings in the error log :
PHP Warning: preg_match() expects parameter 2 to be string, array given in ../administrator/components/com_kunena/libraries/route/route.php on line 307

The snippet around line 307 in route.php :
foreach (JRequest::get( 'get' ) as $key=>$value) {
if (preg_match('/[^a-zA-Z]/', $key)) continue;
if ($key == 'q' || $key == 'searchuser') {
// Allow all values
} elseif (preg_match('/[^a-zA-Z0-9_ ]/i', $value)) {
// Illegal value
continue;
}
$get[$key] = $value;
}

How to solve the problem ? Thanks.
Last edit: 6 years 10 months ago by tbganesha.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #2 by sozzled

tbganesha wrote: How to solve the problem ? Thanks.

Simple solution: migrate to J! 3.2 and use K 3.0.4 because,

(a) J! 1.5 is not supported by anyone; and

(b) we do not answer questions about K 2.0.4 on this forum.
Last edit: 6 years 10 months ago by sozzled.

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.088 seconds