Fatal error: Call to undefined function is_active_module() in /opt/lampp/htdocs/wordpress/wp-content/themes/k2/theloop.php on line 76

找了下资料,要是我自己的,就不用这个模板了

1. If you get this error:


    Fatal error: Call to undefined function: get_option() in [...]/wp-content/themes/k2/theloop.php on line 28


To fix this, disable all the plugins that load their own version of prototype.js.


这个也太狠了··其他用了prototype的插件都得禁用


I had a slight issue with the 2.2 Wordpress upgrade. I got a “undefined function is_active_module()” from k2. The solution was to run the uninstall k2 function from its options page. Then set the theme as current and all is well.


这个搞得只有两栏目了


I solved the problem with Call to undefined function: is_active_module() and can continue using the sidebar widgets that I love.
It is not clean but, commenting the code that manages asides works.
I have commented the lines 76 to 78 in theloop.php


//if (is_home() and is_active_module(‘asides_sidebar_module’)) {
// $hide_asides = true;
//}


I noticed that I had no problem with sidebar widgets in all the other pages but home.
Now everything works smoothly. Hopefully I will have some time in this century to see how I could save asides, but I do not use them :-)
这个不知道有没有什么后遗症··


Installation


    * Copy ‘TechnoBlue’ folder to the ’styles’ folder of TripleK2
    * Go to Presentation > K2 Options
    * Select technoblue.css as the K2 Scheme
    * Click ‘Update Options’ to save

历史博文

标签:,
九月 8, 2009 at 5:12 上午 by yippee 11 次
Category: Info
Tags: ,