i have a wordpress site on my local server. I am able to access all the pages but only http://samplesite.com/wp-admin/theme-editor.php
it shows
You do not have sufficient permissions to access this page.
I changed the directory permissions to 777 using chmod. Still it shows the same thing.
I am able to access all other pages like /wp-admin all post links, i can install new themes, plugins create posts edit, add widgets etc.
The reason behind this, is your user permissions. Like wordpress assign some permissions to different types of users. Like everything is allow for admin but other users have limits. Maybe you're not the admin or You're using a plugin which block it.
Deactivate all the plugins then try again. If this error is because of any plugin then /wp-admin/theme-editor.php file will start opening correctly.
Related
We have a wordpress multisite (subdirectory set up). It was working witout issue a few weeks ago. (We generally do updates weekly to any necessary plugins and the core, etc.)
Both of the front ends of the sites work (what the users see). The issue is in the admin / dashboard access.
So in our case, we have:
network
us (main site)
ca
We can get to the main site admin without issue.
If we follow the link in that admin to our network dashboard, the link fails:
https://blog.konicaminolta.us/wp-admin/network/
If we update the link to include the "wordpress" directory, it works:
https://blog.konicaminolta.us/wordpress/wp-admin/network/
Our current directory setup is (and has been from day 1):
htdocs
wordpress
wp-content, and all other wordpress files, etc.
It seems like an update (core or plugin?) may have changed a setting somewhere?
We can get into the CA site, but we run into errors like:
admin-ajax.php not found
The CA site displays without any CSS of any kind
We tried to do a restore from backup, that failed as well. (Site went down with "critical error" and we had to do a manual restore from backup.)
Any thoughts? The primary questions is how / where we can fix the setup to account for the Wordpress directory or how else we can fix this issue.
This is probably caused by a plugin. Deactivate all plugins and see if the issue still exists.
I was given a PHP project based on a WordPress site. The thing is, I can't access the wp-admin panel. I saw a lot of questions about that on StackOverflow, but I couldn't find an answer to mine.
Login to WordPress is done through wp-config.php with the MySQL settings (I can see it because when I put wrong credentials I cannot access to the project's internal pages).
I was told I can access to the wp-admin panel by adding wp-admin to the URL. There is no wp-login.php file as it is an automatic login.
Actually when I put in my URL http://localhost:9999/html/pages/wp-admin (which is the location of my folder wp-admin), I just get the list of subfolders.
I connect well with an administrator account (in the database it is written wp_capabilities | a:1:{s:13:"administrator";b:1;}) however when I test with the current_user_can('administrator') function, I am not considered as admin.
Can you help me by directing me to where to look?
As per my comment to the original question, it could seem that you're missing some core files or functionality in your WordPress application. One way to solve this is to "manually" update your WordPress.
How to manually update WordPress: https://www.wordfence.com/learn/how-to-manually-upgrade-wordpress-themes-and-plugins/
I will also mention that it is generally a bad thing that your website directory is accessible through the browser display. The reason for this is that it will be easy for people with malicious intent to look for security breaches.
One way to prevent this is to edit your .htaccess file to include the following:
Options -Indexes
My WordPress website is hosted on GoDaddy VPS. Can able to make successful login to the wp-login page but when its redirect to the wp-admin page and I am getting HTTP 500 ERROR on all admin pages.
Its seems some PHP fatal error happens on the admin page. Please try by deactivating all plugins one by one via FTP (You can rename each plugin folder name, it will deactivate the plugin).
This is normally caused by .htaccess issues. Why not try to delete the .htaccess. And trying. If that doesn't help, hopefully this link might be useful https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/.
Before trying the "Re-uploading Core Files" comment on the progress. Will let you know others ways that might be workout.
I meticulously backed up a working WordPress site, files DB tables, the works. I moved it to a new server, got everything working, the site renders, the DB is recognized, etc.
The issue is anytime I try to log-in, after login the site always redirects to the homepage (mysite.com/index.php)
I have scoured every PHP page for text like 'site_url' and 'wp-redirect' 'redirect' looking for the offending code that will not direct me to the admin dashboard.
To be honest, I am not even sure what page the site is supposed to redirect to.
I can always reinstall, but then I'd get stuck with the daunting task of having to manually rebuild all the headers, with the images, embedded flash and the rest of it.
Since the site was working at the previous location, and not a single byte was lost on the move, with all the tables updated to show the correct server name, I am stuck on this issue.
I have looked at all the StackOverflow links related to this issue and none of them addressed my issue specifically.
WordPress never does such redirection. Some security plugin can do. To fix the issue. deactivate all the plugins, you can do this by executing following query
UPDATE `wp_options` SET `option_value` = '' WHERE `option_name` = 'active_plugins';
Once done login and activate the plugins one by one and check which one causing the issue.
I had to re-install WP altogether. Once I did that, I was able to login and see the WP dashboard.
To reinstall, I relocated all the files in the main directory and the wp-admin, wp-content, and wp-includes folder. All the other folders I left alone, because they are not affected by the WP install.
After the install, you will have to open the wp-config.php file to input the new db name, db user, db password and db host. What you will see is the WP install added a fresh set of tables in the db you named in the config file. The only folder you will then have to copy and paste is the theme folder from the old site into the themes folder in your new install.
Now that you can login (yoursite.com/wp-admin), to populate your dashboard, import all the records from the old db table into the new one (the one with the pages and posts you want). If you do that right, all the pages (and blog posts) should populate in the dashboard window.
For some reason, images are not showing up when not logged in as an administrator.
The issue seems to be connected to my use of views.
The images are part of a content type I created. The field type is image and I can pull the images from the node when accessing the node in a custom template and not using views.
But when using views, the images only show up when I'm logged in as an administrator.
I don't have any field/content permission modules installed, this is pretty bare bones with a Zen theme sub-themed. And I'm not doing anything funky with the view, just create it and add the fields I want to display. It works fine as administrator.
I can't seem to figure this one out. It seems like this is a permissions issue, but I don't see anything in the permissions configuration that would affect this behavior.
Any tips?
I appreciate that this is an old post but after days of trying to resolve the problem I have seen many of these posts and want to update with my solution.
My web host is classed as a shared web host which means for me that I don't have as much access to the server side as with other hosts. The control area for the admin on my host is custom and lots of stuff that I have with another host and previous hosts id missing.
I resolved the images not showing by adjusting the .htaccess file. There are 2 that I have found so far in Drupal 7.24 (one in the site root and one in sites/default/files/) and I had to adjust both of them by commenting out the options section and the symlinks section. There is info on this by googling "one.com Drupal Installation".
Once both htaccess files had been edited and the permissions had been changed on the "files" folder in "sites/default/" to "755" the extra folders where created when I uploaded my images and the images started to show fine. If like me you are unable to change permissions within your website hosts control panel you will need to do it with either an ftp client or via ssh.
I have this problem sometimes usually I cange folder and image files permissions to 0777 if all is ok to 0755.
admin->people->permissions->check 'view files' for anonymous user, save permissions.
Those images you uploaded with some multi-uploading modules are regarded as files, anonymous user need permission to view them.