How do I password protect a page of posts on Wordpress? - wordpress

I have several pages on my site and I want to password protect a page which contains the latest posts.
Simply going to the admin panel and setting Visibility: Password protected isn't doing anything so.
How could I achieve this?

Follow these steps:
Check you browser console first may be some javascript file cause
of error.
If the issue not resolved with this, deactivate all plugins and
check console again. Then activate the plugins one by one
and check which one is conflicting.
If the error is still there change you theme to one of default WordPress
themes and check, has your issue been resolved.
If issue still there then update your WordPress core files only.

Related

Elementor page content screen keeps going blank when i try to edit

When i try to edit with elementor on my site, the page content is visible for about 3 seconds and then disappears. Elementor buttons dont work as well and updates dont reflect on main site.
I have cleared cache, increased wp memory limit and tried upgrading elementor.
Depending on the cache plugins you're using check if css and js files are being mimified/combined, sometimes it can create conflicts.
Also check elementor system requirements here:
What are Elementor’s system requirements?
You can go to Elementor > System info in your dashboard to see if all the requirements are met.
If trying all the above didn't solve the issue, I'd recommend disabling all plugins except Elementor and see if now the issue is resolved.
If it is resolved then it's a plugin causing the conflict, reactivate the plugins one by one to find the one causing the issue.
If disabling all plugins didn't solve the issue you could try switching to a different theme and see if that solves it.
If anything of these solutions resolved the issue you could enable debug log on your wordpress and see what pops up in the debug log file: Debugging in WordPress
Depending on the error shown you could look it up to find a solution or contact your hosting provider's support.

Wordpress Admin Dashboard not working. It does not load css files. Also the website is not able to edit using the customize buttons etc

