We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Hi I get this error message when I try to find an image in the TimyMCE image option

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/makethemclick.com.au/httpdocsassets/plugins/seturl_js_tinymce.inc) is not within the allowed path(s): (/var/www/vhosts/makethemclick.com.au/httpdocs:/tmp) in /var/www/vhosts/makethemclick.com.au/httpdocs/manager/media/browser/mcpuk/browser.php on line 17


    Can anyone translate that for me and tell me what I actually need to do?

    Thanks

    grin

    Anyone?
      Content Creator and Copywriter
      • 28100
      • 66 Posts
      Was just coming to post about the same problem! wink

      In the error message you have "httpdocsassets" which should be "httpdocs/assets".

      One way around it is to edit manager/media/browser/mcpuk/browser.php (around line 15)
      from
      		$seturl_js_path = MODX_BASE_PATH . 'assets/plugins/';

      to
      		$seturl_js_path = MODX_BASE_PATH . '/assets/plugins/';

      AND
      In manager > Tools > Configuration > Interface and Features change File Browser URL from "assets/" to "/assets/"

      But I’m not sure what other problems this may create. smiley