Hi.
I have a site that uses this module. I also have a mirror of this site in localhost.
For a long time I used version 2.6 and never had errors.
I recently updated to to version 2.7.
The site hosted on the Internet is working properly, but the mirror that is on localhost is with the following problem:
Notice: Undefined index: splash in C:\wamp\www\drupal\sites\all\modules\splash\splash.module on line 79
Notice: Undefined index: splash in C:\wamp\www\drupal\sites\all\modules\splash\splash.module on line 83
Notice: Trying to get property of non-object in C:\wamp\www\drupal\includes\path.inc on line 50
This message is displayed on every page of the site and how if it was not enough, in Internet Explorer 9.0, the layout is broken.
The two functions with errors (line 79 and line 83) are identical in both versions cited. I believe that some change in the rest of the code is causing these errors.
Any ideas?
Comments
Comment #1
madmanmax commentedSame issue here.
For the
Undefined index: splash, that should be an easy fix: just adding an extra check to make sure the index is set on line 79 and 83. For example:elseif (isset($_GET['splash']) && $_GET['splash'] == 'off')Regarding the
Notice: Trying to get property of non-objectthis issue comes from Drupal and there's a patch already submitted for this: http://drupal.org/node/908296Sorry, I'm not sure how to add a patch yet...
Comment #2
krisrobinson commentedGetting the same error, going to try #1 fix. Thanks.
Comment #3
krisrobinson commentedI'm also getting these errors for variables 'q', 'redirect' and 'time'.
Comment #4
DWARS commentedI don't understand. Where should the text "elseif (isset($_GET['splash']) && $_GET['splash'] == 'off')" be added? In splash.module? In which line?
Thanks for your help!
Comment #5
Rob_Feature commentedDitto here...2.7 seems to be totally broken. And, surely (as #1 suggests) we don't need to patch core to get this module working. Any updates on it's status?
Comment #6
aze2010 commented+
Comment #7
aze2010 commentedany solutions?
Comment #8
krisrobinson commentedI uninstalled for now, there seems to be issues with this module.
Comment #9
jimappleg8 commentedThis is the section of code I changed to eliminate the errors. It looks like on line 71, path.inc was initiated incorrectly. On lines 79 and 83, I added the isset() check to the conditional.
Starting on line 68 in the splash.module file:
Comment #10
mail@victorquinn.com commented@jimappleg8 thanks for the fix! It's committed in the latest version!