I'm having trouble getting my Wordpress multi-site installation working the way I want it. I have 3 blogs that I want working in subdomains, and I want to use the main domain as the main website for other things.
So, I want:
Main Blog: stephen.digitaleagle.net
2nd Blog: linuxsagas.digitaleagle.net
3rd Blog: psst0101.digitaleagle.net
So, to log into the network, I would use this url:
stephen.digitaleagle.net/wp-admin/network
I can't be the only one who wants it to work this way. Instead, it seems designed to work with the main blog on the main domain and the other blogs as subdomains.
When I create the 2nd blog, it was:
linuxsagas.stephen.digitaleagle.net
I have gotten part way there...
Step 1: Created the site. (I actually used WP-Cli)
Step 2: I updated the wp2_option and wp3_option tables ... I changed the rows where the option_name field was siteurl or home.
Step 3: I edited the site on the sites page and changed the URL.
After those steps, the blogs show up on the correct URLs. My problem is that the admin logins don't work. I don't get an error message. it just doesn't log in for some reason.
If it makes a difference, I am using nginx instead of apache. I don't think that this the problem, because the URL takes me to wordpress.
Is there a correct way to do this? Is this not supported?
I finally figured it out by adding error_log() statements into the wordpress code and with this post:
Can't log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
I cleared my cookies for the site, and that's when I started getting the error message about cookies not being enabled for the site.
I added this line to the wp-config.php file:
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
I'm still not sure if this is the "right" way, but it is working, and I guess that is what counts.
Related
I have looked at similar questions but still receive the redirect error.When landing on a homepage URL the site resolves and displays for example http://www.test.co.uk . When selecting any link ie. http://www.test.co.uk/products the browser throws a "Too many redirects" error and the site become unusable. The only way I can get it back up is by clearing cookies and cache and trying again. What I find really confusing is that copying the http://www.test.co.uk/products link or manually typing the URL in resolves the URL correctly and I don't get "too many redirects" error. It only happens when I select a link.
I have tried the following:
Renamed the "plugins" directory to "plugins1" to disable the plugins
Reverted to the default wordpress ".htaccess" file
Ensure the site settings URLS matched in wp-admin area
SSL is enabled on the site but not configured to be used anywhere, all links (that I'm aware of reference http://)
Checked any redirects on the hosting via CPANEL (none exist)
Added these to the wp-config file
define ('WP_HOME','http://www.test.co.uk');
define('WP_SITEURL','http://www.test.co.uk);
I'm not sure whats changed in the last couple of days but we think a plugin got updated. Would disabling the plugins prove that its nothing to do with plugins?I'm new to WordPress so apologies if I got some terms wrong.
Any suggestions I could try looking at would be helpful.
Thanks
try to set Home url and site url to http://www.test.co.uk from your WP admin panel
I have setup the AMP plugin in WordPress but while going to see the AMP pages (Appearence->AMP), I saw an error "Non-existent changeset UUID".
Also there is message in console says,
"Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://test.com') does not match the recipient window's origin ('https://test.ve.staging.wpengine.com')."
Please help me to resolved it out.
I've recently taken over administration of a website that has historically been ... poorly managed, and upon trying to use WordPress' built in theme customizer, I was greeted with the same message: "Non-existent changeset UUID.", although I didn't get any related messages in the console.
Apparently my issue was caused by the fact that one of the people who set up the site to begin with had decided to put the public site at www.example.com and the WordPress admin pages at example.com/__wp.
If this is your issue, you basically have two options.
Make sure to log in at both domains.
This may be a little difficult since WordPress' login page is part of the admin portion of the site and thus only logs you in to the admin portion of the site, however this proved to be a good temporary solution for me as there was a plugin installed which added a login widget on the public portion of the site.
Change the WordPress Address to be on the same domain as your Site Address.
The Option appears under Settings > General, but in my case I couldn't change the WordPress Address setting there and had to go into the WordPress database in our company's MySQL server.
After dealing with the above issues, I discovered that this issue had also caused a bunch of resources to be incorrectly loaded from example.com that should have been loading from www.example.com, as well as a number of leftovers from the site's development that were causing some resources not to load because the database thought they were at localhost.
With the help of another Stack Overflow answer I found a Database Search and Replace Script in PHP by interconnect/it (also available on GitHub) which allowed me to repair the mess previous people had made of the website without making a new mess with incorrectly serialized data, or all of the work of manually, correctly serializing the data I needed to change.
I have a client who has asked me to start working on their Wordpress site. The admin page is broken and I do not have access to the database yet (I am trying to track down the previous people who worked on it). It is quite messy, I know.
What I am doing now is migrating peices over to a new wordpress site using Wamp server just to get it functional, but I am wondering if the solution is simpler than that. Ideally, I would just fix the the login, but I have minimal Wordpress experience and don't know where to start.
Here is the website: http://fundafighter.com
If you go to http://fundafighter.com/wp-admin you'll notice that it is broken. I reroutes to "login-2", which I don't think is normal. So far I haven't found any folder with that title...
I would log into the site via FTP, check the wp-config.php file for any redirects for wp-login.php. Then, check the .htaccess file for the same. Remove any references.
If you get that page working, and you need to reset the password, I would follow this tutorial through phpMyAdmin:
https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin
My host is nearlyfreespeech.org. I contacted them with this message:
"My problem is, when you navigate thru the menu on my site and click on the various links, I need the navigation bar to say http://www.paulaneeley.com/education-and-experience/, instead of paulaneeley.nfshost.com/education-and-experience/. How do I change all the links from the subpages I made on my site from paulaneeley.nfshost.com/etc to paulaneeley.com/etc ?"
And they responded:
"Take a look in the WordPress dashboard at the settings page. Probably one of these settings isn't using your own domain:
WordPress Address (URL)
Site Address (URL)
Once you find and fix that (so neither of them uses the paulaneeley.nfshost.com addres, this problem will likely disappear. "
So I changed the site's address to paulaneeley.com. I then got this error:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect.
File(/) is not within the allowed path(s):
(/f5/paulaneeley/:/nfsn/apps/php53/lib/php/:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/)
in /f5/paulaneeley/public/wp-admin/includes/misc.php on line 133
Warning: Cannot modify header information - headers already sent by (output started at
/f5/paulaneeley/public/wp-admin/includes/misc.php:133)
in /f5/paulaneeley/public/wp-includes/pluggable.php on line 881
I then tried to navigate back to my dashboard and I couldn't access it anymore! My browser gave me this error:
too many redirects occurred trying to open "http://paulaneeley.nfshost.com/wp-admin/".
This might occur if you open a page that is redirected to open another page which is then
redirected to open the original page.
I then read this article:
http://codex.wordpress.org/Changing_The_Site_URL
And tried both the functions.php method and the phpmyadmin method to return back to the original paulaneeley.nfshost.com, which I believe I both did correctly. My site works fine, but I still get an error message when I try to access my dashboard. At the least, I would like to get my dashboard back.
Maybe you've done all the things right, but the nameservers of nearlyfreespeech are stil not forwarding users to your site.
Test for yourself:
http://www.paulaneeley.com, opens just fine but when you remove a www. prefix, the site doesn't opens. A simple ping test to http://paulaneeley.com reveals that nearlyfreespeech's name servers do not have a record for http://paulaneeley.com. Ping returns with an error Ping request could not find host paulaneeley.com. Please check the name and try
again. Indicating there are no DNS records for http://paulaneeley.com.
So, contact them again, and this time tell them to fix this by registering http://paulaneeley.com in their nameservers. And if they ask for money, don't pay them any, because http://paulaneeley.com and http://www.paulaneeley.com are the same sites and www. doesn't mean anything that they should charge for.
And best of luck for your business, maybe one day I'll drop by and will get my hair styled, your work seems pretty cool. :)
And here's your login page,
http://paulaneeley.nfshost.com/wp-login.php
http://www.paulaneeley.com/wp-login.php
Apparently, you've edited your .htaccess file(by mistake?) which used to redirect http://www.paulaneeley.com/wp-login/ to http://www.paulaneeley.com/wp-login.php
In order to solve the problem, you will need to change the setting of your site's database where the root of your domain is found. You can do this by running a mysql update command.
Then, you can change your .htaccess setting.
Another way is to just install it all over again. Just make sure you have a backup of your data, media, and template. This time, make sure that you install it from your domain http://www.paulaneeley.com. Or http://paulaneeley.com. You can only choose one.
I have a wordpress site at http://myname.myprovider.info and I just bought the domain http://www.myname.com
Ive tried to change the URL in the backend at "Setting > General" both fields WordPress Address (URL) and Site Address (URL) with http://www.myname.com. The moment i click save, Im automatically logged out of the backend. If i try to log back in, I get a white screen.
The only way to log back in is to add in the config file the following line:
define('RELOCATE',true);
If then I go back to "Settting > General" I see that WordPress Address (URL) still has the http://myname.myprovider.com and everytime I try to change it again, the loop starts again...
What can I do?
you cant just change the url in wordpress ... you would need to move all the files to your new host
you can facilitate this in wp-admin
under tools select export and follow the dirrections
then setup wordpress on your new host
and goto wp-admin and select tools import and select the earlier exported file
If you're moving from a subdomain to the main domain, you have to move files. See Moving WordPress « WordPress Codex and How to Move WordPress Blog to New Domain or Location » My Digital Life and check with your host; the URL structure "myprovider.info" may be problematic, whoever the "provider" really is.
I had a very similar problem some time back and I'm trying to remember what the source of the problem was. Until I do, here are some ideas you may or may not have tried:
(obviously backup everything first!)
Check your code (theme, scripts, functions.php, etc.) for any instances of the old URL. Sure, we all know better than hard-coding the URL but...
Do a search through your WordPress database for the old URL. Carefully (very carefully!) replace it with the new one. In my experience some plugins aren't well behaved when it comes to storing the web site URL in the database.
Try disabling all plugins to see if one of them is causing a problem.
I assume you've set the DNS by hand, rather than your domain registrar putting in place some kind of forwarding?
After much tinkering, it turns out I didnt configure the domain properly :P Thanks for all the help anyway.