Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 52|Reply: 3
Collapse the left

Can not see the content of the post, php7.0.12

[Copy link]
Post time: 2018-9-13 08:21
| Show all posts |Read mode
本帖最后由 AlanJia2017 于 2018-9-13 19:48 编辑

My running environment is Apache 2.4 +php 7.0.12. Every post opens without content.I found a solution in the Chinese official website.
When I switch to php5.x, everything works normally.
This problem occurs only when upgrading the existing forum. There is no problem with the new installation.

http://www.discuz.net/forum.php?mod=redirect&goto=findpost&ptid=3822300&pid=29774468

source/function/cache/cache_bbcodes.php
  1. $search = str_replace('is', 'ies', $search);
  2. $replace = '\''.str_replace('{RANDOM}', '_\'.random(6).\'', str_replace('{MD5}', '_\'.md5(\'\\1\').\'', $bbcode['replacement'])).'\'';
Copy the Code




[color=rgba(0, 0, 0, 0.8)]导致这个问题的原因: 后台,界面,编辑器,新增一个discuz!码,并在替换内容处提交一个类似
{RANDOM}
[color=rgba(0, 0, 0, 0.8)]的php可执行脚本,允许的用户组随意选择几个,包含 管理员 。 然后前台发帖,帖子包含图片和文字,就能复现这个情况。
[color=rgba(0, 0, 0, 0.8)]
[color=rgba(0, 0, 0, 0.8)]注意,得是在php7才出现这种情况。

 Russia

Post time: 2018-9-17 20:01
| Show all posts
I'm talking about I can not read and translate Chinese character in your screenshots
It would be nice if you translate the problem explanation to English.

 Russia

Post time: 2018-9-13 20:27
| Show all posts
Can you explain the problem using English language?
Because of it is not possible to translate images by online translate service...
 Author| Post time: 2018-9-16 20:14
| Show all posts
vot 2018-9-13 20:27
Can you explain the problem using English language?
Because of it is not possible to translate image ...

Not bugs,usually. but run in php5.x well. Try to use english. thx!
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub  

2018-9-25 01:53 GMT+3 , Processed in 0.086839 sec., 10 queries .

Powered by Discuz! X3.4

Release 20170801, © 2001-2018 Comsenz Inc.

MultiLingual version, Rev. 710, © 2009-2018 codersclub.org

Quick Reply To Top Return to the list