I got error in drupal6:

There is an error message frequently appear in drupal log

array_search() expects parameter 2 to be array, null given in
/var/www/drupal-6/sites/all/themes/mytheme/template.php on line 47.

how can i solve this please guide me.

Comments

=-=

where did the theme come from?
do you know what the function in template.php does?

have you looked at the code on line 47 in template.php?

have a link to your template.php file on drupalbin or pastebin?

Hi,this is a custom

Hi,this is a custom theme.

error in Line number 47 code is:
if (array_search($_GET['q'], $skip_urls) === FALSE) {
$_SESSION['prev_page_title'] = $vars['title'];
$_SESSION['prev_page_url'] = $_SERVER['REQUEST_URI'];
}

if(strpos(drupal_get_headers(), '404 Not Found') === FALSE) {
$skip_urls = array(
'modal/login', 'modal/register',
);
i am the beginner guide me.

Looks like skip urls Variable

Looks like skip urls Variable is not set.
$skip_urls = array();
Before that line should fix the problem but ask your theme developer what they are.

$skip_urls[]= 'node/5';
Will add new paths to this array FYI.

// Ayesh

Thanks

I add code here only but its not work for me.. if(strpos(drupal_get_headers(), '404 Not Found') === FALSE) {
$skip_urls = array();
$skip_urls = array(
'modal/login', 'modal/register',
);

Please try adding the array()

Remove the line that has array().
Then, move this line above the array_search line.
$skip_urls = array(
'modal/login', 'modal/register', );

// Ayesh

Thanks

Not working

Guide me(About Quiz module)

I am using quiz module in drupal7. How can i display quiz questions in Block?

I dispaly quizz questions in block using views but when i click start quiz button its goes to page. i want all

functionalities done in block only. any ideas please guide me. Thanks.

nobody click here