The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Absolute URL and links not working (4 posts)

  1. Phil Johnston
    Posted 5 years ago #

    Hey guys,

    I have installed several MultiSite's and there is a difference but I can't figure out what it is.

    Basically, if I want to run a script like timthumb (or any custom php script that exists "outside" wordpress) I can't reference that file.

    For example I am trying to access the thumb.php script I have in my theme directory. Here's a screenshot to prove that it is uploaded:

    Here's the link to it not working (and instead giving me a "Page not found" 404 error):

    The same thing happens when I try it with any custom PHP file. (EG: using the script found here: http://wpengineer.com/1038/embed-wordpress-functions-outside-wordpress/

    However, I also have WP Multi Site installs where it DOES allow me to access custom PHP files. I have looked through all the settings, .htaccess file and wp-config files to see if there are any differences and they are identical to the non-working MultiSite installs.

    I am wondering if it is a permission problem of some kind because I can access image files (example: http://mintthemes.com/wp-content/themes/MintTheme/screenshot.png

    But I can't access PHP files directly using their URL.

  2. Phil Johnston
    Posted 5 years ago #

    Hey Andrea - thanks for the quick response. I have actually solved the TimThumb problem with referring to the files properly.

    It isn't TimThumb I'm having a problem with - but rather pointing to ANY custom PHP file. TimThumb is just one example.

    You'll notice that, in my post above, the link to timthumb doesn't have a following image in a URL variable - because it hasn't even got that far. I could call the file "helloworld.php" and put nothing in the file. It still won't show it.

    It doesn't think there is a PHP file sitting there called thumb.php. It's triggering a 404 error which tells me it must be a permission issue of some kind...

    What that issue is I'm still trying to figure out. Thanks!

  3. Phil Johnston
    Posted 5 years ago #

    Doh! I figured it out. My permissions on the blogs.dir folder were set to 777 instead of 755. I should have checked that right away...

    Fixed now - thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic