Forum Replies Created

Viewing 13 replies - 301 through 313 (of 313 total)
  • I believe I have the solution to this issue. Unlike other php aps I’ve used, WordPress 2.5.x upwards seems to require UNIX carriage returns. Hence, if you edit a file on your PC or your Mac, it will have a Mac or PC style carriage return in the file, and this will completely break it.

    The only way I’ve found to solve this issue is to use a text editor (like TexEdit Plus on the Mac) which allows you to convert all the carriage returns back to UNIX carriage returns when you’ve finished editing.

    Note that when I first encountered this issue, I could not install WordPress 2.5.x upwards at all. However, since I figured this out, I’ve been able to run my blog for 2 months now without a single blank screen.

    Thread Starter ljmac

    (@ljmac)

    For the benefit of the authors of WordPress, here’s the PHP error I’m getting in 2.5/2.6 again:

    2.5.1:

    PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [URL removed for security reasons]/wp-admin/includes/media.php on line 154

    2.6:

    PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [URL removed for security reasons]/wp-admin/includes/media.php on line 197

    As you can see, they both produce the same error – it’s just on a different line (presumably due to this file growing in 2.6).

    Well, I’ve been messing around with 2.5, 2.5.1 and the just released 2.6, and no matter what I do, when I try to install any of them, I get the same blank screen and the same PHP error from /wp-admin/includes/media.php.

    However, I noticed 2.3.3 and earlier didn’t have this file, so I decided to try installing it. Voila! It works!

    So I was obviously installing it correctly, but there is clearly a serious bug in the code of /wp-admin/includes/media.php (from WordPress 2.5 upwards).

    As this file relates to the new admin interface, it explains why some people are getting blank admin screens after upgrading to 2.5 and later, while other people (like me) simply can’t install it in the first place.

    I am going to need some very serious convincing that this bug has been fixed before I even consider “upgrading” to a newer WordPress version.

    Well, I’ve been messing around with 2.5, 2.5.1 and the just released 2.6, and no matter what I do, when I try to install any of them, I get the same blank screen and the same PHP error from /wp-admin/includes/media.php.

    However, I noticed 2.3.3 and earlier didn’t have this file, so I decided to try installing it. Voila! It works!

    So I was obviously installing it correctly, but there is clearly a serious bug in the code of /wp-admin/includes/media.php (from WordPress 2.5 upwards).

    As this file relates to the new admin interface, it explains why some people are getting blank admin screens after upgrading to 2.5 and later, while other people (like me) simply can’t install it in the first place.

    I am going to need some very serious convincing that this bug has been fixed before I even consider “upgrading” to a newer WordPress version.

    How many people have to encounter this problem before it’s fixed? I’m currently uploading 2.3.3 – hopefully that will work!

    Thread Starter ljmac

    (@ljmac)

    Just tried installing 2.6. I’m getting exactly the same error, but now it’s on a different line (197):

    PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [URL removed for security reasons]/wp-admin/includes/media.php on line 197

    The consistency and repeatability of this error points to a very specific issue, which really ought to be solvable.

    Thread Starter ljmac

    (@ljmac)

    If you do know of other people who have logged PHP errors in relation to this issue, please point me to them, as it will help me to figure out exactly what is going on!

    And the “blank screen of death” isn’t just an install issue – people are getting locked out of their admin screens, which is obviously an extremely serious problem. The thing they all seem to have in common is that they’ve upgraded to 2.5.1 (after installing successfully with an earlier version), so I stroingly suspect this is a bug that has crept in to 2.5.1 (perhaps, as my PHP error indicates, a syntax error in /includes/media.php).

    Thread Starter ljmac

    (@ljmac)

    The fact that so many people have had this problem and still nobody knows exactly what’s causing it is pretty scary.

    The PHP error I’ve logged may be the root cause of the problem, or it may be a symptom of the problem (which would explain why other people have found different solutions). Whatever the case, it is the most substantive piece of information I’ve been able to find on the issue so far, so it should be a good starting point for finding a solution to this obviously very serious issue.

    Thread Starter ljmac

    (@ljmac)

    Yes, I am trying to install 2.5.1.

    The “blank sreen of death” is an error a lot of people have seen before – I’m just the first person who has been able to pull the error that’s causing it out of PHP’s error logs (it seems everyone else who has experienced this problem doesn’t know how to set up PHP error logging).

    I will consider your offer, but I’m a little uncomfortable with allowing somebody else to do this for obvious security reasons. I’m not saying I don’t trust you of course, but as an experienced webmaster I’m pretty paranoid about security. And I do know my way around this kind of thing.

    Thread Starter ljmac

    (@ljmac)

    Did that too – still no dice.

    Thread Starter ljmac

    (@ljmac)

    I already tried that, but it didn’t work.

    Besides, what you say is incorrect anyway: this file actually has 518 lines!

    As this thread is marked “resolved”, I’ve started another one with my own experience of this issue. I actually have the relevent PHP error:

    PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [URL removed for security reasons]/wp-admin/includes/media.php on line 154

    Now surely somebody must be able to figure out what’s going on here? Clearly I’m not the only person experiencing this issue, so this looks likes a major bug to me.

    Thread Starter ljmac

    (@ljmac)

    Surely somebody must know what’s going on here? I’ve given very specific and detailed information as to what the error is – all I need to know is what’s causing it, so I can fix it!

    I need to get this blog up and running soon, so if I can’t get a solution to this issue I will have no choice other than to use different software.

Viewing 13 replies - 301 through 313 (of 313 total)