MyBB Community Forums

Full Version: directory problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Now this is a strange one.

I installed MyBB on http://www.sm-fr.de/forum , everything went fine. -
Now when I go to the forum, the upmost panel links everything to the root directory, so for example
Logout -> http://www.sm-fr.de/member.php?action=logout
User CP -> http://www.sm-fr.de/usercp.php
Admin CP -> http://www.sm-fr.de/admin
etc, resulting in a 404 .

*But* I installed the whole thing in the correct path (yeah, without trailing slash, and I didn't forget about capitalization) , and
the panel beneath the topmost, which reads
View New Posts | View Today's Posts | Private Messages,
and also every other link on the site is linked correctly against http://www.sm-fr.de/forum/<whatever>.php

Now I'm a bit confused. Any suggestions? A bug?
I downloaded MyBB RC4 on 2005-08-19 at about 08:00 GMT

edit: and I can't just fiddle around by going to thew Admin CP ( http://sm-fr.de/forum/admin ), coz then it's saying "Language (../inc/languages/) is not installed"
The problem isn't really strange, it's a fairly common mistake.

Firstly, ensure that you have uploaded the language files for the Admin CP. These should be located at /inc/languages/english/admin. If you haven't uploaded them yet, do so, 'cause we'll need to get into the Admin CP.

Now, go to the Admin CP > Board Settings > Change > General Configuration > Board URL. My guess would be that you entered http://www.sm-fr.de while it should say http://www.sm-fr.de/forum. Simply edit this and it should be fixed Smile
I did upload everything, and just checked it: yep, inc/languages/english/admin is there.
Also, I'm perfectly sure that I entered the correct path, exactly as you wrote it.

But..I just looked where that $settings['bburl'] comes from, and lo! I saw it should be in the database..I looked for it, and saw that the mySQL table "mybb_settings" is completely empty - the problem must've occurred while installing.
Now I'll try to fix it via mysql-query-browser ... let's see if I can insert the correct values Wink


edit again: by inserting
$settings['bburl']="http://www.sm-de.de/forum";
into settings.php I could get all the links right ( yes, I inserted a row into mybb_settings, with name='bburl' and value="http://www.sm-de.de/forum" )...but now I get a SQL error when clicking on Member list:
Warning: Division by zero in /home/www_0024/www/sm-fr_de/forum/inc/functions.php on line 242
mySQL error: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Query: SELECT u.*, f.*, g.namestyle FROM sm_mybb_users u LEFT JOIN sm_mybb_userfields f ON (f.ufid=u.uid) LEFT JOIN sm_mybb_usergroups g ON (g.gid=u.usergroup) ORDER BY u.regdate ASC LIMIT 0,
and Admin CP still doesn't work (although languages are in the correct directory, at least at first glance..I'll dig into it)

edit#2: now I got the Admin CP working... and I think I know now that during the installation procedure all the database tables were *not *filled as they should have been...I don't know why that went wrong, there had been no error message.

I guess I'll try installing it again, there's so much values missing I don't have a mind to insert them manually Wink

Anyways, now I'm really determined to get it working Wink
Okay, deleted files, tables and everything, reinstalled it. Tables were populated as they should be, and I'm happy.

(I still don't know what went wrong the first time...lol)

Thanks for your time, Tochjo. Delete this thread, close it or whatever... Wink
No problem Smile