0

As per Wiris guide.

  1. Give execution rights to the web server user on the PHP files contained at to ckeditor/plugins/ckeditor_wiris/integration.
    → My settings: Folder "integration": 755. All files inside this folder: 754
  2. Give write permissions to ckeditor/plugins/ckeditor_wiris/cache and to ckeditor/plugins/ckeditor_wiris/formulas directories to the web server user. Those folders will be used to store formula MathML codes and temporal images.
    → My settings for these folder: 775

However, I get following warnings while trying to open Wiris "Math Popup", and doesn't open properly.

Warning: is_file(): open_basedir restriction in effect. File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../../../lib/moodlelib.php) is not within the allowed path(s): (/home/my_user_name:/usr/lib/php:/tmp) in /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php on line 39

Warning: is_file(): open_basedir restriction in effect. File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../lib/moodlelib.php) is not within the allowed path(s): (/home/my_user_name:/usr/lib/php:/tmp) in /home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php on line 39

Are my permissions correct? Do these warnings relate to file/folder permissions? I am using www.serversfree.com webhosting to test this out.

shaedrich
  • 5,457
  • 3
  • 26
  • 42

3 Answers3

1

It looks like there's an issue in your installation. Please check the plugin test page: <url>/ckeditor/plugins/ckeditor_wiris/integration/test.php. There shouldn't be any errors there. Please review the installation instructions at http://www.wiris.com/plugins/docs/ckeditor.

Wiris Support
  • 450
  • 2
  • 7
  • Test page shows all OK except "Creating a random image" that results in ERROR. The installation guide doesn't say much about what needs be fixed or changed in INI file. – user3399035 Mar 25 '14 at 16:12
  • Please check your server error log as you run the test.php page again and post or send us any errors you see. You should have either `allow_url_fopen=On`or CURL extension enabled. If you have `allow_url_fopen=Off` check that there are no CURL related functions in your disable_functions in php.ini. Does the file "392b9defa8cb3eaf2f8fec0cf3993738.png" exist in your cache directory (ckeditor_wiris/cache)? – Wiris Support Mar 26 '14 at 17:00
  • Thanks a lot WIRIS team. For time being I decided to use the ckeditor on your demo page, solves my purpose. – user3399035 Mar 29 '14 at 17:57
  • You're welcome! Don't hesitate getting back to us at support@wiris.com anytime. – Wiris Support Mar 31 '14 at 09:01
  • test .php giving me internal server error what can i do ? please help. – rahul singh Aug 03 '17 at 07:06
0

Your permissions are correct. Those warnings are related to an extra check in the /integration/bootstrap.php file, it checks a directory several levels above your working directory and you're not allowed to do so due to an open_basedir restriction in your server. This issue will be fixed in our next plugin release. To supress the warning simply comment the whole bootstrap.php file or add a return true; right after <?php.

Edit: This issue is currently fixed in our latest version.

Wiris Support
  • 450
  • 2
  • 7
0

Please give permission to 777 to folder named cache and formulas

inside path

ckeditor4/plugins/ckeditor_wiris

alim
  • 1
  • Using permission `777` should be the last resort since it makes your system open for intruders. It's recommended to add the respective user to the proper group. – shaedrich Apr 22 '21 at 09:37