I am not able to edit the Wordpress site at all. The dashboard looks like its not loading css. But also the links are not working, each time I press anything on the bare-looking dashboard, it takes me to Page not found. I am facing this issue because I changed the admin password from phpMyadmin using cPanel. From that moment, this is all messed up. It would be awesome if I get a solution for this. (Ps. I do have a backup of the site but it is old, so it does not have a lot of changes done recently, so I cannot roll back to old version
If you are using any cache plugin, then deactivate it, clear your browser cookies, also try to access it from different IP from another place.
Also, check this link for a better understanding.

Wordpress plugin is not working after migration to a new server

I have moved my wordpress site to a new server, and login.php is working right.
But in there many plugins is not working well, for example the login page is not linked to any other page after I submitted my username and password.
Here is the login page link:
https://cpalocate.ca/login/
I have entered the invalid username and password, it will also show the blank page, but not error page.
When I add this code in wp-config.php
define('WP_DEBUG', true);
it showed this text. " Notice: Constant WYZ_THEME_DIR already defined in /home/.....".
And I have fixed that, but the same problem.
Now there is no any error debug, but the login page is also not working.
I changed the php version of my site in cpanel, but the same.
Anyone has your idea to solve this issue?
It is possible (I'd even say likely) that on your old server it was using PHP 5.6 (or at least a different version of PHP than your new server) and now you're on 7.0, 7.2 or even 7.3. It would seem that if that's the case, some of your plugins are incompatible.
You should edit your wp-config.php and add
define('WP_DEBUG', true);
so that you can see the errors on your screen, at least until you figure out which plugins are causing the problems.
If it is a matter of PHP version, check with your host to see if they can roll you back, or you'll have to either contact the plugin author and have them update the plugins, or you need to fix the code yourself, based on whatever the error messages you see are.
Edit: if this doesn't solve your problem, first try a default WordPress theme like twenty-nineteen or whatever. If that doesn't solve it, then disable each plugin one at a time until you find the culprit.
I have turned off all my plugins and turn back it one by one.
I have found one of my plugins is caused this problem, it is PM Pro Settings.
So I deactivated it and there is no any problem now.
I am using other plugins on behalf of that one.

Error displaying oEmbed Wordpress

I've a problem with my wordpress website. When I insert some url for being embedded, it's not working fine.
Here is the issue URL : https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah
And here is the Screenshot :
When I try to visit the embedded url. It's return 404 not found. You can check the embedded url here, https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah/embed/
I've try these common solutions.
Update everything including WordPress, the theme and plugins. Available updates appear in Dashboard > Updates.
Deactivate all plugins in case there is a conflict. If the problem goes away while all plugins are inactive, then reactivate them one by one to determine which is causing the problem.
Switch to the default theme (such as Twenty Thirteen) then try to do what was not working. If the problem remains, it is a general WordPress or hosting issue. If it happens only while using our theme, please let us know.
Clear cache in both your browser and in any caching plugins that you are using (also disable services like CloudFlare, if used with your website).
Revert code changes if you have modified the theme’s code. If using a child theme, reactivate the parent theme.
But, seems no one work.
The WordPress post embeds don't seem to be working on your site.
This URL shows a live example of the problem:
https://www.duosia.id/windows/whatsapp-for-pc/
The two embeds present in that URL are returning a 404, therefore, oEmbeds are not loading properly and showing the 404 page:
https://www.duosia.id/windows/facebook-messenger-for-pc/embed/#?secret=kMPv636bx1
https://www.duosia.id/windows/line-for-pc/embed/#?secret=65m4VpxiYi
Have you tried testing those URLs in the plugin "Rewrite Rules Inspector"?
You should see something like this for any of the "embed" URLs:
index.php?name=$matches[1]&embed=true
Also, have you tried flushing the rewrite rules in WordPress or maybe setting the permalink structure to a different/default one (right now you seem to be using a structure of "category/post-name") to see if it changes anything?
For the file that you are embedding, are you uploading it to the Media Library or some other plugin?
First I would check on the server to verify that the file you are looking to access does exist.
Once you know that the file does exist, then repeat the steps you have listed again.

Plugins menu doesn't appear in the admin panel

I'm having a very simple problem. I'm new to WordPress and I'm trying to install a plugin.
Everyone says there's a "plugins" option on the sidebar-menu in the admin panel, but I don't see one! I've looked for it in all the sub-menus too.
Whenever I try to search for this problem, I get results about creating a plugin to show on the admin menu.
Anyway, how can I get the plugins menu to show up?
The issue is almost certainly related to one of two things:
1) You don't have permissions (are you logged in as admin?)
OR
2) The theme (or a plugin) has disabled the plugins menu.
After you've checked to be sure that you are an administrator, then you should attempt to view this page:
http://www.yourdomain.com/wp-admin/plugins.php (replacing www.yourdomain.com with your site's domain name).
If it's accessible, then it's time to start exploring the theme (which theme are you using?) and possibly some of the plugins that might have disabled the menu item.
FYI, the method to remove dashboard menu items is covered here: http://www.wprecipes.com/how-to-remove-menus-in-wordpress-dashboard
If you did double check your file permissions (i.e. 755 for folders and 644 for wordpress files on Linux), please consider editing your wp-config.php file and change
define('DISALLOW_FILE_MODS',true);
to
define('DISALLOW_FILE_MODS',false);
The Add New option in Plugins menu will show up, also if you have internet connection, possible updates will be shown up.
This what I found looking for the same problem, I guess this is your situation also:
If your site is hosted on WordPress.com:
Plugins: Plugins are tools used to extend the functionality of the WordPress platform. However, they are only applicable to self-hosted blogs and web sites using the WordPress.org software. Plugins are not permitted here at WordPress.com for various security reasons.
On wordpress.com hosted sites, you don't have permission to install plugins. You must have an own wordpress installation to do that.
I found this post searching for help with a similar issue with a self-hosted WordPress installation -- in this case it was a site that a friend had paid someone to make, but then took them off the work and asked me to help out.
There were several regular menu options missing -- it turned out to be down to a plugin called Admin Menu Editor that the previous web guy had installed to limit the options available to my friend, so they wouldn't mess with things.
In this case I could access the options for Admin Menu Editor by going to http://www.example.com/wp-admin/options-general.php?page=menu_editor
In one of my cases it turned out to be strictly file permission thing so apache users could not access the plugins directory.
I have never seen that problem before. However, try either expanding all the current menu items to see if "plugins" are listed there, or try deactivating some/all of your plugins to see if one of the plugins are conflicting somehow and making your plugins menu not display.
I know this is an old question but I hit this problem at work recently with a WordPress site I inherited that had been originally developed by an external company. I tracked it down to the roles assigned to the user account. The "admin" account I had been given was actually assigned a restricted role that didn't have permission to access most of the settings.
Fortunately, I have access to the database so I was able to modify the assigned role directly. The default database prefix in WordPress is wp but you may need adjust these steps according to your own database.
First, find the user_id in the wp_users table for the account you want to modify and then run the following SQL against your WordPress database.
UPDATE wp_usermeta SET meta_value = "a:1:{s:13:""administrator"";b:1;}" WHERE user_id = {your_user_id} AND meta_key = "wp_capabilities";
UPDATE wp_usermeta SET meta_value = "10" WHERE user_id = {your_user_id} AND meta_key = "wp_user_level";
The next time you log in with that user account it should now have administrator privileges.
If you are using the multisite feature of Wordpress you will only see the plugins menu if you are super admin.
In the menu go to "My Sites" at the top of the page then click "Network Admin". (If you do not have this option you are not super admin.) Under "Network Admin" click "Dashboard" and then the plugins menu will appear. In your Network settings you can enable plugins for the sites.
The issue I was having was even trickier: No one was super admin. I fixed this by overwriting the "is_super_admin" function (simply returning true always) and then editing the settings as needed, before removing the overwrite again.
If you install a local WordPress the Plugins sub menu will not appear for any of the sites you work. Click My Sites area at the top of the page then click Network Admin and then click Dashboard. The Plugins sub menu will appear there. Then install new plugins and use it on sites on which you are working.
Good luck.
For me, changing lines in wp-config.php worked. I changed:
define('DISALLOW_FILE_EDIT', true);
define('DISALLOW_FILE_MODS', true);
to
define('DISALLOW_FILE_EDIT', false);
define('DISALLOW_FILE_MODS', false);
There might be a couple of reasons for the same. Some of them are:-
Reason 1 - When the website is hosted on wordpress.com
Reason 2 - When the user is logged in with a non-admin account
Reason 3 - When the WordPress website/blog is a part of a multi-site-network and the network admin has disabled the plugin menu
Reason 4 - Plugins Conflict

Resources