Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: random banner hack

    hi all, for those of you who have installed this plugin and got errors in the admins area, warning you about non-existent directories, I have found a solution. its a bit crude, but it works fine.

    I’ll explain my case, all directories are as I have them:
    the problem is originated because, in my site, wordpress is not at the root of the site.

    root folder is —-‘/’
    wordpress is in —‘/wp/’
    images are in —–‘/images’

    those warnings appear because I did not properly configure wordpress to work in a different directory than the root folder. I learned about that when I had been blogging for some time, and since I linked to my images and files using paths like ‘../images/bla.jpg’ changing would have been too much of a hassle.

    so this plugin complains because, once installed, it gets the paths ok, like this, and it works:
    $image_directory = “./../images/”;
    $image_url_dir = “./../images/”;

    BUT when you get in the admin area, wordpress complains, because in that case, the admin script expects the following directory to exist:

    ‘/wp/images/’

    and since that does not exist, because I host the images in the previous level ‘/images/’ the warnings appear, although the script works later. soooo…

    the solution I have found to avoid moving wordpress around and having to re-check all of my links is to replicate the directory structure.

    just creat the directory the admin expects to find, which would be ‘/wp/images/’ and place a single image in there, and hop, no more complains. it does not interfere with the normal use of the plugin, since it takes the images from the real directory, ‘/images/’

    hope this helps. cheers.

Viewing 1 replies (of 1 total)