I am getting these errors on creation of a comment:

warning: Illegal offset type in isset or empty in /home/mapi/hightideclan.com/includes/path.inc on line 65.
warning: Illegal offset type in /home/mapi/hightideclan.com/includes/path.inc on line 70.

What is causing it ?

Comments

Mapi99’s picture

Project: Path » Floating Windows
Version: » 6.x-1.2-beta1

Floating windows is causing this error to appear when creating a new comment

Mapi99’s picture

Anyone have an idea what might cause this?

skilip’s picture

Hey Mapi99,

Are you sure this is caused by floating windows? Can you tell me more about when the error occurs? The error comes from drupal_lookup_path().

Mapi99’s picture

When i comment with this module turned off everything is normal, as soon as i turn it on and make a comment with floating windows active i get those errors.
There seems to be some references to path in the floating windows code tough? maybe something is interfering?

skilip’s picture

StatusFileSize
new752 bytes

I'm not sure but it could be caused by float_window_access_window() in which drupal_get_path_alias() is called. Probably $_GET['q'] isn't set when your error occurs.

Could you try this patch?

Mapi99’s picture

warning: Illegal offset type in isset or empty in /home/mapi/hightideclan.com/includes/path.inc on line 65.
warning: Illegal offset type in /home/mapi/hightideclan.com/includes/path.inc on line 70.

The error still occurs, i should also note that theres a function float_window_add_path that might interfere?

skilip’s picture

I'd really much like to help you out with this issue. I've tried to reproduce this error on my local Drupal installation. I've created several floating windows with several configurations, but I can't get the error you are experiencing when submitting a comment. Couldn't it be caused by a combination of float_window and another module? Have you tried to disable other modules?

Are you running the site live? Do you have an url? We could also meet on IRC, so we could do debugging steps together.

All the best!

Mapi99’s picture

that would be great, the url is http://hightideclan.com and if you would like to meet on IRC tell me what times you are on and ill hop on

skilip’s picture

Beautiful site!!! Could we meet on IRC this evening? I see you're also living in the Netherlands, so we're in the same time zone. Ill be around from 20:00.

skilip’s picture

Hey Mapi,

Maybe it has got something to do with float_window's submit callback. Could you try again after removing this line?

  $form['#submit'][] = 'float_window_all_submit';

It's somewhere near line 536.

Mapi99’s picture

Removed it and it no longer gives the error! Thanks

YurkinPark’s picture

Version: 6.x-1.2-beta1 » 6.x-1.0

when use logintobbogan module -we have module conflicts while user register operation.
logintobbogan generates code like
$form_state['redirect'] = array('path' = 'user/44', 'query' => NULL, 'fragment' => NULL);
at logintobbogan.module, line 403.
And float_window do wrong operation after
$_SESSION['float_window_all'][$form_state['values']['form_id']]["redirect"] = url($form_state['redirect']);
float_window.module, line 545

YurkinPark’s picture

StatusFileSize
new740 bytes

try this patch for solve problem

YurkinPark’s picture

Status: Active » Needs work