WordPress

WordPress is a great tool to use if you want a configurable website without doing the coding yourself, there are though a few caveats:

  • Using odd themes can lead to problems, example of such an issue
  • Problem - site not working

    Investigation -PHP Fatal error: Cannot use object of type WP_Error as array in /var/www/vhosts/domain.com/htdocs/blog/wp-content/themes/Castle/core/admin.php on line 249
    It seems that line 248 is looking for updates however the theme author site is down www.themes.com):

    Fix -
    Enabled the default theme to help investigation:

    USE database_x
    UPDATE wp_options SET option_value = 'twentyten' WHERE option_name = 'stylesheet';
    UPDATE wp_options SET option_value = 'twentyten' WHERE option_name = 'current_theme';
    UPDATE wp_options SET option_value = 'twentyten' WHERE option_name = 'template';