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.

Comments

troybthompson’s picture

I'm having the same problem. Haven't figured it a workaround yet.

ramlev’s picture

StatusFileSize
new566 bytes

The problem is that if the $block variable wasn't set initially, and there throws a notice.

My patch will fix the problem.

minoroffense’s picture

Assigned: Unassigned » minoroffense
Status: Active » Reviewed & tested by the community
StatusFileSize
new391 bytes

The 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!

minoroffense’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed

georgedamonkey’s picture

I recently updated to 7.x-2.0-unstable, and I'm still getting a white screen when adding the mobile tools block.

minoroffense’s picture

The 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?

georgedamonkey’s picture

Oh, yeah, I can do that. What's the best log file for me to find that information? The apache error log?

minoroffense’s picture

Yup