Prob in the admin aera in wordpress - wordpress

Hello,
I have a problem in the admin area - I log in as admin and also see the menu structure on the left - but if I click on a link - e.g. theme , then I get this message
Forbidden
You don't have permission to access this resource.
this also happens with the other main entries such as plugins etc
i try
disable all plugins
import backup - files and db

Related

Wordpress Cannot login to Admin Dashboard

I log into my website
https://www.raisinghopesa.com/wp-admin
it redirects me to login and I login fine and the admin bar on top shows BUT there is no option for Dashboard, nothing just blank. I have checked the PHPmyadmin and I am an admin.
I tried to access the dashboard directly by going to
https://www.raisinghopesa.com/wp-admin/index.php after logging in and it told me I am not allowed to access this page
Tried:
Renaming plugin folder
renaming theme folder to force default theme
Created new admin user level 10 in PHPmyadmin
changed PHP versions in case of any conflict
Checked my Permissions

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.

How to Transfer Edited theme on Local Host to Azure?

I have to transfer my Local host edited WordPress theme to Azure WordPress.
I have edited a WordPress theme on my Local Xampp Server. After that, I got to know that to transfer my theme, I need to install a WordPress plug-in called Duplicator. I have installed and downloaded the generated files. Now, I want to transfer that theme to my newly made Azure Account WordPress
but I'm unable to do so and there is no descriptive video or post that I can find.
I can not find Azure WordPress root directory.
How to Move Your WordPress Site to Microsoft Azure: Step by Step Guide
Backup your WordPress Site with cPanel
Choose the “Full Backup” option which will include all your files and databases
Backup your WordPress Site with a Plugin
Install and activate the plugin and you will see a new menu item under “Tools” named “Backups”,click the “Settings” link and choose the “Database and Files” option.
Export Your Site Content
“Tools” > “Export” and choose “All Content” and download the Export file.
Move WordPress Content to Azure
Now you have your site backup, the content you will need to set the site up on Azure is as follows :
The /wp-content folder – This contains any uploaded images and files, your plugins and your themes
The Export file – This contains all your blog posts, comments, pages and any other content.
Upload Content Via FTP
Login to Azure portal and choose your website from the “Websites” link on the left-hand side, click your site name and the “Dashboard” and you will see a link on the bottom right named “Setup Deployment Credentials”
Enter a username and password in the popup box and these will be your FTP login credentials
Import Content- Download and import file attachment
To import your content, in the new Azure installation visit “Tools” > “Import” and select the WordPress importer from the list
Setting the Permalinks
“Settings” > “Permalinks” and choose your option there. For instance, choose “Post Name” and WordPress will create a “web.config” file for you ( on PHP hosting, the file is .htaccess )
You can follow this steps.
You can get the more details by
https://wplift.com/move-wordpress-microsoft-azure
https://whitepages.unlimitedviz.com/2016/10/migrate-wordpress-site-azure-inapp-mysql/

Unable acess dashboard after changing to https (error 400)

I install Wordpress on google cloud platform(bitnami).
When I changed site/home URL to https from settings, homepage is work but dashboard can not access even I enter the right username and password.
It show error 400. replying a posts is the same situation.
How do I fix it? Please help!
1) check your plugin folder inside /opt/bitnami/apps/wordpress/htdocs/wp-conten/plugins/? It should has permissions 775 and bitnami/daemon as user and group.
2) Check the content of the Apache error log file? You can find it at /opt/bitnami/apache2/logs/error_log.
3) Disable plugin simply rename plugin folder and load admin and check is it login.After that active it one by one.

Plugin edit made Wordpress.org admin panel broken

So I went and edited a plugin called Huge IT portfolio and added an echo "1"; exit(); in it and now i can't access the admin panel (yet i can access the site) it just gives me the echo 1.
What can I do to revert the changes to it? I can't even paste the code anymore since i can't access it
If you can access the admin panel anymore you have a few options, they all involve accessing the website via FTP.
Rename the plugins folder (ex plugins_old), logging in now will cause all plugins to disable.
Rename the directory of your specific plugin, logging in now will cause this plugin to disable.
Download the file you edited in the WordPress dashboard, undo your edits and upload it again.

Resources