| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 6885|Reply: 8
Collapse the left

Discuz! System Error

[Copy link]

 Taiwan

Post time: 2014-02-05 10:59
| Show all posts |Read mode
本帖最後由 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';
Copy the Code
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';
Copy the Code
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.

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

Rate

Number of participants 1Rating +1 Collapse Reason
turkgen + 1 Very nice!

View Rating Log

 Russia

Post time: 2014-02-05 14:40
| Show all posts
Please print the variable value and report it here!
  1. /*vot*/                        $tpldir = DISCUZ_ROOT.'./source/plugin/'.$templateid.'/template';
  2. echo '<hr>tpldir=',$tpldir,'<hr>';
Copy the Code

Comments

error continues.  Post time 2014-02-06 21:47

 Russia

Post time: 2014-02-07 07:21
| Show all posts
turkgen:
error continues.

I need a resulting string displayed by the debug echo
Post time: 2014-02-07 09:24
| Show all posts
  1. /*vot*/                        $tpldir = /*DISCUZ_ROOT.*/'./source/plugin/'.$templateid.'/template';
Copy the Code
If this is the error stops.

 Russia

Post time: 2014-02-07 11:37
| Show all posts
You still not understand me...

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

 Taiwan

 Author| Post time: 2014-02-07 12:01
| Show all posts
本帖最後由 ken 於 2014-2-7 13:05 編輯
  1. Line: 584 #   /*vot*/                        $tpldir = DISCUZ_ROOT.'./source/plugin/'.$templateid.'/template';
Copy the Code
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')
Copy the Code
!file_exists(DISCUZ_ROOT.$tplfile) always = False, so "$tplfile = './template/default/'.$filebak.'.htm';"

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

 Taiwan

 Author| Post time: 2014-02-10 07:48
| Show all posts
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..

Rate

Number of participants 1Rating +1 Collapse Reason
vot + 1

View Rating Log

 Russia

Post time: 2014-02-11 09:27
| Show all posts
Ok, I agree.
It is easier to remove the DISCUZ_ROOT from the line #584.

THANX!

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-12-04 11:35 GMT+3 , Processed in 0.070773 sec., 10 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list