vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Weird Error - Sub Forums dont show up anymore? (https://vborg.vbsupport.ru/showthread.php?t=285935)

rmd1 07-25-2012 09:57 AM

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 :)

kh99 07-25-2012 12:13 PM

Try temporarily disabling all plugins by putting

Code:

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"?

rmd1 07-26-2012 11:02 AM

1 Attachment(s)
Quote:

Originally Posted by kh99 (Post 2351299)
Try temporarily disabling all plugins by putting

Code:

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!!

Quote:

Originally Posted by ForceHSS (Post 2351327)
Maybe a link to the problem

Sorry, not possible... But here are two screens of it,i if that helps :)
Attachment 140101Attachment 140102

Quote:

Originally Posted by Lynne (Post 2351344)
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 ?

kh99 07-26-2012 11:28 AM

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?

rmd1 07-26-2012 11:46 AM

Quote:

Originally Posted by kh99 (Post 2351558)
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.

kh99 07-26-2012 11:58 AM

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.

rmd1 07-27-2012 08:34 AM

Quote:

Originally Posted by Simon Lloyd (Post 2351572)
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)

Quote:

Originally Posted by Lynne (Post 2351622)
What are you settings (the top three) in AdminCP > Settings > Options > forum listings display options?

2 2 1

Quote:

Originally Posted by Lynne (Post 2351665)
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
HTML Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
and replace with
HTML Code:

<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.

rmd1 07-27-2012 09:24 AM

1 Attachment(s)
Attachment 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 [DATE]1343386930[/DATE] at [TIME]1343386930[/TIME] ---------------

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


All times are GMT. The time now is 04:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete