Jan Reilink
Forum Replies Created
-
supermango and George Lerner, thank you for replying. Please bear with me on this one ??
The problem I described in the previous posts was in an internal test-environment. Now I brutally migrated two of my WordPress sites to a multisite; saotn.org and itfaq.nl. Time to break stuff to get to the bottom of this ??
One thing I did different now, as opposed to last time, is I installed the WordPress MU Domain Mapping plugin through the WordPress Dashboard, as where I used the “mu-plugin” method the previous time. The process wasn’t much different, and after setting up my sites ( https://www.saotn.org as ID 1, and https://www.itfaq.nl as ID 3, after deleting the site once ), I couldn’t log in and the Chrome Webmaster tools showed my a cookie conflict. The cookie was still set on
.saotn.org
even though I wanted to log in on my child site itfaq.nl.So I looked at the sunrise.php file and noticed some queries on the
$wpdb->prefix_domain_mapping $wpdb->prefix_domain_mapping_logins
tables. Which were empty in my database…
Adding, editing and deleting sites didn’t change anything, the domain_mapping tables stayed empty. So I added some data with the following SQL statements:
INSERT INTO wp_sys_domain_mapping(id,blog_id,domain,active) VALUES (default,1,"www.saotn.org",1) INSERT INTO wp_sys_domain_mapping (id, blog_id, domain, active) VALUES (default,3,"www.itfaq.nl",1) INSERT INTO wp_sys_domain_mapping_logins (id, user_id, blog_id, t) VALUES (1,1,1,now()) INSERT INTO wp_sys_domain_mapping_logins (id, user_id, blog_id, t) VALUES (2,1,3,now())
Resulting in a successful log in to my child site itfaq.nl, sweeeet! ??
Don’t know why the tables stayed empty though, PHP didn’t log any errors (error_reporting on). Maybe someone can reproduce this, preferably on Windows Server IIS, otherwise I’ll mark this topic as resolved later.
Unfortunately not.
I haven’t had the time to look at it again, since was just a test set-up. However, I’ve planned some time to set up a new multi-site environment for two of my live sites, so maybe I have some additional information soon.
Forum: Plugins
In reply to: [WordLift - AI powered SEO - Schema] Site Keys and Consumer KeysHi David,
I just sent you an e-mail with the requested info (I’m experiencing the same issues registering the plugin). Forgot to mention my installed version is 2.5.18.
Regards,
JanForum: Plugins
In reply to: WordPress Optimization – code hacksNo one knows a better method?
Forum: Fixing WordPress
In reply to: Permalinks, IIS 6, PHP 5.2.1 (upgrade from 5.2.0)I believe to have permalinks properly function now. In cooperation with Helicon’s ISAPI_Rewrite. I have made one code change to wp-includes\classes.php:
// $req_uri = $_SERVER['REQUEST_URI']; $req_uri = $_SERVER['HTTP_X_REWRITE_URL'];
(line 46) and with the follwing rewrite rules (which I found on the Helicon forum):
# For file-based wordpress content (i.e. theme, admin, etc.) RewriteRule /php/wordpress/wp-(.*) /php/wordpress/wp-$1 [L] # For normal wordpress content, via index.php RewriteRule ^/php/wordpress/$ /php/wordpress/index.php [L] RewriteRule /php/wordpress/(.*) /php/wordpress/\?$1 [L]
Example (only temporarily online):
https://www.vevida.to/php/wordpress/