Ryan Steyn
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: White Screenhi sunrayshine, make sure your functions.php file in the parent theme has no white space or line breaks after the closing } tag.
Forum: Fixing WordPress
In reply to: White ScreenRE: my previous post above
That solution only seems to work for +- 24hours, found another solution which suggested the removal of white space below the closing ?> tag.Worked like a charm, if it gives me the white screen of death again after a few days I will post yet another “found” solution.
PS: the best test to see if a fix is working is to…
- try access the admin
- If you are already in the admin, preview a post
If you can accomplish both of those, you are not a sufferer of the white screen.
Forum: Fixing WordPress
In reply to: White ScreenI have had the whitescreen issue for the past few days, it occured during my attempt in getting h2 tags to live through the excerpt stripping procedure.
In my attempt I found an overall solution that made my previous excerpt length and read more links redundant so I copy and pasted the entire function with all the whistles – to cut a long story short, the issue is in the excerpt length when used as so…
<?php function string_limit_words($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) array_pop($words); return implode(' ', $words); } ?>After removing a similar snippet from my functions.php, all is back to normal.
This solution was found by a member named “clickit” about 2 years ago.