Viglink

Author Topic: [Tip/Trick]  White screen of death after 2.0.7 update? Try this!  (Read 6024 times)


0 Members and 1 Guest are viewing this topic.

February 08, 2014, 04:49:22 PM

Offline Brian

  • Administrator
  • Jr. Member
  • *
  • Posts: 49
  • Country: us
  • Karma: 0
    • View Profile
[Tip/Trick] White screen of death after 2.0.7 update? Try this!
« on: February 08, 2014, 04:49:22 PM »

(Register to disable this ad!)
The new SMF 2.0.7 update fixes a lot of bugs, but on some sites, it also causes the 'white screen of death' accessing the package handler when your running an older version of PHP. If you installed the 2.0.7 update and are having problems, try this quick fix.

Open /Sources/Class-Package.php

Find (line 575 or so):
Code: [Select]
		// Translate all the entities out.
$data = strtr(preg_replace_callback('~&#(\d{1,4});~', create_function('$m', 'return chr("$m[1]");'), $data), $trans_tbl);

Replace with:
Code: [Select]
		// Translate all the entities out.
$data = strtr(preg_replace('~&#(\d{1,4});~e', "chr('\$1')", $data), $trans_tbl);

That should get the package handler past the white screen of death.
« Last Edit: July 01, 2014, 10:28:05 PM by Brian »

July 01, 2014, 10:26:03 PMReply #1

Offline Brian

  • Administrator
  • Jr. Member
  • *
  • Posts: 49
  • Country: us
  • Karma: 0
    • View Profile
Re: White screen of death after 2.0.7 update? Try this!
« Reply #1 on: July 01, 2014, 10:26:03 PM »
Note: This was fixed in the SMF 2.0.8 update. If you installed the 2.0.7 update and experienced the 'white screen of death', just apply the above fix, then download and apply the 2.0.8 update. You'll see an error message for the edits in the /Sources/Class-Package.php file - just ignore it since the change was already applied to that line.

HostGator
Use SMFHELP25OFF for 25% off!