We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1829
    • 15 Posts
    I am buiding the website with several subdomains, it is based on the contexts, all the subdomains I have set up according to the manual ( http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts ).
    Also I have the subdomain where all the js/css/images files and assets directory is located.

    /var/www/vhosts/website.com/httpdocs - the main website, website.com
    /var/www/vhosts/website.com/dev.website.com - the subdomain dev.website.com
    /var/www/vhosts/website.com/lego.website.com - the subdomain lego.website.com, where all the assets are located

    I have created the TV named 'sitePic0' with Image input type. I need to store all uploaded images in the /var/www/vhosts/website.com/lego.website.com/uploads directory Thus I have specified this settings:
    base path: /var/www/vhosts/website.com/lego.website.com/uploads/dev/
    base path relative: no
    base URL: http://lego.website.com/uploads/dev/
    base URL relative: no

    Afterwards I have created a resource in the context that corresponds to dev.website.com and uploaded an image 'noarim.jpg' using filemanager for the 'sitePic0' TV. The image was successfully uploaded, it is shown in the file manager and exists on the file system in the right place.

    Than I tried to use phpthumbof: [[*sitePic0:phpthumbof=`w=224&h=168`]]
    but this gives me this error:

    [2011-11-23 23:32:23] (ERROR @ /var/www/vhosts/website.com/httpdocs/core/model/phpthumb/phpthumb.class.php : 1054) PHP warning: is_link() [<a href='function.is-link'>function.is-link</a>]: open_basedir restriction in effect. File(/var/www/vhosts/website.com/httpdocsnoarim.jpg) is not within the allowed path(s): (/var/www/vhosts/website.com/httpdocs:/tmp:/var/www/vhosts/website.com/lego.website.com)

    It looks like TV image variable path is not given to phpthumbof.
    Any ideas how to fix it?

    Thanks in advance!

    p.s.
    - the 'phpthumb_allow_src_above_docroot' is set to 'yes'
    - I use Revo 2.1.5-pl
    pp.s. sorry for my bad english
      • 1829
      • 15 Posts
      So, no ideas?...
        • 37143
        • 74 Posts
        antonlemon, did you ever figure this out....I have similar issue...mine after a site migration...
          • 4385
          • 372 Posts
          Me too! I am replying so I can follow this thread.
            DropboxUploader -- Upload files to a Dropbox account.
            DIG -- Dynamic Image Generator
            gus -- Google URL Shortener
            makeQR -- Uses google chart api to make QR codes.
            MODxTweeter -- Update your twitter status on publish.