edesilva
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Endless redirects…Both are set to: http://www.desilva.info/wordpress
I think I manually set those in wp_options based on reading one of the support docs, if those two URIs are “siteurl” and “home” in that database.
I’ll try to summarize the problem. The blog *mostly* works. However, there are certain instances–such as setting options–where the php code generates a redirect to something that looks like:
http://www.desilva.info/desilvainfo/info/wordpress/whatever.php
This doesn’t exist, and should be:
http://www.desilva.info/wordpress/whatever.php
For some reason, this is causing some sort of looping, and it goes back to the calling php routine, which just tries again with the same url.
The problem (I think) is that the host’s directory associated with “www.desilva.info/wordpress” is “/desilvainfo/info/wordpress”–in other words, the “/desilvainfo/info” shouldn’t be in the redirect.
But, I didn’t type those values in anywhere, so wordpress is (I’m guessing) doing some kind of call to get the current working directory (which my host is presumably returning as “/desilvainfo/info/wordpress”). I think I need to hardwire “/wordpress” into where that is happening to get things working right.
In the two URLs I showed in a prior post, wp_login.php is doing a redirect to wp_admin/option-writing.php in the wrong place, for example, but I can’t even find where wp_login.php references option-writing.php at all… (The loop shown was caused when I changed an option and tried to save changes in the control panel…
Forum: Fixing WordPress
In reply to: Endless redirects…OK, two sides to every coin, perhaps you can call it a host problem when the server returns the current directory as “desilvainfo/info/wordpress” instead of “wordpress.” But, I can’t tweak the host, only WP. Anyone have any idea where I’d start looking for the php code causing the problem? I know very little about php…
Forum: Fixing WordPress
In reply to: Endless redirects…Actually, I don’t think its a host issue–I never typed “desilvinfo/info” into anything. I suspect somewhere WP is using some function to get the server directory, which is returning “desilvainfo/info,” even though that is invisible to the end user and shouldn’t be included in the WP references either…
Argh.
Forum: Fixing WordPress
In reply to: Endless redirects…I’ve snagged the two urls its flipping between when its in its infinite loop… It goes from:
and
http://www.desilva.info/desilvainfo/info/wordpress/wp-admin/options-writing.php?updated=true
Just keeps going back and forth… gotta believe there is a bit of code somewhere that is responsible for the extra desilvainfo/info/, but I can’t seem to find it…
Tried changing the line in wp_options.php from:
define(‘ABSPATH’, dirname(__FILE__).’/’);
to:
define(‘ABSPATH’, ‘./’);
But that blew everything up. *sigh*