I recently updated to the latest dev version, and I got a white screen after the update. All pages I try to go to are blank. Luckily, I can get to the admin side of the site. which gives me this error:
Notice: Undefined variable: block in mobile_tools_block_view() (line 176 of /var/www/clients/client2/web2/web/sites/all/modules/mobile_tools/mobile_tools.module).
If I remove the Mobile Tools message block, the site goes back to normal, but I do see that above message on every page. On the mobile tools configuration page, I have this for 'On the Mobile site': <a href="http://www.wildroselibrary.org?nomobile=true">View Full Site</a>
and, <a href="http://m.wildroselibrary.org?nomobile=false">View Mobile Site</a> for 'On the desktops site'.
Did I mess up something there? Or, is there maybe something else?
Thank you for your time.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | block_array_notice-1246500-3.patch | 391 bytes | minoroffense |
| #2 | undefined-variable-block-1246500-2.patch | 566 bytes | ramlev |
Comments
Comment #1
troybthompson commentedI'm having the same problem. Haven't figured it a workaround yet.
Comment #2
ramlev commentedThe problem is that if the $block variable wasn't set initially, and there throws a notice.
My patch will fix the problem.
Comment #3
minoroffense commentedThe patch works, but I just wanted to clear out the extra bit about the extra line space.
Here's a new patch with just the block array fix.
Thanks a lot, super appreciated!
Comment #4
minoroffense commentedCommitted
Comment #5
georgedamonkey commentedI recently updated to 7.x-2.0-unstable, and I'm still getting a white screen when adding the mobile tools block.
Comment #6
minoroffense commentedThe white screen isn't related to the PHP notice described in this issue. There's more likely another bug. Probably an undefined function or something along those lines.
Can you open a new issue and include some log messages?
Comment #7
georgedamonkey commentedOh, yeah, I can do that. What's the best log file for me to find that information? The apache error log?
Comment #8
minoroffense commentedYup