Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter r00ki3

    (@r00ki3)

    Thanks, deactivating plugins, resetting plugins and switching to other themes didn’t solve it.

    Originally in themes that use a timthumb sort of script the following code can be found:

    unction get_document_root ($src) {
    
        // check for unix servers
        if (file_exists ($_SERVER['DOCUMENT_ROOT'] . '/' . $src)) {
            return $_SERVER['DOCUMENT_ROOT'];
        }
    
        // check from script filename (to get all directories to timthumb location)
        $parts = array_diff (explode ('/', $_SERVER['SCRIPT_FILENAME']), explode ('/', $_SERVER['DOCUMENT_ROOT']));
    
    	$path = $_SERVER['DOCUMENT_ROOT'];

    It’s my opinion that somewhere I have to define the right path. What I’ll do next is scan all possible files on the server for this sort of script.

    Thread Starter r00ki3

    (@r00ki3)

    Right…I’m sorry…I see what you mean. Accidentally the “under construction” page was still active for other IP adresses…

    My bad. It should be available now.

    Thread Starter r00ki3

    (@r00ki3)

    Thanks for checking, much appreciated.
    No timthumb call was found in plugins.
    under dashboard, settings, media is the url default (empty).
    I’ve tried changing this but it didn’t affect the url generation.

    About the source code, images, scripts etc. it is viewable…even a right-mouse-click should show you the source and eventually also the (broken) links to images etc. the rest is working fine.

    It’s just that one url generation stuff what I can’t get to work.

    Thread Starter r00ki3

    (@r00ki3)

    It is indeed…but this shouldn’t affect the problem solving I’m trying to do. It runs in an exact same environment, exact same setup and is having the exact same problems…

    It’s about the incorrect path being generated
    Instead of /home/vhosting/b/vhostxxx/domains/domain.nl/htdocs/www/folder//wp-content/uploads/2011/11/haven-veere-2-369376_207x136.jpg

    it should read something along the lines of:
    http://www.domain.nl/folder/image.jpg

    That’s what I’m trying to solve.

    Thread Starter r00ki3

    (@r00ki3)

    Another draft version is accessible on the following location

    http://www.martinstruik.nl/wilcovannoppen

    So far I’ve tried:
    CHMOD 777 upload location
    using ['fullpath'] instead of ["use_timthumb"]
    Moved to another server, clean db install

    It seems to me there’s a very simple solution to this in generating the right path, but I can’t figure out how…

    Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)