Removed plugin generating error message

The approach in the answer by Scuba Kay is technically possible but easy to get wrong. Small mistakes will cause the data to fail to unserialize correctly. You are better off “editing” the serialized data with PHP: $str=”a:4:{i:0;s:23:”bandpress/bootstrap.php”;i:3;s:56:”posts-from-single-category-widget/post_from_category.php”;i:4;s:15:”something else “;i:5;s:68:”syntax-highlighter-with-add-button-in-editor/syntaxhighlighterpp.php”;}”; // copies from database $strar = unserialize($str); var_dump($strar); // find the key in the var_dump … Read more

Error when setting cookie

You set the cookie too late. You can use any action before template_include to set a cookie, after that there is already HTML output, and no further headers can be set. Example: add_action( ‘template_redirect’, function() { setcookie( ‘test’, 1 ); });

Custom Post Type and Breadcrumbs Conflict

Your custom post type matches the conditional is_single(), so this part is trying to output the category the post is assigned to, which I’m assuming doesn’t exist: if (is_category() || is_single()) { $category = get_the_category(); $crumbs .= ‘<span typeof=”v:Breadcrumb”><a rel=”v:url” property=”v:title” href=”‘.get_category_link($category[0]->cat_ID).'”>’.$category[0]->cat_name.'</a></span>’; } either check if $category contains a category, or change is_single to just … Read more

Fatal Error: get_header();

You can’t load template files directly. WordPress is not loaded in that context, so you have no access to its functions. Create a page in WordPress admin, and assign your template to that page, then point your link to that page rather than directly to the template file.

Function Error after WP Upgrade to 3.9.1

You should contact the plugin author, because plugin support is generally off topic on this site. But … I got curious, peeked into the plugin code and found this line: add_action( ‘wp_head’, array(‘dc_jqverticalmegamenu’, ‘header’) ); where the header() method is assumed static, but it’s not: function header(){ // … } That’s why this strict notice … Read more

Internet Explorer cannot display the webpage

The problem doesn’t actually occur with IE only, it only breaks page in IE. Your pages have circular 301 redirect between shortlink and permalink URLs — http://kyl.fi/ajankohtaista/ sends browser to http://kyl.fi/?p=16, which sends browser to ttp://kyl.fi/ajankohtaista/ and the circle have closed. Other browsers just decide to ignore this, ditch stupid redirect and show page anyway. … Read more

require_once() error after moving WordPressto another server

Look towards the end of your wp-config.php file, you should have the definition for ABSPATH looking something like: /** Absolute path to the WordPress directory. */ if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . “https://wordpress.stackexchange.com/”); If it’s a static path instead of the code above, then this might not correspond to your current path. Either change … Read more