PDA

View Full Version : can't access forums...


Mortain
11-14-2015, 07:57 AM
I just installed the forums, but whenever i click to go to it, it brings me back to the index page.

Nieth
11-14-2015, 08:00 AM
Did you change the link in the navigation bar to lead to the forum page?

Mortain
11-14-2015, 08:03 AM
don't think i did. let me do that now.

Nieth
11-14-2015, 08:04 AM
Yeah, because if that's what you were clicking, it just leads to the home page by default.

Mortain
11-14-2015, 08:05 AM
it's still routing me to the index page.

Nieth
11-14-2015, 08:08 AM
Can you navigate to the forums by manipulating the url? If you can't find some way to navigate to the forums then it was most-likely not set up correctly.

Mortain
11-14-2015, 08:10 AM
no i can't. I'm looking at the links in the acp. and it's set up right. *sighs*

Nieth
11-14-2015, 08:11 AM
Where did you install the forum script into the FTP?

Mortain
11-14-2015, 08:16 AM
in a folder called forums? I think that's what your asking.

Nieth
11-14-2015, 08:17 AM
Yes, that's what I was asking.

You extracted all the files, ran the forum install script and set up the database for the forum?

Mortain
11-14-2015, 08:21 AM
sorry, I'm all new to this LOL. let me run the install stuff. herp-derp

Mortain
11-14-2015, 08:23 AM
Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/nirainia/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nirainia/public_html/classes/class_initializer.php on line 97

when i try to install it, this is what i get. Derp?

Nieth
11-14-2015, 08:24 AM
Yeah its no problem, the forums are a completely different script package. So, you have to actually install that too. Also, it will instruct you to set up a database and you'll have to edit the config files to have everything done correctly. There's a config_forums file in the mysidia script so that you can sync the adoptables and forums accounts.

Nieth
11-14-2015, 08:25 AM
The files have to be given the right permissions so that it can install, and the package is unzipped into all of its folders, right?

Mortain
11-14-2015, 08:28 AM
everything's right (I think). it's all unzipped and in. I have a database set up already. I got a crash course from my coder on my other 2 sims about that last night so i'm good there.

Hall of Famer
11-14-2015, 08:54 AM
Well your forum needs to have a file called .htaccess. If you use MyBB, it has a file called htaccess.txt, rename it as .htaccess. Alternatively, you can upload the .htaccess file in Mysidia Adoptables' folder /install to your forum root directory. This is explained in MyBB forum integration, and it should apply for any other forumwares too.

Mortain
11-14-2015, 09:03 AM
alright replaced the htaccess file from the install folder. going to try this.

Mortain
11-14-2015, 09:04 AM
There is a htaccess-nginx file also in the mybb forums folder... is that suppose to be there?

Hall of Famer
11-14-2015, 09:06 AM
Well it doesnt matter. Just upload a .htaccess file to your mybb folder, or rename htaccess.txt to .htaccess, otherwise Mysidia's URL rewrite rules will apply to your forum directory, causing undesired behaviors.

Mortain
11-14-2015, 09:07 AM
done and done.

Mortain
11-14-2015, 09:07 AM
and still throwing errors at me.

Hall of Famer
11-14-2015, 09:12 AM
umm thats strange, whats inside that .htaccess file?

Mortain
11-14-2015, 09:17 AM
Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
# the setting enabled in the Admin CP and you have this file
# named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>

# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
<Files "error.log">
Order Deny,Allow
Deny from all
</Files>

_____ in the origonal htaccess

Hall of Famer
11-14-2015, 09:20 AM
umm thats enough strange, it shouldnt throw errors anymore, since Mysidia Adoptables should no longer affect your forum directory with a custom .htaccess. I aint sure if your error is indeed caused by the script, it may as well be a MyBB issue. What is the error message you get anyway?

Mortain
11-14-2015, 09:23 AM
Warning: require(../inc/config.php): failed to open stream: No such file or directory in /home/nirainia/public_html/classes/class_initializer.php on line 97

Fatal error: require(): Failed opening required '../inc/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nirainia/public_html/classes/class_initializer.php on line 97

Hall of Famer
11-15-2015, 04:25 AM
I see, so clearly Mysidia's .htaccess is still affecting your forum. I think one reason is that Mysidia Adoptables was made compatible with MyBB 1.6, so if you use MyBB 1.8 its likely to give you some troubles. I will fix it for you once the ftp works, dont worry.