We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36635
    • 41 Posts
    Hi, I'm getting these errors in the manager, the file phpthumb is trying to open is missing a trailing slash after doc root and before actual image path. opening "DOMAIN.com/httpdocsassets/" should be "DOMAIN.com/httpdocs/assets/"

    Thumbs are showing in the asset browser and upload/insert of images works OK. Does anyone know where this path might be getting mangled? Any ideas? Getting bunches of these in the logs.
    thanks,
    ---avibodha

    [2011-09-19 15:14:12] (ERROR @ /var/www/vhosts/DOMAIN.com/httpdocs/core/model/phpthumb/phpthumb.class.php : 1062) PHP warning: is_link() [<a href='function.is-link'>function.is-link</a>]: open_basedir restriction in effect. File(/var/www/vhosts/DOMAIN.com/httpdocsassets/images/....jpg) is not within the allowed path(s): (/var/www/vhosts/DOMAIN.com/httpdocs:/var/lib/php/session:/tmp)

    [ed. note: avibodha2 last edited this post 12 years, 7 months ago.]
      • 36635
      • 41 Posts
      looks like a side-effect of APC 3.1.9 and php 5.3.3. turned off APC and all is good.
      [ed. note: avibodha2 last edited this post 12 years, 7 months ago.]
      • I'm running into this same thing on PHP 5.2.6 without APC... the open_basedir is a red-herring because the filepath is missing the slash, so it's the wrong file. But any other ideas why the path is getting mangled?
          • 16348
          • 64 Posts
          I have also the same errors in the error log. PHP version 5.3.8 and no APC.
          My gallery seems to work as it should but it is annoying to see this warnings.
          • I tracked this down to something in a custom Snippet that was using deprecated code (i.e. stuff that was there in 2.0.8, but got removed in 2.1.3). So I didn't track it down any further, but it had something to those Snippets not executing correctly.
              • 22244
              • 144 Posts
              The warnings are filling up my error-log like crazy. How to fix this?