Why do these errors appear on my wordpress site? [closed]

It is likely a callback function for something. My guess is that somewhere something is trying to use a function named mytheme_admin_bar_render as a callback but that function has not been defined. Something like… add_filter(‘something’,’mytheme_admin_bar_render’); … possibly but there are many, many possibilities. grep your wp-content folder for mytheme_admin_bar_render, or use an IDE that can … Read more

403 Forbidden error nginx

Issue was resolved by commenting the code that was requesting the jquery file from www.jquerye.com site. But as that site is expired the jquery link too which was giving 403 Forbidden error. I found that piece of code in themes/themename/framework/functions/init.php file with cURL requests. I have commented the last line which was adding to wp_head … Read more

When sorting WP_List_Table, table sorts, but I also get SQL errors

the part ORDER BY $orderby $order LIMIT get translated to ORDER BY asc LIMIT, the columnname that supose to be in $orderby is missing, and there for the sql fail. looks like you want your default value to be ‘title’ $orderby = (isset($_REQUEST[‘orderby’]) && in_array($_REQUEST[‘orderby’], array_keys($this->get_sortable_columns()))) ? $_REQUEST[‘orderby’] : ‘title’; may geuss is that in_array() … Read more

Parse error:syntax error [closed]

use single quotes outside of the following statement, why you are getting this error because you are using double quotes for class attribute “</span><span class=”meta-sep”>|</span>” and also wrapping it in double quotes. replace this “</span><span class=”meta-sep”>|</span>” with ‘</span><span class=”meta-sep”>|</span>’ or vice versa “</span><span class=”meta-sep”>|</span>” <?php the_tags( ‘<span class=”tag-links”><span class=”entry-utility-prep entry-utility-prep-tag-links”>’ . __(‘Tagged ‘, ‘your-theme’ ) … Read more

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 ); });

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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)