Skip to primary content
Skip to secondary content

Joe's Jottings

Being the homepage and blog of Joe…

Joe's Jottings

Main menu

  • About Me
  • Writing….

Tag Archives: postmeta

A WordPress bug and a quick fix!

Posted on October 26, 2009 by Joe
Reply

wordpressHere’s a quick hint for anyone who’s had the ‘can’t access empty property’ or ‘unknown property’ error in a WordPress Plugin (or the core WordPress installation) , here’s a quick fix to try before starting to tear your hair out.  The error manifests itself with messages such as ‘Cannot access empty property in … ‘ or some similar wording.  

As you might gather from the fact that I’m posting this, I experienced it this afternoon whilst doing some maintenance work on anpther Blog… I experienced it in an add-on, so it wasn’t the end of the world, but it has been reported at log on, normal Blog viewing and on installation.

Anyway…the fix.  basically, the problem is to do with a flakey entry in either the X_usermeta or the X_postmeta tables (where X is the database prefix of your WordPress installation, usually ‘wp’).  To fix the problem, you need to be able to access the database tables with a tool like phpmyadmin.  If you’ve no idea what I’m talking about, then this fix is not for you and you would be best to seek the assistance of a more experienced colleague.

These two tables store data for various WordPress functions, in the form of ‘name / value pairs’ – each record has a field for what is effectively a variable name and a value.   The ‘name’ field is meta_key in both the tables.  the error is generated when a record has a blank in this field.  To fix the problem, search through the records and locate records with the meta_key field is blank.  Delete these records and that should cure the problem.

In teh words of Aleksander Meerkat – Simples!

Posted in Software Development, Technology, Wordpress | Tagged empty property, postmeta, unknown property, usermeta | Leave a reply

Most Recent Posts

  • Warning – Inner work taking place…
  • Greater love hath no man…
  • Facebook makes you miserable…
  • And so in to 2017
  • Memories of a Sunday afternoon

Blog Categories

  • Blogs and Blogging (26)
  • Christianity (23)
  • Community Building (19)
  • education (2)
  • Entertainment (5)
  • Entrepreneur Issues (25)
  • environment (4)
  • Film (2)
  • humour (11)
  • Literature (22)
  • Management (6)
  • Music (10)
  • Online Communities (18)
  • Personal and Group Networking (19)
  • Personal Development (53)
  • Personal Stuff (294)
  • philosophy (51)
  • Politics (74)
  • Privacy Issues (24)
  • psychology (52)
  • Radio (5)
  • Science (6)
  • Science Fiction (12)
  • Social Media (11)
  • Software Development (52)
  • Technology (95)
  • The Media (75)
  • Uncategorized (20)
  • Wordpress (8)
  • Writing (1)

Archives

  • May 2018 (1)
  • January 2017 (3)
  • December 2016 (9)
  • November 2016 (17)
  • November 2015 (1)
  • October 2015 (7)
  • June 2013 (1)
  • February 2013 (1)
  • December 2012 (8)
  • August 2012 (4)
  • July 2012 (8)
  • June 2012 (8)
  • May 2012 (7)
  • April 2012 (9)
  • October 2011 (3)
  • September 2011 (1)
  • July 2011 (1)
  • June 2011 (4)
  • May 2011 (2)
  • March 2011 (2)
  • February 2011 (3)
  • January 2011 (2)
  • December 2010 (7)
  • November 2010 (4)
  • October 2010 (3)
  • September 2010 (7)
  • August 2010 (6)
  • July 2010 (8)
  • June 2010 (9)
  • May 2010 (13)
  • April 2010 (19)
  • March 2010 (31)
  • February 2010 (29)
  • January 2010 (33)
  • December 2009 (17)
  • November 2009 (18)
  • October 2009 (24)
  • March 2009 (1)
  • February 2009 (2)
  • September 2008 (1)
  • July 2008 (3)
  • June 2008 (6)
  • May 2008 (5)
  • April 2008 (6)
  • March 2008 (17)
  • February 2008 (7)

Tags

  • abuse
  • adding HTML code
  • apple
  • ASP.NET
  • astronomy
  • BT
  • censorship
  • Chrome
  • civil disobedience
  • civil liberties
  • coalition
  • concorde
  • conspiracy
  • ecology
  • ethics
  • facebook
  • Firefox
  • general election
  • george orwell
  • google
  • hillsborough
  • IE7
  • Illuminati
  • ipad
  • jupiter
  • links
  • mobile
  • morality
  • New Labour
  • Olympics
  • PHP
  • Politics
  • pond
  • privacy
  • routing failure
  • search
  • social media
  • stephen fry
  • template
  • Thoreau
  • time management
  • twitter
  • walden
  • wikileaks
  • Wordpress
Proudly powered by WordPress