| |

CodersClub

 找回密碼
 註冊
搜索
查看: 8141|回復: 8
收起左側

Discuz! System Error

[複製鏈接]

 台灣

發表於: 2014-02-05 10:59
| 顯示全部樓層 |閱讀模式
本帖最後由 ken 於 2014-2-5 12:09 編輯

After installing the plugin. screen display this


I'm follow this code, found this code in "source/function/function_core.php" (line: 584)
  1. /*vot*/                        $tpldir = DISCUZ_ROOT.'./source/plugin/'.$templateid.'/template';
複製代碼
I'm not sure this line code is or isn't bug?
but, I commenting out "DISCUZ_ROOT."
  1. /*vot*/                        $tpldir = /*DISCUZ_ROOT.*/'./source/plugin/'.$templateid.'/template';
複製代碼
Does not display the error.

and I do not know comment out is ok? or not?
This code does not appear in x2.5.
Please checked it. Thank you for help.

本帖子中包含更多資源

您需要 登錄 才可以下載或查看,沒有帳號?註冊帳號

x

評分

參與人數 1Rating +1 收起 理由
turkgen + 1 Very nice!

查看全部評分

 俄羅斯

發表於: 2014-02-05 14:40
| 顯示全部樓層
Please print the variable value and report it here!
  1. /*vot*/                        $tpldir = DISCUZ_ROOT.'./source/plugin/'.$templateid.'/template';
  2. echo '<hr>tpldir=',$tpldir,'<hr>';
複製代碼

點評

error continues.  發表於 2014-02-06 21:47

 俄羅斯

發表於: 2014-02-07 07:21
| 顯示全部樓層
turkgen:
error continues.

I need a resulting string displayed by the debug echo

 土耳其

發表於: 2014-02-07 09:24
| 顯示全部樓層
  1. /*vot*/                        $tpldir = /*DISCUZ_ROOT.*/'./source/plugin/'.$templateid.'/template';
複製代碼
If this is the error stops.

 俄羅斯

發表於: 2014-02-07 11:37
| 顯示全部樓層
You still not understand me...

ADD A CODE from the post #2 !
And report here, what the value is displayed by the "echo" command!

 台灣

 樓主| 發表於: 2014-02-07 12:01
| 顯示全部樓層
本帖最後由 ken 於 2014-2-7 13:05 編輯
  1. Line: 584 #   /*vot*/                        $tpldir = DISCUZ_ROOT.'./source/plugin/'.$templateid.'/template';
複製代碼
here $tpldir="E:/USBWebserver v8.5/root/dz31/./source/plugin/singcere_waterfall/template"

but, i follow messages. The problem lies in #634

/*vot*/        $cachefile = './data/template/'.DISCUZ_LANG.'_'.(defined('STYLEID') ? STYLEID.'_' : '_').$templateid.'_'.str_replace('/', '_', $file).'.tpl.php';

Here
$tplfile = "./source/plugin/singcere_waterfall/template/waterfall.htm"
DISCUZ_ROOT.$tplfile = "E:/USBWebserver v8.5/root/dz31/E:/USBWebserver v8.5/root/dz31/./source/plugin/singcere_waterfall/template/waterfall.htm"

Here
  1. if($templateid != 1 && !file_exists(DISCUZ_ROOT.$tplfile) && !file_exists(substr(DISCUZ_ROOT.$tplfile, 0, -4).'.php')
複製代碼
!file_exists(DISCUZ_ROOT.$tplfile) always = False, so "$tplfile = './template/default/'.$filebak.'.htm';"

but, this file " './template/default/'.$filebak.'.htm';" does not exist.

 台灣

 樓主| 發表於: 2014-02-10 07:48
| 顯示全部樓層
I do not know that you know what I mean? I express bad..
anyway, if i comment out this
$tpldir = /*DISCUZ_ROOT.*/'./source/plugin/'.$templateid.'/template';
it's work. and x2.5 is not this code "DISCUZ_ROOT.", so I'm not sure..

評分

參與人數 1Rating +1 收起 理由
vot + 1

查看全部評分

 俄羅斯

發表於: 2014-02-11 09:27
| 顯示全部樓層
Ok, I agree.
It is easier to remove the DISCUZ_ROOT from the line #584.

THANX!

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archive|手機版|小黑屋|CodersClub

Top.Mail.Ru
Top.Mail.Ru

GMT+3, 2026-04-08 01:13 , Processed in 0.140625 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2026 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

快速回復 返回頂部 返回列表