The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I find out what templates are used to render a page?
When doing minor modifications it's often nice to know what templates are involved. It's also nice to know what templates are used to build a page for debugging purposes.
Is there a way to find out what templates are being used on a given page? I have a debugging issue right now where I broke something minor and it's killing inline moderation. I've looked at the 3 or 4 templates, but I don't see anything evil. The pages all work fine, it's only when I try to moderate them. Generating a list of templates to evaluate would help me to narrow my search. I've also done a lot of trial and error when trying to change something. I hate hunting for the offending template that needs modification. |
#2
|
||||
|
||||
Turn on debug mode and all the templates are listed on the bottom of the page. Enter this in the config.php file:
PHP Code:
|
#3
|
|||
|
|||
Quote:
We don't get a large amount of traffic, so I can turn it on, see what I need to and turn it off without it being a big deal. If a couple of users see it, no big deal. It's a shame that the vbulletin.com forums weren't as helpful. I got a very nasty "find it yourself" response over there. |
#4
|
||||
|
||||
Sometimes you run into a user that isn't helpful, but I'd give vb.com another chance because they really do have an outstanding group of support guys.
If you have a static IP, you can set debug to be on only for you: PHP Code:
|
#5
|
|||
|
|||
This might or might not work, but add that line to another file like the bottom of global.php, then you could use
PHP Code:
Modifying core vBulletin files will result in loss of official support from vBulletin.com. Use the contents of this post at your own risk! |
#6
|
||||
|
||||
You will lose the "explain" functionality if debug mode is set late in the execution.
|
#7
|
|||
|
|||
I finally had some time to do some digging. I still have an issue.
I'm not sure why inline moderation is broken, but it is. I can't move, merge or otherwise affect posts from the thread view. I also have difficulty with inline moderation from the forum view where I can see multiple threads. The moderation tool at the bottom of the page is what is affected. It appears to submit the affected posts to inlinemod.php which blows up on line 3869. I'm not necessarily wanting someone to solve my problem for me. I am however interested in suggestions on how to troubleshoot this or where to look for the problem. I have a number of moderations to my templates. I have gone through and one by one disabled them, tested, and re-enabled them with no success. I have a number of mods installed most of which are supported and I don't believe any of them are the culprit. They are mostly things like twitter hooks. I'm reasonably confident that this isn't related to my mods. Most of my mods revolved around masking user info from guest users. I just wish I had a more meaningful error message then : Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /home/brianpz/public_html/forums/inlinemod.php on line 3869 That doesn't exactly tell me very much... other then looking at line 3869: PHP Code:
So far I have: - checked that template modifications weren't the obvious cause of the issue. - turned on template tracing to get an idea what templates are involved. - looked at the offending PHP code and line 3869 and took a glance at the preceding code... although I'm not really a PHP coder. I am very experienced in ASP/vbscript so this isn't that strange. It seems like the next solution would be to try and backtrack in the code and figure out how it gets to 3869 and check for broken items. It seems like the basic logic is that checking off the checkboxes on the thread selects the post ID and then sends these to inlinemod.php. From there inlinemod.php checks some security and performs functions. Somewhere along the way it's complaining about the data on page 3869. I am using the legacy postbits... so there could be a conflict between them and the inlinemod.php. |
#8
|
||||
|
||||
Have you tried using a totally default style and seeing if things work then?
Create a new style with no parent:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|