Can't activate WordPress plugin -- no settings page - wordpress

I am trying to install the JM Twitter Cards plugin and am having a problem I suspect is not specific to this plugin.
I clicked the "activate" link for this plugin in my local dev site, my staging site and my production site. In my local dev site, the plugin installed successfully. But in my staging and production site, the "Deactivate" link appears when the plugins list reloads, but there is no "Settings" link, and if I point my browser to the URL where the settings page should appear...
wp-admin/admin.php?page=jm_tc
...I see "Sorry, you are not allowed to access this page."
I've tried deactivating the plugin and re-activating, but I still do not have a settings page for this plugin in my staging or production site.

It caused by permissions. Yours might not be sufficient to view settings for the plugin. This specific plugin requires manage_options capability which is available to Administrator and Super administrator roles.
Refer to this doc to learn more about roles and capabilities

Related

I am redirected to my site homepage when I login using mysite/wp-admin instead of getting to the wordpress admin page

I am getting redirected to my website homepage when I login to the admin area in Wordpress or I get an error message saying 'Sorry, you are not allowed to access this page'
I just migrated my website from one host provider to another using the All in One WP migration plugin. I was able to access the admin area but once the backup, I am either being redirected to my homepage or getting the above error when I try to login. I have already tried to create a new user with admin privileges, modified the wp-config and htaccess files and even updating and changing the prefixes of the database. I have also tried disabling the plugin and theme files and none of them seem to work.
I just want to be able to login to the admin area of my WordPress site.
In such cases the steps I follow to resolve this case are:
Set .htaccess with only the default WordPress redirect rules, which you can check here.
Set the default TwentyNineteen theme as active. Since you do not have access to your admin dashboard you can perform this change by altering the "template" and "stylesheet" rows in your application database which both are located in the "_options" table.
The other option is via SSH. From the WordPress root directory you can execute the following command, which will change the currently active theme to TwentyNineteen:
wp theme activate twentynineteen
NOTE: No matter which option you choose the TwentyNineteen theme should be installed. If you have other WordPress default theme installed rather than TwentyNineteen, you can switch to it.
Deactivate all of the plugins. This can also be performed in two ways without access to the admin dashboard. The first option is to rename the wp-content/plugins folder to:
wp-content/plugins-backup
The other option is once again via the WP CLI tool with the next command:
wp plugin deactivate --all
Another NOTE: In order to use the WP CLI tool, please note that the same should be installed on the server. If you write the command and the terminal respond is:
-bash: wp: command not found
Or something similar ending with "command not found" this means that the tool in question is not installed. In this case you will be unable to use the WP CLI tool or you can ask your hosting provider to install this tool for you.
In my experience with this issue, after all of these changes are performed the access to the admin dashboard is restored. If the issue still persist even after the changes are applied, I would recommend you to contact your current host provider in order to understand if they have any custom Web Application Firewall (WAF) rules, default plugins/optimizations that could cause such issue.

Wordpress on IIS - Plugins were successfully installed but they don't show

I have installed WordPress on IIS 8.5 (Windows server 2012 R2) by installing PHP and MySQL without any problem. The WordPress website works normally and plugins (like any kind of sliders) installed with no error. but the installed plugin doesn't show on WordPress website.
-PHP have set on PHP Manager.
-Directory Browsing is enable.
-Full Permission granted on folders to : IUSR, IIS_IUSRS, windows current user.
-Various plugins have been tested: MetaSlider, LayerSlider, MasterSlider, NextGenGallery and so on.
as you said that "MetaSlider, LayerSlider, MasterSlider, NextGenGallery" these plugins are not working. I made a test with the MetaSlider plugin.
first thing you need to change in WordPress permalink setting.
make sure you use this setting in permalink:
then select the plugins and click on add new and installed the MetaSlider plugin.
and active that plugin.
add slide show using that and create a new page and added the slideshow.
after doing this publish the site and check the page by using preview.
if you still face some problem than clear the cache and the history of the browser and try to access the page again.

WordPress website pages are redirecting to adult site pages

I have a website built on WordPress platform. Today, when I opened the website and when I clicked anywhere on the website, adult site pages are opening up continuously.
Can anyone please suggest what could be done to resolve the issue?
Your site is hacked by someone and some script injected in your WordPress installation or database which causing to load this video your website need to scan your website using plugin like SECURI You can get this on Securi.net
Here are some solutions that you can try(Remember to take a backup before using this)
Check and clean all your recently modified files
Contact your hosting provider if you are not using dedicated server.
If you have some inactive themes and plugins which you don't need more remove them.Hackers can hide script there.
-You can upload new word-press core files which you haven't customised.
Install fresh copy of themes and plugins if you not customised them.
Change your secret keys in your wp-config file.
Check users in your word-press and delete suspected ones.
Check permission of your installation directory .if not secure them make changes.
Change you WordPress password
If this all not works to solve problem let me i will look into it.

All admin and frontend pages are working except admin dashboard in wordpress

In wordpress, All admin and front end pages are working except admin dashboard is now working... i changed in htaccess. permalinks and checked in theme and plugin
On dashboard below error is coming
The yve.today page isn’t working
yve.today is currently unable to handle this request.
HTTP ERROR 500
Please help how to resolve this
I believe you have changed something either in your functions.php of theme or installed a new plugin so because of that you are seeing this error.
A 500 error means there is something wrong with a piece of code being executed, this would in your case (most likely) be caused by a plugin or your theme, the only way to test this is through deactivation.
I suggest to access your server via FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/WhatYourThemeName/, open functions.php and remove the code you added recently. or find it the recent plugin have installed recently and deactivate that to check.
I personally would recommend installing WordPress locally and testing any changes there before you do it on your live site.

Wordpress Administrator access to plugins page

I recently downloaded the Advanced Access Manager Plugin for wordpress and accidentally removed the capability of the administrator to view the plugins page. Is there a place I can access the users/administrators capabilities with the wordpress php files to fix my mistake?
Go to the Access Control page i.e. http://example.com/wp-admin/admin.php?page=aam
Go to the Capability option and click the plus icon to "Add New Capability"
For the Capability Name add each of the following:
Activate Plugins
Update Plugins
Delete Plugins
Install Plugins
Edit Plugins
After adding the above refresh the page (might need to do a hard refresh).
The Plugin options should be added back.

Resources