Page Header

ojs2 has produced an error Message: USER ERROR: Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag '/literal' (Smarty_Compiler.class.php, line 590) In file: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php At line: 1093 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(256, "Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag '/literal' (Smarty_Compiler.class.php, line 590)", "/var/www/html/lib/pkp/lib/smarty/Smarty.class.php", 1093, Array(2)) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1093 Function: trigger_error("Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag '/literal' (Smarty_Compiler.class.php, line 590)", 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1815 Function: Smarty->trigger_error("[in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag '/literal' (Smarty_Compiler.class.php, line 590)", 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 2256 Function: Smarty->_trigger_fatal_error("syntax error: unrecognized tag '/literal'", "article/pdfViewer.tpl", 50, "/var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php", 590, 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 590 Function: Smarty_Compiler->_syntax_error("unrecognized tag '/literal'", 256, "/var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php", 590) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 312 Function: Smarty_Compiler->_compile_tag("/literal") File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1489 Function: Smarty_Compiler->_compile_file("article/pdfViewer.tpl", "{** * templates/article/pdfViewer.tpl * * Copyright (c) 2003-2012 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Embedded PDF viewer. *} {* The target="_parent" is for the sake of iphones, which present scroll problems otherwise. *} <div id="pdfDownloadLinkContainer"> <br/> <a class="action pdf" id="pdfDownloadLink" target="_parent" href="{url op="download" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal)}"><img src="{$baseUrl}/image/download-button.png" width="150px"> {*translate key="article.pdf.download"*}</a> </div> {url|assign:"pdfUrl" op="viewFile" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal) escape=false} {translate|assign:"noPluginText" key='article.pdf.pluginMissing'} <script type="text/javascript"><!--{literal} $(document).ready(function(){ if ($.browser.webkit) { // PDFObject does not correctly work with safari's built-in PDF viewer var embedCode = "<object id='pdfObject' type='application/pdf' data='{/literal}{$pdfUrl|escape:'javascript'}{literal}' width='100%' height='500px'><div id='pluginMissing'>{/literal}{$noPluginText|escape:'javascript'}{literal}</div></object>"; $("#inlinePdf").html(embedCode); if($("#pluginMissing").is(":hidden")) { $('#fullscreenShow').show(); $("#inlinePdf").resizable({ containment: 'parent', handles: 'se' }); } else { // Chrome Mac hides the embed object, obscuring the text. Reinsert. $("#inlinePdf").html('{/literal}<div id="pluginMissing">{$noPluginText|escape:"javascript"}</div>{literal}'); } } else { var success = new PDFObject({ url: "{/literal}{$pdfUrl|escape:'javascript'}{literal}" }).embed("inlinePdf"); if (success) { // PDF was embedded; enbale fullscreen mode and the resizable widget $('#fullscreenShow').show(); $("#inlinePdfResizer").resizable({ containment: 'parent', handles: 'se' }); } } }); {/literal} // --> </script> {* // เพิ่มเอง <div id="inlinePdfResizer" style="width:100%;"> <div id="inlinePdf" class="ui-widget-content"> <!--<div id='pluginMissing'>{translate key="article.pdf.pluginMissing"}</div>--> <!-- ปิดใช้งานเอง--> </div> </div> // เพิ่มเอง *} <iframe width="100%" height="500" src="{/literal}{$pdfUrl|escape:'javascript'}{literal}"></iframe> <!-- ทำใหม่ใช้งานเอง--> <p> <!--<a class="action" href="#" id="fullscreenShow">{translate key="common.fullscreen"}</a> <a class="action" href="#" id="fullscreenHide">{translate key="common.fullscreenOff"}</a>--> </p> <div style="clear: both;"></div>", Null) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1422 Function: Smarty->_compile_source("article/pdfViewer.tpl", "{** * templates/article/pdfViewer.tpl * * Copyright (c) 2003-2012 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Embedded PDF viewer. *} {* The target="_parent" is for the sake of iphones, which present scroll problems otherwise. *} <div id="pdfDownloadLinkContainer"> <br/> <a class="action pdf" id="pdfDownloadLink" target="_parent" href="{url op="download" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal)}"><img src="{$baseUrl}/image/download-button.png" width="150px"> {*translate key="article.pdf.download"*}</a> </div> {url|assign:"pdfUrl" op="viewFile" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal) escape=false} {translate|assign:"noPluginText" key='article.pdf.pluginMissing'} <script type="text/javascript"><!--{literal} $(document).ready(function(){ if ($.browser.webkit) { // PDFObject does not correctly work with safari's built-in PDF viewer var embedCode = "<object id='pdfObject' type='application/pdf' data='{/literal}{$pdfUrl|escape:'javascript'}{literal}' width='100%' height='500px'><div id='pluginMissing'>{/literal}{$noPluginText|escape:'javascript'}{literal}</div></object>"; $("#inlinePdf").html(embedCode); if($("#pluginMissing").is(":hidden")) { $('#fullscreenShow').show(); $("#inlinePdf").resizable({ containment: 'parent', handles: 'se' }); } else { // Chrome Mac hides the embed object, obscuring the text. Reinsert. $("#inlinePdf").html('{/literal}<div id="pluginMissing">{$noPluginText|escape:"javascript"}</div>{literal}'); } } else { var success = new PDFObject({ url: "{/literal}{$pdfUrl|escape:'javascript'}{literal}" }).embed("inlinePdf"); if (success) { // PDF was embedded; enbale fullscreen mode and the resizable widget $('#fullscreenShow').show(); $("#inlinePdfResizer").resizable({ containment: 'parent', handles: 'se' }); } } }); {/literal} // --> </script> {* // เพิ่มเอง <div id="inlinePdfResizer" style="width:100%;"> <div id="inlinePdf" class="ui-widget-content"> <!--<div id='pluginMissing'>{translate key="article.pdf.pluginMissing"}</div>--> <!-- ปิดใช้งานเอง--> </div> </div> // เพิ่มเอง *} <iframe width="100%" height="500" src="{/literal}{$pdfUrl|escape:'javascript'}{literal}"></iframe> <!-- ทำใหม่ใช้งานเอง--> <p> <!--<a class="action" href="#" id="fullscreenShow">{translate key="common.fullscreen"}</a> <a class="action" href="#" id="fullscreenHide">{translate key="common.fullscreenOff"}</a>--> </p> <div style="clear: both;"></div>", Null, "/var/www/html/cache/t_compile/modern_joitedTheme^%%1D^1D0^1D0A8D22%%pdfViewer.tpl.inc") File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1867 Function: Smarty->_compile_resource("article/pdfViewer.tpl", "/var/www/html/cache/t_compile/modern_joitedTheme^%%1D^1D0^1D0A8D22%%pdfViewer.tpl.php") File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 211 Function: Smarty->_smarty_include(Array(2)) File: /var/www/html/cache/t_compile/modern_joitedTheme^%%38^38D^38D7420B%%article.tpl.php line 30 Function: PKPTemplateManager->_smarty_include(Array(2)) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1256 Function: include("/var/www/html/cache/t_compile/modern_joitedTheme^%%38^38D^38D7420B%%article.tpl.php") File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 296 Function: Smarty->fetch("article/article.tpl", Null, Null, True) File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 347 Function: PKPTemplateManager->fetch("article/article.tpl", Null, Null, True) File: /var/www/html/pages/article/ArticleHandler.inc.php line 234 Function: PKPTemplateManager->display("article/article.tpl") File: (unknown) line (unknown) Function: ArticleHandler->view(Array(2), Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php line 362 Function: call_user_func(Array(2), Array(2), Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPPageRouter.inc.php line 220 Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(2), False) File: /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php line 134 Function: PKPPageRouter->route(Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php line 190 Function: Dispatcher->dispatch(Object(Request)) File: /var/www/html/index.php line 62 Function: PKPApplication->execute() Server info: OS: Linux PHP Version: 5.3.3 Apache Version: Apache/2.2.15 (CentOS) DB Driver: mysql DB server version: 5.1.73
ojs2 has produced an error Message: USER ERROR: Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 590) In file: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php At line: 1093 Stacktrace: File: (unknown) line (unknown) Function: PKPApplication->errorHandler(256, "Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 590)", "/var/www/html/lib/pkp/lib/smarty/Smarty.class.php", 1093, Array(2)) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1093 Function: trigger_error("Smarty error: [in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 590)", 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1815 Function: Smarty->trigger_error("[in article/pdfViewer.tpl line 50]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 590)", 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 2256 Function: Smarty->_trigger_fatal_error("syntax error: unrecognized tag 'literal'", "article/pdfViewer.tpl", 50, "/var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php", 590, 256) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 590 Function: Smarty_Compiler->_syntax_error("unrecognized tag 'literal'", 256, "/var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php", 590) File: /var/www/html/lib/pkp/lib/smarty/Smarty_Compiler.class.php line 312 Function: Smarty_Compiler->_compile_tag("literal") File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1489 Function: Smarty_Compiler->_compile_file("article/pdfViewer.tpl", "{** * templates/article/pdfViewer.tpl * * Copyright (c) 2003-2012 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Embedded PDF viewer. *} {* The target="_parent" is for the sake of iphones, which present scroll problems otherwise. *} <div id="pdfDownloadLinkContainer"> <br/> <a class="action pdf" id="pdfDownloadLink" target="_parent" href="{url op="download" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal)}"><img src="{$baseUrl}/image/download-button.png" width="150px"> {*translate key="article.pdf.download"*}</a> </div> {url|assign:"pdfUrl" op="viewFile" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal) escape=false} {translate|assign:"noPluginText" key='article.pdf.pluginMissing'} <script type="text/javascript"><!--{literal} $(document).ready(function(){ if ($.browser.webkit) { // PDFObject does not correctly work with safari's built-in PDF viewer var embedCode = "<object id='pdfObject' type='application/pdf' data='{/literal}{$pdfUrl|escape:'javascript'}{literal}' width='100%' height='500px'><div id='pluginMissing'>{/literal}{$noPluginText|escape:'javascript'}{literal}</div></object>"; $("#inlinePdf").html(embedCode); if($("#pluginMissing").is(":hidden")) { $('#fullscreenShow').show(); $("#inlinePdf").resizable({ containment: 'parent', handles: 'se' }); } else { // Chrome Mac hides the embed object, obscuring the text. Reinsert. $("#inlinePdf").html('{/literal}<div id="pluginMissing">{$noPluginText|escape:"javascript"}</div>{literal}'); } } else { var success = new PDFObject({ url: "{/literal}{$pdfUrl|escape:'javascript'}{literal}" }).embed("inlinePdf"); if (success) { // PDF was embedded; enbale fullscreen mode and the resizable widget $('#fullscreenShow').show(); $("#inlinePdfResizer").resizable({ containment: 'parent', handles: 'se' }); } } }); {/literal} // --> </script> {* // เพิ่มเอง <div id="inlinePdfResizer" style="width:100%;"> <div id="inlinePdf" class="ui-widget-content"> <!--<div id='pluginMissing'>{translate key="article.pdf.pluginMissing"}</div>--> <!-- ปิดใช้งานเอง--> </div> </div> // เพิ่มเอง *} <iframe width="100%" height="500" src="{/literal}{$pdfUrl|escape:'javascript'}{literal}"></iframe> <!-- ทำใหม่ใช้งานเอง--> <p> <!--<a class="action" href="#" id="fullscreenShow">{translate key="common.fullscreen"}</a> <a class="action" href="#" id="fullscreenHide">{translate key="common.fullscreenOff"}</a>--> </p> <div style="clear: both;"></div>", Null) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1422 Function: Smarty->_compile_source("article/pdfViewer.tpl", "{** * templates/article/pdfViewer.tpl * * Copyright (c) 2003-2012 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Embedded PDF viewer. *} {* The target="_parent" is for the sake of iphones, which present scroll problems otherwise. *} <div id="pdfDownloadLinkContainer"> <br/> <a class="action pdf" id="pdfDownloadLink" target="_parent" href="{url op="download" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal)}"><img src="{$baseUrl}/image/download-button.png" width="150px"> {*translate key="article.pdf.download"*}</a> </div> {url|assign:"pdfUrl" op="viewFile" path=$articleId|to_array:$galley->getBestGalleyId($currentJournal) escape=false} {translate|assign:"noPluginText" key='article.pdf.pluginMissing'} <script type="text/javascript"><!--{literal} $(document).ready(function(){ if ($.browser.webkit) { // PDFObject does not correctly work with safari's built-in PDF viewer var embedCode = "<object id='pdfObject' type='application/pdf' data='{/literal}{$pdfUrl|escape:'javascript'}{literal}' width='100%' height='500px'><div id='pluginMissing'>{/literal}{$noPluginText|escape:'javascript'}{literal}</div></object>"; $("#inlinePdf").html(embedCode); if($("#pluginMissing").is(":hidden")) { $('#fullscreenShow').show(); $("#inlinePdf").resizable({ containment: 'parent', handles: 'se' }); } else { // Chrome Mac hides the embed object, obscuring the text. Reinsert. $("#inlinePdf").html('{/literal}<div id="pluginMissing">{$noPluginText|escape:"javascript"}</div>{literal}'); } } else { var success = new PDFObject({ url: "{/literal}{$pdfUrl|escape:'javascript'}{literal}" }).embed("inlinePdf"); if (success) { // PDF was embedded; enbale fullscreen mode and the resizable widget $('#fullscreenShow').show(); $("#inlinePdfResizer").resizable({ containment: 'parent', handles: 'se' }); } } }); {/literal} // --> </script> {* // เพิ่มเอง <div id="inlinePdfResizer" style="width:100%;"> <div id="inlinePdf" class="ui-widget-content"> <!--<div id='pluginMissing'>{translate key="article.pdf.pluginMissing"}</div>--> <!-- ปิดใช้งานเอง--> </div> </div> // เพิ่มเอง *} <iframe width="100%" height="500" src="{/literal}{$pdfUrl|escape:'javascript'}{literal}"></iframe> <!-- ทำใหม่ใช้งานเอง--> <p> <!--<a class="action" href="#" id="fullscreenShow">{translate key="common.fullscreen"}</a> <a class="action" href="#" id="fullscreenHide">{translate key="common.fullscreenOff"}</a>--> </p> <div style="clear: both;"></div>", Null, "/var/www/html/cache/t_compile/modern_joitedTheme^%%1D^1D0^1D0A8D22%%pdfViewer.tpl.inc") File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1867 Function: Smarty->_compile_resource("article/pdfViewer.tpl", "/var/www/html/cache/t_compile/modern_joitedTheme^%%1D^1D0^1D0A8D22%%pdfViewer.tpl.php") File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 211 Function: Smarty->_smarty_include(Array(2)) File: /var/www/html/cache/t_compile/modern_joitedTheme^%%38^38D^38D7420B%%article.tpl.php line 30 Function: PKPTemplateManager->_smarty_include(Array(2)) File: /var/www/html/lib/pkp/lib/smarty/Smarty.class.php line 1256 Function: include("/var/www/html/cache/t_compile/modern_joitedTheme^%%38^38D^38D7420B%%article.tpl.php") File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 296 Function: Smarty->fetch("article/article.tpl", Null, Null, True) File: /var/www/html/lib/pkp/classes/template/PKPTemplateManager.inc.php line 347 Function: PKPTemplateManager->fetch("article/article.tpl", Null, Null, True) File: /var/www/html/pages/article/ArticleHandler.inc.php line 234 Function: PKPTemplateManager->display("article/article.tpl") File: (unknown) line (unknown) Function: ArticleHandler->view(Array(2), Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPRouter.inc.php line 362 Function: call_user_func(Array(2), Array(2), Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPPageRouter.inc.php line 220 Function: PKPRouter->_authorizeInitializeAndCallRequest(Array(2), Object(Request), Array(2), False) File: /var/www/html/lib/pkp/classes/core/Dispatcher.inc.php line 134 Function: PKPPageRouter->route(Object(Request)) File: /var/www/html/lib/pkp/classes/core/PKPApplication.inc.php line 190 Function: Dispatcher->dispatch(Object(Request)) File: /var/www/html/index.php line 62 Function: PKPApplication->execute() Server info: OS: Linux PHP Version: 5.3.3 Apache Version: Apache/2.2.15 (CentOS) DB Driver: mysql DB server version: 5.1.73

Refbacks

  • There are currently no refbacks.