View Full Version : Weird Error - Sub Forums dont show up anymore?
Hello vb org Community!
I got a strange Problem here that neither me or a coder that I hired cant fix... So I hope you can help me with this little Problem...
I made a 1:1 Copy of my already working Website to use it as my Testenviroment. Everything works fine, except this BIG Problem regarding Sub Forums!
In my Forumhome I have a Category which has multiple Sub Forums. Clicking the Category on the Live Site shows the Threads that it contains + the Sub Forums on top of the Threads.
Problem: In my Test Enviroment, the Sub Forums dont show up - even tho its a 1:1 copy of the DB / Files. Why does this happen and how can I fix it? I am currently trying to create a new theme and cant complete it without designing the Sub Forums. :(
Already tried rebuilding the Thread / Forum Information via the Mainentance functions in Admincp.
I appreciate any help on this! Google only spits out Topics about the Sub Forum Depth, which is not the Problem, already tried that :)
Try temporarily disabling all plugins by putting
define('DISABLE_HOOKS', 1);
in your config.php file, and also try creating a new style with no parent, and see if you still have the problem.
ForceHSS
07-25-2012, 02:05 PM
Maybe a link to the problem
Lynne
07-25-2012, 03:32 PM
Any caching being used on the server? Did you select to use that caching in the config.php file also? Can you see the sub-forums in the database? Are they shown in the Forum Manager and not set to Display "0"?
Try temporarily disabling all plugins by putting
define('DISABLE_HOOKS', 1);
in your config.php file, and also try creating a new style with no parent, and see if you still have the problem.
Disabling the Hooks didnt work.
About the styles, no matter which Style I use, these Forums are never visible "inside the first level Sub Forum". Not even in the default Style that comes with vb!!
Maybe a link to the problem
Sorry, not possible... But here are two screens of it,i if that helps :)
140101140102
Any caching being used on the server? Did you select to use that caching in the config.php file also? Can you see the sub-forums in the database? Are they shown in the Forum Manager and not set to Display "0"?
hmmmmm, no caching AFAIK. I checked the config.php and it seems there is also no caching activatzed.
I can see the Sub Forums in the Database, Forum Manager AND when im on Forumhome (domain.com/forum) .... but not when im clicking the level 1 Sub Forum :/
Please dont forget, this test area is a 1:1 DB + Files copy of my live site, where everything works :(
Any Ideas ?
Just to be clear, the missing subforums are the same ones that already exist on your main site, not subforums you started adding on the test site?
Just to be clear, the missing subforums are the same ones that already exist on your main site, not subforums you started adding on the test site?
Yes :) A 1:1 Copy of my Main site, only thing I changed was the DB Info inside the config file, so I dont kill the main site.
Edit: nvm - you're using vb3.
Simon Lloyd
07-26-2012, 12:30 PM
Where Lynne mentions caching, if you are using xcache you'll need to give each config a different setting not doing so can crash the memory or, as you are having, difficulties displaying things called in to a cache such as templates :)
As a test, change the folder name that your forum is in or change the database details in config.php to something ficticious, clear your server cache and then try and access your test forum see what issues you have, but before that i'd copy the database again and import it in to the test database again.
Lynne
07-26-2012, 03:42 PM
What are you settings (the top three) in AdminCP > Settings > Options > forum listings display options?
Simon Lloyd
07-26-2012, 04:34 PM
Maybe his datastore is messed up when he moved the database?
Lynne
07-26-2012, 06:08 PM
Ah, that could be it. In which case go to edit a Forum and just click Save. It should rebuild the forum datastore.
Where Lynne mentions caching, if you are using xcache you'll need to give each config a different setting not doing so can crash the memory or, as you are having, difficulties displaying things called in to a cache such as templates :)
As a test, change the folder name that your forum is in or change the database details in config.php to something ficticious, clear your server cache and then try and access your test forum see what issues you have, but before that i'd copy the database again and import it in to the test database again.
I never touched the Config File - except editing the the DB Login Credentials. Also not on the Main site, so I guess there is no xcache in use at all? Just checked my config File and it says:
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
The Problem wth Export + Import the Database again is that I already modified a lot of stuff on the Test Site, which of course I dont want to loose :/ I was hoping to fix this issue without deleting anything, so I dont delay my hired Designers work :)
What do you mean with "clear your server cache" ? If you tell me, I can let my Hoster do it (my UNIX knowledge is limited)
What are you settings (the top three) in AdminCP > Settings > Options > forum listings display options?
2 2 1
Ah, that could be it. In which case go to edit a Forum and just click Save. It should rebuild the forum datastore.
Just did that... with all Forums! :D But it didnt work....
Thanks for all your help so far :)
Simon Lloyd
07-27-2012, 08:54 AM
try this, in forumhome_forumbit_level2_post template find <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> and replace with <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
- $forum[forumid] now check your forum index page and see how many forum id's you see.
140137
Only the Parent Forums show their IDs this way.
Simon Lloyd
07-27-2012, 09:50 AM
Yes that was the idea, this way you can check that the forums show id's are the correct ones for the sub forums that should have been shown.
--------------- Added 1343386930 at 1343386930 ---------------
In forumhome_subforumbit_post look for $forum[title]</a> and replace it with $forum[title]</a> - $forum[forumid] so now any sub forums will show their forumid
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.