Forums

[Plugin: Random Image Selector] Can't get it to see my images folder (2 posts)

  1. tracyberna
    Member
    Posted 9 months ago #

    I've used this plugin successfully before and I really like it. I'm just having a problem getting it to agree with me on where my folder of photos is located. It keeps telling me there's no such directory.

    I had this problem earlier before we redirected our nameservers and solved it: I had an extra forward slash in the main folder URL I'd entered. Now I've updated the nameservers so our "real" url is now associated with my client's hosting account (as opposed to the temporary IP address url). Things are still propagating, but now I can't get it to see the folder I want to use. I've checked the information I entered into Setup over and over again. To wit:

    The first part of the path to the folder (which the plugin pulls up on its own), is "/home3/sergiosf/public_html/wordpress/". I checked - my hosting cPanel says the home folder is "/home3/sergiosf/" After that is the public_html folder, and then a folder called "wordpress". So that's correct. Then I add "wp-content/themes/photocrati-theme/homepage," which is exactly what's set up and it says it's not there. I pulled up one of the images in the folder in question, just to make sure I wasn't crazy. At the url http://sergiosfstop.com/wordpress/wp-content/themes/photocrati-theme/homepage/Ayutthaya4.jpg, you get a big beautiful picture, no problem.

    Here are the error messages, just for posterity:
    Warning: opendir(wp-content/themes/photocrati-theme/homepage) [function.opendir]: failed to open dir: No such file or directory in /home3/sergiosf/public_html/wordpress/wp-content/plugins/random-image-selector/randomImage.php on line 200

    Warning: readdir(): supplied argument is not a valid Directory resource in /home3/sergiosf/public_html/wordpress/wp-content/plugins/random-image-selector/randomImage.php on line 202

    Warning: getimagesize(wp-content/themes/photocrati-theme/homepage/) [function.getimagesize]: failed to open stream: No such file or directory in /home3/sergiosf/public_html/wordpress/wp-content/plugins/random-image-selector/randomImage.php on line 216

    Warning: Division by zero in /home3/sergiosf/public_html/wordpress/wp-content/plugins/random-image-selector/randomImage.php on line 229

    Can someone spot what I'm missing? Is there a chance it's the URL change and this will perhaps resolve itself after that's has had a little time to propagate (she asked, reaching a little)?

  2. aishfak
    Member
    Posted 3 months ago #

    You put your image folder at root then this will work

Reply

You must log in to post.

About this Topic