Coding help please

1 view
Skip to first unread message

Louise Bolotin

unread,
Oct 1, 2009, 6:29:20 AM10/1/09
to Manchester WordPress User Group
I finally got round to upgrading to WP 2.8.4, thanks to my lovely ISP
host, a one-man outfit who flicked the necessary switches on the
server for me.

However, I still need to upgrade One Click Plugin Updater, Social
Bookmarks and yaCAPTCHA using the "Upgrade all" button on the
dashboard. When I try to do this it fails because there is a coding
error on my 404 page.

The message I get says: Parse error: syntax error, unexpected T_ENDIF
in /home/louise/public_html/wp-content/themes/redie-30/404.php on line
9

The error in the line reads as follows:
<?php endif; ?>
It looks ok to me, from what I can tell by looking at other lines of
code, but obviously it's not.

I have no idea how to fix this. I will be eternally grateful for
advice and assistance and will buy a pint for whoever can sort this at
the next MWUG meeting I get to!

Louise

Simon Wheatley

unread,
Oct 1, 2009, 6:31:18 AM10/1/09
to manchester-word...@googlegroups.com
Can you paste the whole of that file into this, please, so we can see it:
http://wordpress.pastebin.com/

S
--
Simon Wheatley
Sweet Interaction Ltd
Web Interaction Design & Development
Tel: 07971 687295

WordPress blog development for Stephen Fry: http://stephenfry.com/
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

---
Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
Registered office: 7 Malton Av, Manchester, M21 8AT

Louise Bolotin

unread,
Oct 1, 2009, 6:52:57 AM10/1/09
to Manchester WordPress User Group


On 1 Oct, 11:31, Simon Wheatley <li...@simonwheatley.co.uk> wrote:
Done!

Louise
> WordPress blog development for DfID -http://blogs.dfid.gov.uk/
> House of Illustration site -http://houseofillustration.org.uk/
> Blog for the Royal Navy -http://jackspeak.royalnavy.mod.uk/

Simon Wheatley

unread,
Oct 1, 2009, 7:01:42 AM10/1/09
to manchester-word...@googlegroups.com
What was the page URL that Pastebin gave you? Sorry, should have let
you know to tell us this vital information!

S
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Simon Wheatley

unread,
Oct 1, 2009, 7:02:18 AM10/1/09
to manchester-word...@googlegroups.com
Ignore my last post... it looks like this one?

http://wordpress.pastebin.com/m2e54144d

S
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Simon Wheatley

unread,
Oct 1, 2009, 7:04:53 AM10/1/09
to manchester-word...@googlegroups.com
Replace the whole of line 9 with the following, and if the 404 pages
work then you can delete the line:
<?php // endif; ?>

It's the end of an IF statement which never began; so time is turning
in on itself, forming a blackhole and sucking WP inside out... or
something like that anyway.

S
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Louise Bolotin

unread,
Oct 1, 2009, 7:34:50 AM10/1/09
to Manchester WordPress User Group
Yes, that's the right page URL.

Replace with the following what? I don't think you gave me the
replacement code. Or am I missing something obvious here?

L.

Simon Wheatley

unread,
Oct 1, 2009, 7:35:50 AM10/1/09
to manchester-word...@googlegroups.com
Sorry. Replace line 9 with this code:

<?php // endif; ?>

If that works fine, you can delete line 9.

Does that make more sense?

S
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Louise Bolotin

unread,
Oct 1, 2009, 7:40:19 AM10/1/09
to Manchester WordPress User Group
Ok, I have replaced the borked line with your suggestion. The end
result is the same. What happens when I click on the Upgrade All
button is it takes me directly to the 404 page (as it appears as a
live WP page) but doesn't upgrade the plugins. It was doing that
before and is still doing it, with the change of code.

What now?

L.

Simon Wheatley

unread,
Oct 1, 2009, 7:43:00 AM10/1/09
to manchester-word...@googlegroups.com
We're one step forward, in that we don't have the PHP error when you
hit the 404 page. So progress is happening.

Would it be possible to take a look at the site in question? Can you
send the list a URL, please? I'd need an admin login to look into it
further, if that's OK, which you could email me off-list if you're
happy to do that. Mike Little may be willing to vouch for my integrity
if you're concerned I'm a random person from the internet.

S
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Mike Little

unread,
Oct 1, 2009, 7:45:34 AM10/1/09
to manchester-word...@googlegroups.com
Yeah, Simon's a good bloke and knows his WordPress stuff.

Mike


2009/10/1 Simon Wheatley <li...@simonwheatley.co.uk>



--
Mike Little
http://zed1.com/

Louise Bolotin

unread,
Oct 1, 2009, 8:36:50 AM10/1/09
to Manchester WordPress User Group
The URL is htpp://louisebolotin.com

Simon, I'm sending you the login stuff privately - we know enough
people in common locally that I trust you!

Louise

Simon Wheatley

unread,
Oct 1, 2009, 9:59:08 AM10/1/09
to manchester-word...@googlegroups.com
I think the issue is with the One Click Plugin Updater (OCPU in future
to save my typing fingers). The next step, I'd suggest, is to manually
update this plugin. You may then find that things work fine with the
other plugin upgrades... if not, then one option would be to
deactivate and remove the OCPU and use the built-in WP functionality
for updating plugins. Does that make sense?

You will need to know your FTP details to enter when you upgrade
plugins via the built-in updater.

I am concerned about the security of any WP installation with OCPU as
it requires the plugins directory to be writeable by the webserver.
This means that if your WordPress installation was ever "broken into"
in any way, the miscreants would be able to do far more damage as they
could create new files, alter existing files and delete files within
the plugin directory. I'd recommend against using this plugin purely
because it opens up this potential for damage. WP has made great
strides with auto-updates in the built-in functionality, so you may
find it's (nearly) as easy to use that instead.

Hope this isn't all too alarming. :S

S

Louise Bolotin

unread,
Oct 1, 2009, 10:28:17 AM10/1/09
to Manchester WordPress User Group
Thanks Simon. I've got my FTP details but I'm so clueless with the
innards of WP that I don't know how to manually update (that's why I
got my lovely ISP host to upgrade me from WP6 to WP2.8.4 at his end).
So what do I do and how?

Sorry to have so many questions! And I really appreciate the time
you've taken so far.

Louise
> WordPress blog development for DfID -http://blogs.dfid.gov.uk/
> House of Illustration site -http://houseofillustration.org.uk/
> Blog for the Royal Navy -http://jackspeak.royalnavy.mod.uk/

Simon Wheatley

unread,
Oct 1, 2009, 10:35:33 AM10/1/09
to manchester-word...@googlegroups.com
You need to deactivate OCPU, as it's hijacking the update links to
it's own functionality, then upgrade the plugins which need updating
by clicking the "upgrade automatically" link and following the
prompts:

Here's a quick screengrab with suggested instructions.
http://img.skitch.com/20091001-fqanmd938qx5fib9hxh5ine5cs.png

S


On Thu, Oct 1, 2009 at 3:28 PM, Louise Bolotin
<louise...@googlemail.com> wrote:
>
> Thanks Simon. I've got my FTP details but I'm so clueless with the
> innards of WP that I don't know how to manually update (that's why I
> got my lovely ISP host to upgrade me from WP6 to WP2.8.4 at his end).
> So what do I do and how?
>
> Sorry to have so many questions! And I really appreciate the time
> you've taken so far.
>
> Louise
>

---

Louise Bolotin

unread,
Oct 1, 2009, 11:11:13 AM10/1/09
to Manchester WordPress User Group
Thank you so much Simon. I definitely owe you a pint or two. I've
manually updated all the plugins including OCPU, but haven't
reactivated OCPU itself. I'm going to see how that goes now, and
hopefully I won't be needing more help for ages.

Cheers
Louise



On 1 Oct, 15:35, Simon Wheatley <li...@simonwheatley.co.uk> wrote:
> You need to deactivate OCPU, as it's hijacking the update links to
> it's own functionality, then upgrade the plugins which need updating
> by clicking the "upgrade automatically" link and following the
> prompts:
>
> Here's a quick screengrab with suggested instructions.http://img.skitch.com/20091001-fqanmd938qx5fib9hxh5ine5cs.png
>
> S
>
> On Thu, Oct 1, 2009 at 3:28 PM, Louise Bolotin
>

Simon Wheatley

unread,
Oct 1, 2009, 11:12:46 AM10/1/09
to manchester-word...@googlegroups.com
Don't worry too much about the pint. :) How did you find the built in
updater compared to OCPU?

S
--
Simon Wheatley
Sweet Interaction Ltd
Web Interaction Design & Development
Tel: 07971 687295

WordPress blog development for Stephen Fry: http://stephenfry.com/
WordPress blog development for DfID - http://blogs.dfid.gov.uk/
House of Illustration site - http://houseofillustration.org.uk/
Blog for the Royal Navy - http://jackspeak.royalnavy.mod.uk/

Louise Bolotin

unread,
Oct 1, 2009, 12:36:22 PM10/1/09
to Manchester WordPress User Group
A piece of cake! Now, where do I find the general plugins directory
for WP?

L.
Reply all
Reply to author
Forward
0 new messages