I'm a new to drupal. I hope someone can help me. My website ran good until I deleted all themes which were not enable to use. Here is the error message:

Fatal error: Call to undefined function art_navigation_links_worker() in /...mywebsite.../sites/all/themes/wilderness/block-navigation.tpl.php on line 2

It failed to open stream in includes/theme.inc line 155 (include_once './'. $theme->owner;):

// Initialize the theme.
if (isset($theme->engine)) {
// Include the engine.
include_once './'. $theme->owner;

$theme_engine = $theme->engine;
if (function_exists($theme_engine .'_init')) {
foreach ($base_theme as $base) {
call_user_func($theme_engine .'_init', $base);
}
call_user_func($theme_engine .'_init', $theme);
}
}

Even I put back all those deleted themes, the error still exsits. Which table in database has the themes' info?

Comments

mshepherd’s picture

Are you able to put the missing themes back?

dev213’s picture

I already put them back, but the error still exsits.

WorldFallz’s picture

Try clearing the cache (admin/settings/performance).

dev213’s picture

The problem is that I can't login now. Is it another way I can clear the cache? Here is the link to my website for school http://www.ovmsscioly.org/science_olympiad/

WorldFallz’s picture

Use phpmyadmin or other db tool and empty (not delete) the cache* tables.

dev213’s picture

Thanks for the help! After I cleared the cache, it enables me to login. Then I went to theme and found that the Wilderness theme is not enabled. It might be removed enabled after I deleted other themes. Always happy to learn!

jubobecker’s picture

I am getting the same error 'Fatal error: Call to undefined function art_navigation_links_worker in themes\paradise\block-navigation.tpl.php on line 2'

I cleared the cache but still get the same error. I haven't deleted any themes but got this error trying to get my site to work with my host.

Any suggestions?

dev213’s picture

Did you clear the cache from database? Have you tried to restart your machine or clear your web brower cache? Can you login the admin page? If it is, check the theme and make sure enable the theme you want.

dev213’s picture

Is it ok to delete theme files directly?

mshepherd’s picture

You probably should avoid deleting core themes as they'll get recreated next time you update Drupal anyway! But for contributed themes, you should have no trouble deleting them as long as they're not enabled and not set to default - and not selected as the administration theme.

dev213’s picture

Since I deleted the core themes, I added them back from my other project.