FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » index.php problem
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
index.php problem [message #15478] Tue, 16 December 2003 22:53 Go to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
I was successfully using the forum as an administrator for several hours with 2-6-0RC11. Now, all of the sudden, whenever I go to the index page I get these errors:
Quote:

Warning: fud_use(/home/httpd/https/forum/data/include/theme//err.inc): failed to open stream: No such file or directory in /home/httpd/https/forum/data/include/core.inc on line 67

Warning: fud_use(): Failed opening '/home/httpd/https/forum/data/include/theme//err.inc' for inclusion (include_path='.:/usr/local/lib/php') in /home/httpd/https/forum/data/include/core.inc on line 67

Warning: main(/home/httpd/https/forum/theme//index.php): failed to open stream: No such file or directory in /home/httpd/https/forum/index.php on line 1156

Fatal error: main(): Failed opening required '/home/httpd/https/forum/theme//index.php' (include_path='.:/usr/local/lib/php') in /home/httpd/https/forum/index.php on line 1156


It looks like it's lost track of the "default" theme name, so it's trying to access a directory that doesn't exist (note the '//' in the paths). Any suggestions on how to fix it, and how to prevent this from happening in the future?

By the way, I've tried this from another browser, and even removed all the sessions from fud_ses, so I know it's not due to something incorrect cached in the cookies or the session DB.
Re: index.php problem [message #15480 is a reply to message #15478] Tue, 16 December 2003 23:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Sounds like you've iether deleted the primary theme or somehow changed the theme of all the forum users to invalid theme.

First thing you need to do is check if you have any entries inside the theme table.


FUDforum Core Developer
Re: index.php problem [message #15497 is a reply to message #15480] Wed, 17 December 2003 14:43 Go to previous messageGo to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
Looks OK to me...

mysql> select * from fud_themes;
+----+---------+---------+---------+---------+-------------+-----------+
| id | name    | theme   | lang    | locale  | pspell_lang | theme_opt |
+----+---------+---------+---------+---------+-------------+-----------+
|  1 | default | default | english | english | en          |         3 |
+----+---------+---------+---------+---------+-------------+-----------+


However, in fud_users, "theme" seems to be set to "1" for all users, not the name of the theme, which I would expect to be "default". Is this correct?
Re: index.php problem [message #15522 is a reply to message #15478] Wed, 17 December 2003 19:45 Go to previous messageGo to next message
Gribnif is currently offline  Gribnif   United States
Messages: 82
Registered: December 2003
Karma: 0
Member
I figured out the reason, but not the cause: The Anonymous Coward account was somehow deleted. The thing is, I made so many changes in the Admin CP, I can't begin to guess what might have caused this to happen. I know I didn't use the Delete User function, and that it's not something I did from mysql.

I think there might be a flaw somewhere that causes this to happen unexpectedly. I also think that the Delete User option should not be available if id==1, since removing this user effectively means you can't get into the forum.
Re: index.php problem [message #15525 is a reply to message #15522] Wed, 17 December 2003 20:15 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The forum normally does not permit you to delete the anonymous coward user, since it is an internal user. The only possibility is that somehow (I wish I knew how) you've deleted that user by accident.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: group removed after consistency check
Next Topic: Minor Admin CP suggestion
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 12:54:55 GMT 2024

Total time taken to generate the page: 0.02366 seconds