Error fetching plugins in WordPress.com

Accessing to your site on WordPress.com, it appears a warning
Warning on WordPress.com
and clicking to the warning will appear the following message:
This site cannot be accessed.
Disconnect Site

This site cannot be accessed. Disconnect Site
If you click on the menu Plugins the error message will be:
Error fetching plugins on YourSiteName
Error fetching plugins

If otherwise when you saw the warning you decided click on Disconnect Site then the error will move to the Plugin in your site that will not be able to connect to WordPress.com and when you will click the button Connect Jetpack a warning will be showed as follows:
Your website needs to be publicly accessible to use Jetpack: site_inaccessible
Error Details: The Jetpack server was unable to communicate with your site [HTTP 403]. Ask your web host if they allow connections from WordPress.com. If you need further assistance, contact Jetpack Support: http://jetpack.me/support/

site_inaccessible

Cause:
Jetpack WordPress plugin is being blocked from accessing the XML-RPC file into your site. You can test the access using a URL like

http://www.yourwebsite.com/xmlrpc.php

Information:
If you contact Jetpack support in their answer will be written

"Unfortunately, blocking XML-RPC is not a great solution for fighting security risks.  It's akin to selling your car because you don't want it to be stolen.

Your site's XML-RPC file is kind of like a communication gateway to your site.  Jetpack, the WordPress Mobile Apps, and other plugins and services will use this file to communicate to your site.  If this is blocked, you will have other issues pop-up down the road for the same reasons.

I would suggest contacting your hosting provider and asking them again to unblock your site's XML-RPC.  The most popular hosting providers out there have managed to find other ways to protect their servers without having to hinder your site and your ability to use services with your WordPress.

If they refuse to make any changes, and if you want to use apps and plugins like Jetpack, I'd suggest looking for a new host."

Considerations:
As suggested by Jetpack support you could ask to your provider to fix this issue but I prefer fix it by myself 🙂

Solution:
Add the following lines in your .htaccess file

# BEGIN Unblock XML-RPC
<FilesMatch "xmlrpc.php$">
order deny,allow
allow from all
</FilesMatch>

# END Unblock XML-RPC

to allow access the XML-RPC file to everyone and install a plugin like Disable XML-RPC Pingback to block pingback requests as recommended by Jetpack’s author too (source: https://wordpress.org/support/topic/allow-xmlrpcphp-for-jetpack-only).

Did my solution solve your problem? Leave a comment.

Failed to write session data

Warning: Unknown: open(/home/content/123456/123456/tmp/sess_abc123456abc123456, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

Cause:
In my case these warnings appeared after I migrate my website in GoDaddy.

Solution:
Contact the support of your provider and ask to create the folder

/home/content/123456/123456/tmp

as from the error message (I inserted 123456 for example, in you case number will be different).

Did my solution solve your problem? Leave a comment.

HOW TO disable Mobile Theme in Jetpack

When you’ve activated the Mobile Theme it appeared an alert about how to deactivate it

HOW TO disable Mobile Theme in Jetpack

but maybe, like it happened to me, you didn’t read the message or you’ve forgot it.

HOW TO disable Mobile Theme in Jetpack

Solution:
Press the Learn More button

Mobile Theme in Jetpack

then the Configure button will change in Deactivate

Mobile Theme in Jetpack with Deactivate button

NOTE: This is the way to deactivate/disable each functionality in the Jetpack plugin.

Did my HOW TO help you? Leave a reply.

HOW TO disable mobile theme for Twenty Eleven

In Dashboard -> Appearance -> Editor
select the file HEADER (header.php), remove the following line

<meta name="viewport" content="width=device-width" />

then click Update File.

My experience:
Rather to disable the mobile theme support I suggest to to use an optimized mobile theme, now you can active it using the following plugin:

Jetpack by WordPress.com

Did my HOW TO help you? Leave a reply.

Tweet My Post suddenly stop working

When you publish a post Tweet My Post plugin suddenly stop working.

Solution:

Access to your WordPress Administration area wp-admin go to
Users -> Tweet My Post
write Your Twitter Handle and press Save Changes button.

Did my solution solve your problem? Leave a reply.

WordPress Plugin – “Add Link to Facebook – {Post Title}: Get me: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. @ {Current DateTime}”

When you publish a post Add Link to Facebook plugin shows the following error message:

Add Link to Facebook – {Post Title}: Get me: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. @ {Current DateTime}

Solution:

Access to your WordPress Administration area wp-admin go to
Tools -> Add Link to Facebook
and press Authorize button

Did my solution solve your problem? Leave a reply.

HOW TO Automatically Approve Comments in WordPress Blog

Dashboard -> Settings -> Discussion -> Uncheck the boxed labeled “An administrator must always approve the comment” and “Comment author must have a previously approved comment” in the section “Before a comment appears”

Did my HOW TO help you?