PDA

View Full Version : template.php server load



Miller_Light
Sun 15th Jan '06, 3:47pm
Hello,

I have installed a custom skin located on vbulletin.org and utilize Vbulletin 3.5.3 with a few installed hacks.

Lately when trying to modify the FORUMHOME template in the mentioned style, it wont save and causes the server load to increase significantly.

Is there a common issue that I may look at to find the culprit?

Top Process %CPU 33.6 httpd [www.*****.com] [/forums/admincp/template.php]
Top Process %CPU 33.5 httpd [www.*****.com] [/forums/admincp/template.php]
Top Process %CPU 33.4 httpd [www.*****.com] [/forums/admincp/template.php]

Each instance of trying to save the modifications creates another process(s), that seems to loop to infinity.

Any general pointers would be appreciated.

Marco van Herwaarden
Sun 15th Jan '06, 3:52pm
Try first to save it without any change. These kind of symptoms are mostly caused by a wrongly formed conditional expression.

Miller_Light
Sun 15th Jan '06, 4:00pm
Without doing any template modifications FORUMHOME will save as designed, but adding any modified code will cause the server load to increase and create the above mentioned process(s).

From what I am reading in your reply, the code that I was trying to add, was missing something, this could be a <if> </if> or any combination?

Am I in the general ball park?

Thanks

Marco van Herwaarden
Sun 15th Jan '06, 4:06pm
Yes, it could be a missing </if>, > or a missing quote in a condition. But could also be caused by other things. I suggest you try to make small changes at a time until you find the problem.

Miller_Light
Sun 15th Jan '06, 4:08pm
LOL,

Been staring at it for 3 days. Each change causing a small portion of life to be slowly snapped away :eek:

I wish VB produced an error report stating what trouble it ran into somewhere, like an error log?