Skip to content

WPGet and PHP 4 now work together

I’m stupid.

No really, I am.

I’ve been notified by several people over the last few days of a problem in WPGet. It has caused some strange behaivour and difficult setup, oh, and it completely freaks out at PHP 4. If you’re getting the following error message:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /blah/blah/blah/wpget.php on line [[usually 20-something]]

Then it means you’re running WPGet under PHP 4, which unfortunately it isn’t compatible with.

Thankfully, there’s a fix! You can either do it yourself, or download a new, updated PHP 4-compatible version from me.

Fix it yourself

Simply go through and replace the word private with the word var in the configuration section (so, highlight the config section between the start pasting here and stop pasting here comments, and do a find/replace).

That’s it. Save and upload and it should work.

Get it from me

I’ve fixed both the config tool and the main script and you should be able to get the fixed copies from my site (I’ll also sync them with PHP Classes, so by the time you read this that should be done).

Unfortunately, this bug has pushed back the ultra-cool new version back a bit, but it should hopefully be released by the end of this week (no promises).

That will teach me for not testing it with PHP 4 first.

Like this post?

If you would like to support the time and effort I have put into my tutorials and writing, please consider making a donation.

Post a Comment

On some sites, you must be logged in to post a comment. This is not the case on this site.
Your email address is not made public or shared. Required fields are marked with *.
*
*
*

Posting a comment signifies you accept the privacy policy.
Please note — your comment will not appear straight away, as all comments are held for approval.