r00ki3
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Wrong path by timthumb after moving website – plz help!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.
Forum: Fixing WordPress
In reply to: Wrong path by timthumb after moving website – plz help!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.
Forum: Fixing WordPress
In reply to: Wrong path by timthumb after moving website – plz help!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.
Forum: Fixing WordPress
In reply to: Wrong path by timthumb after moving website – plz help!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.jpgit should read something along the lines of:
http://www.domain.nl/folder/image.jpgThat’s what I’m trying to solve.
Forum: Fixing WordPress
In reply to: Wrong path by timthumb after moving website – plz help!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 installIt 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!