Drupal Admin is not able to access edit views page - drupal

I have a Drupal site and the Drupal site's admin is not able to access the edit views page.
Lately, the site has also had the problem of Content Access permissions which required me to rebuild the permissions.However, the warning that 'Content Access Permissions need to be rebuilt' continues to persist.
Whenever I goto admin>build>views page, it redirects me back to admin>build page.
Could it be a problem of content access permissions? Should I rebuild it? Would it solve the problem.Its a cumbersome process and many a times, the permissions are not built properly so I was hoping to avoid it. Is there another way of doing it than through the admin console.

When you get redirected back to the build, it's because the path doesn't exist.
In Drupal when you go to admin/build/views, it try
admin/build/views
admin/build
admin
The problem is that views isn't installed, or that you need to clear the menu cache, which can be done at admin/settings/performance. If you needed permission, you would get an access denied page instead.

This happened to me, because somehow my views UI got disabled. I enabled it again on the module page and problem solved.

Related

Recaptcha blocks access to my WordPress editor

I tried to install reCAPTCHA v3 on my wordpress website, now I’m unable to login to the Wordpress editor to edit the site. Every time I try to log in, it displays an error: Invalid site key.
I tried to remove the domain and the site and secret keys from the reCAPTCHA admin page but the login problem is still there.
I believe I put some code in wordpress... but not sure what and where, maybe it was [recaptcha] in the Contact Form 7 5.1 but I'm not sure (I'm not a developer).
Log into your Cpanel or FTP.
Look for the directory /public_html/wp-content/plugins and rename the reCAPTCHA plugin folder.
For example rename "uber-norecaptcha" to "uber-norecaptcha123". Refresh your WP-admin url. Now you can log in. Don't forget to rename the reCaptcha to it original, then you can deactivate it when you're logged in.
You could try to disable the plugin that added the reCAPTCHA (in this case, Contact Form 7), so you can login again. Then, you can re-enable it and set your site and secret keys properly.
Since you are unable to login, you can't disable the plugin from the WordPress dashboard. Instead you can temporarily move the plugin folder to another location. Navigate to the folder of your WordPress installation → wp-content → plugins and move the contact-form-7 folder.
Just experienced a similar problem, and it persisted for 3 months.
But, finally, I found the solution and resolved it.
In my case, I went to public_html/wp-content/plugins/wpforo/wpforo.php (I don't know exactly if you have forum installed or not, but forum was causing my login page to inherit login recaptcha without any valid keys).
public function init_hook(){
//reCAPTCHA on wp-login.php page
//$this->api->init_wp_recaptcha();
}
This function was calling a recaptcha with invalid keys. All I did was comment out:
$this->api->init_wp_recaptcha()
Another solution to the problem is :
Visit your login page, right click and enter the Inspect section. Search for anything that uses wp-login.php in "script" tags. You'll find the plugin that is causing the problem. Search for multiple results and deduce a conclusion. That's what I did.

I can not access my WordPress dashboard because of a plugin called "Clef"

I have activated a Two Factor Authentication sing in method called "Clef" on my WordPress based site. It turns out they have shut "Clef" down on July 2017.
The problem is that when I want to sign in to my WordPress dashboard, I get a "loading clef login" page and nothing happens.
How can I remove it?
As promised, here are the steps you could take:
Option A:
Download FileZilla
Log in, using the Login Credentials supplied by your Registrar/Hosting Provide
Go to: /httpdocs/wp-content/plugins
If /httpsdocs/ is not there, simply head to /wp-content/plugins
Find the name of your Plugin (Presumably 'Clef') and simply delete the Folder.
Option B:
I am not sure who is providing your Domain/Hosting but you can always login via your Domain/Hosting Control Panel and delete the Folder from the Web files, that way.
If I were you, stick to Option A. Not only is it the most universal but something I would advise getting an understanding for, since you could use FileZilla to backup your Web Files in the future.
Any problems, drop me a Comment and I will help you along the way, if needs.
The easiest (and possibly the only) way will be going to the FTP server, going to wp-content/plugins/ directory and removing clef directory (or whatever is the name of this plugins directory name).
WordPress will disable this plugin automatically, if it doesn't exist anymore.

How to check permission rules in drupal?

I'm using drupal commerce and I added a new product (and product display).
I can see it in the listing, but when a user click on the product page, it's saying : permission denied.
All the other products works fine, it's only the last one which doesn't.
I tried to rebuild the permissions but that doesn't changed anything. How can I check what is "denying" the page ?
The Access denied backtrace module should help you
I found that for drupal 7, the devel module as a submodule called developper node access which shows exactly what I want. For this you need first to enable it and the active the access by user block. This block shows for every users if the current node is accessible and if not why (i.e. which module is denying it).
If your using Apache you might as well look at your .htaccess configurations. I faced a similar issue in the past and by using appropriate permission in the .htaccess file everything fell in place.
Refer http://www.digitalocean.com/community/tutorials/how-to-use-the-htaccess-file to learn more about configuring .htaccess file

How to resolve a bad plugin server 500 error wordpress

I was just working on a Wordpress site and after updating a plug-in (which had not yet been activated, only installed) I activated it. Instead of the activation working, it gave me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete >your request.
Please contact the server administrator, webmaster#ibsmithmedia.com and inform them of >the time the error occurred, and anything you might have done that may have caused the >error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an >ErrorDocument to handle the request.
I am getting this error on every page of my wordpress site, not just the plugin page or my user admin area.
How can I fix this? Is there a way to undo this plugin activation (I'm pretty sure it's what's causing the issue).
I don't have access to the actual FTP files of the site, I'm working on it for a friend. But I can get access if that's the only way to fix this. Thanks!
I would get access and delete the plugin.
That would be the fastest solution.
I ended up having to delete the folder for the plugin and then going to my htaccess file and remove extra lines that the plugin had added there as well. That resolved the issue.
First you need to connect to your website using FTP client, or File Manager in cPanel. Once connected, you need to navigate to the /wp-content/ folder.
Inside wp-content folder, you will see a folder called plugins. This is where WordPress stores all plugins installed on your website.
Right click on the plugins folder and select Rename. Change the name of the plugins folder to anything that you like. In our example, we will call it “plugins.deactivate”. Once you do this, all of your plugins will be deactivated.
Usually, this method is used when you are locked out of your admin area. If the issue was with your plugins, then you should be able login to your WordPress admin area.
Once you do that, go back to your /wp-content/ folder and rename “plugins.deactivate” back to plugins.
Now you can activate one plugin at a time until your site breaks again. At which point, you will know exactly which plugin caused the issue.

Give permission to administrator to view the plugin page

I am developing my own plugin.
Under my plugin's directory I have a file called migrate.php. I would like to be able to navigate to this page, without having it be in the left menu.
When I go to
admin.php?page=myplugin/migrate.php
// ERROR: You do not have sufficient permissions to access this page.
How can I grant permission to the administrator to view this page ?
My guess is that the page view is failing because the slug you are using isn't defined as a slug (ie by being added as a menu or submenu).
You could work around this by calling the PHP file directly, but then you'd need to include the WordPress loader to load the WordPress environment.
Hope this gets you a little closer ...

Resources