Wordpress Visual Editor broken, it disappeared - wordpress

I don't know how the visual editor broke, it has just disappeared.
users >> Profile >> Visual Editor check box - it's ok
I don't have permissions for editing wp-config.php, for add code define('CONCATENATE_SCRIPTS', false );
I removed all plugins
I have permission for editing files into /themes and admin panel.
Can you help me to fix this problem?
Inspect element shows:
Mixed Content: The page at 'example.com/blog/wp-admin/post-new.php'; was loaded over HTTPS, but requested an insecure stylesheet 'fonts.googleapis.com/css?family=Raleway:700,800,500,300,400‌​';. This request has been blocked; the content must be served over HTTPS

You're probably using wordpress with incorrect SSL configuration
Possible solutions are:
Make sure that the settings > site url & blog url both have SSL version
Install SSL Insecure content WordPress plugin and configure it properly
Install cloudflare WordPress plugin and configure it too if you're using cloudflare
Hire a professional (I can fix this too for your site if you're interested)

Related

Wordpress 5.0.3 - "Updating failed" and "Publishing failed". Console log shows a 404 on /blog/wp-json/wp/v2/posts/1177/autosaves?_locale=user

I updated Wordpress to the latest version (5.0.3). Now, any time I try to post I get a red message that says "Publishing failed". If I try to save a draft I get "Updating failed".
In console, I'm seeing
https://mydomain/com/blog/wp-json/wp/v2/posts/1177/autosaves?_locale=user 404
When I test the URL with /wp-json/wp/v2/posts/ I get a 404. If i use ?rest_route=/wp/v2/posts/ instead, I get my blog. I'm using Post name for permalinks.
Is there a way I can change the WordPress editor to use the rest route that is working? Or can I change something in my Nginx config?
two easy solutions:
You should deactivate the security plugin, in my case problem was with Advanced Access Manager plugin that I deactivate it and problem fixed.
Use the Classic Editor plugin By WordPress Contributors, just install this plugin and use the Classic editor, here is the setting that you can use both classic and block editor.
Setting->Writing->Allow users to switch editors
then in the create page, you have this option
For block editor => Switch to Classic Editor
And Classic editor => Switch to Block Editor
I changed my Permalink to Plain, then it's working, else it's throwing the same error!
I guess this has something to do with permalinks and how url is rewritten. once I change my permalinks option to plain everything seems fine. I'm using a local install with nginx. hopefully will find out why this happens later.
I had a similar problem with WordPress 5.2.2. I couldn't save or publish a page (new or old). Although all requests in the page editor return 200 I realized that some requests had a request domain of my site and others a request domain of the hosting company. So, I went to Settings > General and changed the settings Site Address (URL) and WordPress Address (URL) to be the same value (I copied the value of Site Address (URL) into WordPress Address (URL)) and that fixed the problem with the editor.
Step 1: Open the WordPress and login as administrator. When you post new content or older content you will be getting error message.
Step 2: So, now choose the older version of Editor of WordPress instead to use new version. To choose older version go to settings and then click on writings. Here you can find option "Classic Editor" and if you will not find option then choose second option.
This is one option but if you are not fixed with this option choose second option such as
Open the WordPress and on the left side you have list of tasks to be performed in WordPress. Click on the option “Plugin” and you will be opened with the plugin screen. On the top of the screen, you have the button “add new”.
Step 3: After clicking on the add new button, new screen will be opened. There, you can see classic editor plugin. Kindly, download and install it. Once it is installed, then activate it by clicking on the “activate” button.
Step 4: Again, go the Settings option and click on the Writing. In the Writing section, you have many options such as formatting, default post category, default post format, default editor for all users, allow users to switch editors, post via email etc.
Click on the classic editor choice in default editor for all users. This makes you to work easy on content posting newly or updating the previous contents.
With wp cli:
wp core update (get the latest version)
wp plugin update --all (why not update plug ins too)
wp plugin install classic-editor (get this)
wp plugin activate classic-editor (activate)
When we get 404 in wordpress pages and publishing failed there could be an issue with .htaccess file.
Update your Permalink settings and check .htaccess file, If .htaccess file is exist, and it's correct, confirm in your server .conf file have
Or your .htaccess file is not able to override server configuration
<Directory /var/www/web-app-wordpress>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
Restart apache server after updating this code.

mixed content error with custom font that doesn't exist anymore

I have multilingual site, I install ssl recently(with let's encrypt), and used some plugin like really simple ssl, ssl insecure content fixer, http/https remover to fix mixed content error but none of these plugin did not fixed the problem. the I use google dev-tools, and see 6 mixed content error like this from 3 custom font, that doesn't exist anymore (i delete them):
Mixed Content: The page at 'https://www.safeducation.com/' was loaded over HTTPS, but requested an insecure font 'http://safeducation.com/wp-content/uploads/avia_fonts/type_fonts/yekan/yekan.ttf'. This request has been blocked; the content must be served over HTTPS.
I connected to host via ftp and ../wp-content/uploads/avia_fonts/type_fonts/ directory was empty. there was no other folder.
I downloaded the root directory to my host and search with atom, to find any http://saf... and change them in host but the problem still did not resolve
I'm confused because there was no any folder in ../wp-content/uploads/avia_fonts/type_fonts
can anyone help me, what should I do to fix this problem?
thanks for your time
It looks like you are using custom fonts and uploaded to theme options panel. just delete those fonts from theme option panel and re-upload one by one.
to get rid of mix content error please paste the code into your wp-config.php file
if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"] ) && "https" == $_SERVER["HTTP_X_FORWARDED_PROTO"] ) {
$_SERVER["HTTPS"] = "on";
}
Hope this will solve most of the issues.

Website is not accessible after force SSL

I have a big problem with a website I edited for a client.
My client said he enabled his free SSL from his host. I installed a force https plugin on his wordpress installation. After that, I edited the address to https instead of http (In general settings).
Now I can't access the website or the wp Login. Apparently the SSL wasn't activated.
This is the error I receive : ERR_SSL_UNRECOGNIZED_NAME_ALERT
Is there a way to either change the website address (from the settings) or disable the plugin?
To disable a plugin:
Using FTP, go to wp-content/plugins/, find the https plugin folder and rename it to something else it.
For change in general settings:
You could try to add the following code in wp-config.php file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Another way is to change those values directly in the database. Here is one article that shows how to do that.

Loading CSS and JS using HTTPS on Wordpress

I'm trying to force HTTPS on a wordpress site, but my styles and scripts don't loading.
When I display page source code with Chrome I can see styles and scripts use HTTP to loading, I don't understand why.
I set HTTPS in wordpress general/settings for website URL and for wordpress URL. It's a fresh wordpress install with a default theme.
I tried to add this in wp-config.php
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';
It works but when I want to login to https://www.mywebsite.com/wp-admin, wordpress display me this message:
"Sorry you are not allowed to access this page"
Any idea?
Have you done a replace on the database which replaces all old http urls to https? You use a seperate tool for this. Place the directory in the folder where you have your wp-config.php and it should connect automaticly to your database. Make a backup beforehand;
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Reverting the WordPress site name to localhost

I am a WordPress beginner and in the dashboard, under Settings --> General I changed WordPress address (URL) to http://a.com and Site Address (URL) also to http://a.com just in the curiosity to try the feature unknowing of the fact that it will lock me out.
I am using xampp for a localhost environment.
The canonical article to resolve this problem is on the WordPress website.
If you have a local copy of the website, you can edit your wp-config.php file and upload it to the site. Or, if you have SSH access to your site you can use a curses-based text editor such as Nano to make the necessary amendments remotely.
You need to override the domain settings you have made, and you can do so using this code:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Upload this file if necessary, and then refresh your admin screen. You may have to log in again. Once you get access to your control panel, fix your incorrect settings. You can then revert the changes to your wp-config.php file.

Resources