ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP error: "not a valid Directory resource"

May 31, 2011 1:07pm

Subscribe [2]
  • #1 / May 31, 2011 1:07pm

    imaginesurf

    19 posts

    I have the EE system (renamed to something else) installed above root. When I run a simple PHP script from the homepage index, which opens an images directory under normal root, it gives me a “not a valid Directory resource” error.

    I don’t want to post the literal server path here, but it looks something like this:
    /home/accountid/domains/domainname.com/html/photos/

    I can access the http://www.domainname.com/photos directory from a browser, but EE seems not able to understand the location when I use the absolute path on the server (as I understand must be used).

    Any help?

  • #2 / Jun 01, 2011 5:35am

    John Henry Donovan

    12339 posts

    Hi imaginesurf,

    can you elaborate a bit more on your PHP script. How do you mean ‘open’ an images directory?

    I don’t have the full picture here yet but you can try changing the uri_protocol in your config.php to PATH_INFO from AUTO to see if that helps

    $config['uri_protocol']    = 'PATH_INFO';
  • #3 / Jun 01, 2011 8:02am

    imaginesurf

    19 posts

    I ended up recommending to my client that they request a refund. This was just one question among many others that took too long to get a response to and thus made development impractical.

    Evidently I had unrealistic expectations of EE support. Thanks anyway.

    Unsubscribing from this thread.

  • #4 / Jun 01, 2011 3:40pm

    Brandon Jones

    5500 posts

    imaginesurf, (in case you are still reading this 😉) please note our Support Policy. Going ahead and closing this one out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases