Wordpress MU (WPMU) / Multi Site - Sometimes images isn't showing - wordpress

I'm still new here - but I hope someone is willing and able to help me with my issue:
We recently merged our regular old school Wordpress blogs into 1 WP MU/multisite installation.
But this came at a terrible cost.
I have 5 sites in my installation right now - and this is how I see them in my WPMU installation (for later reference):
Primary site:
site1.com
Secondary sites with own domain: (parked domain pointing at same server)
site2.com
site3.com
site4.com
Secondary site without own domain: (primary domain with subdirectory)
site1.com/site4com
All images IS WORKING on my primary site (site1.com).
On my secondary sites (with or without own domain), my images is sometimes working and sometimes not. I'll try to explain the pattern:
In the morning everything is typically working. It "feels" like the number of visitors and how much they "stress" the system will provoke image load errors. When "it's not working", usually half the images is loaded correctly and the other half isn't. Selecting one of the images not loaded and pasting the URL to a new pane/window and loading it alone ALWAYS works - no matter how quick and for how long I press F5 to stress the server.
So from above description I will try to conclude this error is related to how WP MU handles the secondary sites images. I think there is some "server forward"/"url resolve" logic different from WP MU and regular WP (I assume primary site works just like a regular blog).
So if someone could either:
Help me solve this issue in total
or help me identify the difference between primary/secondary url resolve
I would be so grateful !!
Thank you for reading this far no matter what!!
EDIT:
Just found a post on wordpress.org with the same issue - but no solution:
http://wordpress.org/support/topic/subdirectory-images-randomly-not-loading

I think its the problem of your WP updation. Have you ever done the Wp update after the installation, If so try to add the following code to your wp-config file.
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
If it also not working please post here, let search for a different solution.

Related

Some links broken after Update of Wordpress Multidomain Site

I have build a Wordpress site which is running on multiple (sub-)domains using the Plugin: WordPress MU Domain Mapping.
I have been out of WP-Development but had to update those sites. On the main site everything went great. After a few seconds, the site was updated.
The 3 mapped sites however are having a few problems.
After digging into the code i figured that no CSS or JS is being loaded anymore (404 Not Found)?
I can't seem to find the problem that causes this. What has changed so drastic that all those links are being thrown off?
Anyone able to point me in the right direction?
I'm happy to provide functions.php, header.php or anything else that could help to locate the problem.
In the end it was WordPress MU Domain Mapping.
Although at some points it was deactivated it still set the primary domains and caused funny redirects.
Got all pages running in directories now and just need to solve the mapping to sub-domains without the plugin (which should be a core-feature) since 4.5

What could be causing forced SSL on WordPress Login page? (ERR_SSL_UNRECOGNIZED_NAME_ALERT)

I'm working on a site that is share hosted at ipower(dot)com. I went to login via Wordpress. But after I entered my login credentials, I got forwarded to an https login page with the error: ERR_SSL_UNRECOGNIZED_NAME_ALERT
The url I start with is http://chpconsultants.com/wp-admin or /wp-login.php. Every time I enter my login credentials and then press the login button, I get routed to https version of those links.
After I've tried to login, if I go to the front end of the site, I can see the admin toolbar across the top of the page, but if I click on anything in the toolbar, I again get routed to an https page with the ERR_SSL_UNRECOGNIZED_NAME_ALERT error.
This is a wordpress site, v. 4.8.2. PHP version 5.6.30. It's using a basic version of Sitelock, so a firewall/CDN. I don't have, and can't get, SSH access.
Here's what I've done to try and fix it so far:
1) Going into the mysql db into wp_options and checking that the urls in both the siteurl and home are using http and not https
2) Deactivating all my plugins to ensure no conflict
3) Cleaning out my .htaccess file and re-setting it with the default wordpress .htaccess
4) Adding this to my .htaccess file:
RewriteCond %{HTTPS} on
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
5) Adding this to my wpconfig file:
define('WP_HOME','http://chpconsultants.com');
define('WP_SITEURL','http://chpconsultants.com');
6) adding this to my wpconfig file:
define('FORCE_SSL_ADMIN', false);
7) adding this to functions.php:
update_option( 'siteurl', 'http://chpconsultants.com');
update_option( 'home', 'http://chpconsultants.com' );
8) Clearing the wordpress cache numerous times throughout the above steps
9) Purging the SiteLock cache numerous times throughout this process
10) Creating a new wp user through the database and trying to login with that. I got the same https results
11) Contacting Sitelock to ask if there was anything in the firewall that might be forcing SSL. I spoke with a great tech support person there, who also happened to be highly experienced with wordpress. He actually took a look at the site himself and replicated the issue. He also looked at several things including all of the above steps I did and verified he saw nothing in the site that could be causing this problem.
If you've read this far, thanks for looking! Please forgive any formatting clumsiness. I'm still a newb on posting here.
Given all of the above, does anyone have any good idea of what else I might try? Or what might be causing this?
Thanks,
Mieren
I am on Bluehost Plus and had this error on one of my sub domains which had worked before. I had attempted to enable their free Beta CDN in addition to the existing SSL which triggered this issue on one of the sub domains but not another that I did the same to.
Support told me SSL and their CDN were not compatible together - the CDN install on the performance tab of the bluehost wordpress control panel is still hanging 3 days later with the spinning wheel saying "We're setting up your CDN. For now, feel free to start exploring WordPress or jump into building your website." Occasionally an 'unhandled exception' banner error shows up.
The first support agent said he would try to disable the cdn which could take 14 hrs to propogate which made no difference.
The 2nd support agent seemed confident of a fix by changing the A records and said it may take 4 hrs to propogate. This fixed it for me and I can now access all subdomains on SSL. The Performance tab is still hanging and creating errors though.
I ran into this exact same issue after upgrading from Basic Hosting to Plus Hosting on Bluehost and importing a new domain. I used the Free SSL from the Wordpress Tools, and was getting the above error on my HTTPS version (although HTTP was fine).
I had to open three tickets within 24 hours with their support, finally on the third time it was resolved.
The first two support people said it was an issue with SiteLock not working with SSL, so Sitelock would need to be disabled. After waiting the 4-8 hours they said it would take, there was no change.
The second go around was the same, except after waiting a little, my site instead gave the "ERR_CERT_COMMON_NAME_INVALID" error. After clicking the "Proceed Anyway" button, my site actually redirected to a random, completely different site I didn't own. Less than ideal...
The third support tech said the SSL cert needed to be uninstalled and reapplied, again with a 4-8 hour window. However, the site began working minutes after he said the changes were pending - so not really sure what's going on over at Bluehost. I get the feeling many of the Level 1 Support Techs don't have much technical expertise.
I had the same issue and contacted help. They changed the IP address and it started working right away. This was my case ID 00D36qEW6._50036dOPVh
Hope this helps someone

Wordpress Multi-Site in a SubDomain

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.

Broken Wordpress Admin

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

Posts disappearing and reappearing on wordpress

I have a wordpress site which is acting strange lately. It seems like the database is spontaneously rolling back a few hours from time to time. I have noticed it happen at least four times.
When I updated to wordpress 3.5, after a short time, maybe 30-60 minutes I noticed the nag to upgrade was back. I ran the upgrade a second time, even though I was certain that I had already upgraded.
I added a new category and changed a widget on one of my sidebars, only to find that my changes were gone the next day and I had to redo them.
I added a post yesterday, linked to it in various places and then returned several hours later to find the post missing. I rewrote the post from memory and put it back on the site.
This morning when I went to the site, the original post was back and the one that I had recreated from memory was gone. The post's id number was the same as the previous day. I think there was also a draft post that disappeared and reappeared as well.
One last clue which may or may not be related is that when I go to a page on the blog that should generate a 404 message I get a single piece of text which says: "defaced by t3ll0" I noticed this recently, within the last few weeks. I'm not sure how long it has been like that.
I ran Sucuri Scanner, and it found no evidence of malware. Any suggestions of how to troubleshoot this? Could this be a problem with my database rather than wordpress?
UPDATE: It appears that the primary problem I was noticing was because of two versions of the site being up simultaneously. The DNS settings had not been updated to the new site. I'm still investigating if the site was hacked.
You got hacked. "defaced by t3ll0" is the clue. Someone has control of your site and your hosting account.
Work your way through these resources and follow all instructions to completely clean your site or you may be hacked again. See FAQ: My site was hacked « WordPress Codex and How to completely clean your hacked wordpress installation and How to find a backdoor in a hacked WordPress and Hardening WordPress « WordPress Codex.
Change all passwords. Scan your own PC for spyware that may have grabbed your login and password.
http://sitecheck.sucuri.net/ is a good resource, but it scans for malware and not accounts that were hacked and are not being used to distribute malware or have spam links.
Tell your web host you got hacked; and consider changing to a more secure host: Recommended WordPress Web Hosting
You have not applied security may be at number of places.
1. File permissions, folder permissions.
2. Upload folder permissions.
3. Execute permissions.
Now, if you are not a developer how would you check for these vulnerabilities?
I am suggesting you to take a backup of your DB(Export it). Get rid of the existing WP core and reinstall it from fresh.
Delete all plugins and install them all from fresh sources.
If you have used a custom theme then get the backed up version of it and delete the current one as there is a deface to it.
And you can check for a lot of vulnerabilities with plugins like this: http://wordpress.org/extend/plugins/better-wp-security/
Rename your administrator account. Harden your password. Remove write permission from .htaccess and wp-config.php file.

Resources