theme.inc error message
cm1967 - March 21, 2009 - 16:43
Hello,
I had about 20 themes in my themes folder that I wasn't using so I decided to delete them. Once I did this, I started getting the following error:
* warning: include_once(./) [function.include-once]: failed to open stream: No such file or directory in /home/cm1967/cmccullough.net/www/html/includes/theme.inc on line 155.
* warning: include_once() [function.include]: Failed opening './' for inclusion (include_path='.:/usr/local/lib/php') in /home/cm1967/cmccullough.net/www/html/includes/theme.inc on line 155.
I went to the file themes.inc to see if I could see what could be causing this error but failed to figure it out. Has anyone seen this before?
Thanks

errors
Have you tried manually running cron? If that doesn't work I would try running update.php
thanks for the reply. how
thanks for the reply. how would i run cron?
i ran cron and update.php and
i ran cron and update.php and now things are actually worse (or appear to be). i'm receiving the same error but just many more lines of the same error.
thanks for the help.
how did you uninstall the themes
Did you delete the themes from your directory? I wonder if the database still reflects the themes that are not actually there. Do you know how to run webmin or better yet phpmyadmin?
hmmm.....i do know how to run
hmmm.....i do know how to run webmin but i don't think i can do that on my host. i'm not hosting the site on a local machine, it's on my host. i may have to email the host and ask if i'm allowed to run this.
oh, and yes, i just deleted the themes from the directory. is there a different way that i should have done this?
thanks for the help. it's really appreciated.
thankfully, i'm just in the
thankfully, i'm just in the beginning stages of building the site. i could, if needed, just do a reinstall. i don't want to have to do that but it's an option. screwing stuff up is all a part of learning...... :)
I'm new too
I am kinda new at this as well, but a few kind people on this site have taught me a little. You could try to re-add the themes. i would see if they will let you add phpmyadmin. It is a very useful tool. Look again at the installation instructions for Drupal. I tells you how to add I would start by looking here if you go this route. Or possibly someone has an easier solution. http://hostlibrary.com/phpMyAdminInstallationTutorialcpanelsharedhosting
i tried reinstalling the
i tried reinstalling the themes but that didn't solve the issue. i really messed this one up. what i hate most is that i have no idea what i did that caused this.
themes
Have you tried to re-install the theme that you are currently using? If not, try to switch to another theme if possible, if not I would look in to PHPMYAdmin.
What theme are you using? It
What theme are you using? It looks like it's a derive theme and you have deleted its base parent theme. Take a look at your theme's .info file and see if it has a base parent theme and put that theme back.
-Drupal Notebook-
okay. i'll give that a
okay. i'll give that a shot.
thanks!
here's the .info file on the
here's the .info file on the theme that i am using. doesn't look like it has a base parent theme.
; $Id: a3_atlantis.info,v 1.1.2.6 2008/08/23 20:58:56 johnforsythe Exp $
name = A3 Atlantis
description = Tableless, multi-column, fixed width theme.
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
; Information added by drupal.org packaging script on 2008-08-23
version = "6.x-1.2"
core = "6.x"
project = "a3_atlantis"
datestamp = "1219526102"
actually, now that i think about it, i tried some other themes once this happened but still received the same error.
thanks.
I'm having the same problem
I'm having the same problem ... after running cron there are less identical errors displayed, but they still exist
still can't figure out wtf
i couldn't find the solution,
i couldn't find the solution, so i just deleted all tables from the databese, then deleted drupal from the host and then uploaded it and installed again. little work here is lost, but now everything works fine
Where did you store your themes?
If you were storing them in the "themes" directory that Drupal comes packaged with, then I can see where you might have gone wrong. If you were using the "sites/all/themes" folder, then I'm stumped.
In the default "themes" folder (same directory level as "sites"), there's a handy folder called "engines", with a subfolder "phptemplate" which includes a file called "phptemplate.engine". If you mistakenly deleted this folder/file, then yes, you'd be getting the errors you're seeing. That error on line 155 is trying to load the theme engine, as so:
<?php153. if (isset($theme->engine)) {
154. // Include the engine.
155. include_once './'. $theme->owner;
156.
157. $theme_engine = $theme->engine;
158. if (function_exists($theme_engine .'_init')) {
159. foreach ($base_theme as $base) {
160. call_user_func($theme_engine .'_init', $base);
161. }
162. call_user_func($theme_engine .'_init', $theme);
163. }
164. }
?>
If it can't find the engine...whoops :)
resolved
ha! that was the issue, gbrussel.
thanks!
I owe you big time
Wow, this was a stressy period! I experienced the exact same problem that was explained AND resolved here. Than you very much for that!
I've learned some things trying to find a solution: