1

根据 Wiris 指南。

  1. 授予 web 服务器用户对 ckeditor/plugins/ckeditor_wiris/integration 中包含的 PHP 文件的执行权限。
    → 我的设置:文件夹“集成”:755。此文件夹内的所有文件:754
  2. 将 ckeditor/plugins/ckeditor_wiris/cache 和 ckeditor/plugins/ckeditor_wiris/formulas 目录的写入权限授予 Web 服务器用户。这些文件夹将用于存储公式 MathML 代码和时间图像。
    → 我对这些文件夹的设置:775

但是,我在尝试打开 Wiris“数学弹出窗口”时收到以下警告,并且无法正确打开。

警告:is_file(): open_basedir 限制生效。文件(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../../../lib/moodlelib.php)不在允许的路径: (/home/my_user_name:/usr/lib/php:/tmp) 在第 39 行的 /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php

警告:is_file(): open_basedir 限制生效。文件(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../lib/moodlelib.php)不在允许的路径内: (/home/my_user_name:/usr/lib/php:/tmp) 在第 39 行的 /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php

我的权限正确吗?这些警告是否与文件/文件夹权限有关?我正在使用www.serversfree.com虚拟主机来测试这一点。

4

4 回答 4

1

看来您的安装有问题。请检查插件测试页面: <url>/ckeditor/plugins/ckeditor_wiris/integration/test.php. 那里不应该有任何错误。请查看http://www.wiris.com/plugins/docs/ckeditor上的安装说明。

于 2014-03-25T10:02:49.970 回答
0

您的权限是正确的。这些警告与文件中的额外检查有关/integration/bootstrap.php,它检查工作目录上方几个级别的目录,并且由于服务器中的 open_basedir 限制,您不允许这样做。这个问题将在我们的下一个插件版本中修复。要取消警告,只需注释整个bootstrap.php文件或return true;<?php.

编辑:这个问题目前在我们的最新版本中得到修复。

于 2014-03-24T09:55:02.037 回答
0

谢谢,上面的答案在第一步中有所帮助。但是,现在当我在 Wiris 窗口中键入一个方程式并“接受”时,CKEditor 中不会显示等效图像。发送回 CKEditor 窗口的公式 URL 似乎存在“问题”。以下是 CKEditor 中图像的链接(否则“formula=392b9defa8cb3eaf2f8fec0cf3993738.png”部分是正确的)

/ckeditor//plugins/ckeditor_wiris/integration/showimage.php?        formula=392b9defa8cb3eaf2f8fec0cf3993738.png**<!-- www.serversfree.com Analytics Code --><script src="http://www.serversfree.com"></script><noscript><a title="Free hosting servers" href="http://www.serversfree.com">Free servers</a><a title="Free websites hosting server" href="http://www.serversfree.com">Free websites hosting server</a><a title="Free hosting server features" href="http://www.serversfree.com/server-features/">Free server features</a><a title="Free hosting" href="http://www.bugs3.com">Free hosting</a><a title="Page rank" href="http://www.1pagerank.com">Page rank</a></noscript><script type="text/javascript">  var _gaq = _gaq || [];  _gaq.push(['_setAccount', 'UA-24425628-3']);  _gaq.push(['_setDomainName', window.location.host]);  _gaq.push(['_setAllowLinker', true]);  _gaq.push(['_trackPageview']);  (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);  })();</script><script type="text/javascript" src="http://www.bugs3.com/ganalytics.js"></script><!-- End Of Analytics Code -->
于 2014-03-24T20:36:02.983 回答
0

请授予 777 对名为缓存公式的文件夹的权限

内部路径

ckeditor4/插件/ckeditor_wiris

于 2021-04-22T07:42:57.200 回答