dzarelli
Forum Replies Created
-
This is a local host so I don’t have cpanel access for it. However, I did start with a fresh install and a new DB called “wordpress”. I configured the vanilla instance and it works as expected. When I run the installer it succeeds but then there is no site available at the URL any longer. Could this be SSL related? The old site enforced SSL but the new site doesn’t have the certificate installed yet.
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersConfirmed – Removing the code from the platform pro theme fixed the issue. Thanks for all the assistance. It is appreciated.
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersThanks for the reply. I copied (verified) and uploaded the file you provided to my wp-content folder (/data/wordpress/wp-content/mu-plugins) and restarted IIS. I am still getting a 500 error whenever this file exists in the mu-content folder. I have no system logs in /var/log (there is no “syslog” or “apache2” folder there), however I enabled debugging as you suggested and noticed the following fatal error for PHP:
[12-Jul-2018 16:04:32 UTC] PHP Fatal error: Cannot redeclare switch_off_ure_administrators_protection() (previously declared in /data/wordpress/wp-content/mu-plugins/ure-supress-admin-protect.php:4) in /data/wordpress/wp-content/themes/platformpro/functions.php on line 20
This appeared to be a conflict between the settings defined in the php file we uploaded and the code we previously applied to the “platform pro” theme. Once I removed the code from the platform pro theme I was able to upload the php file to “mu-plugins” folder, restarted IIS, and the site(s) now render. We are testing the permissions no to ensure that admins can now grant admin rights to others. I will reply back once this functionality has been confirmed. Thanks.
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersThanks. I didn’t see that the quotes in my php file were different. I did a direct copy/paste of the code you provided, so I’m not sure how the wrong characters got in there.
I went ahead and created ure-suppress-admin-protection.php in my wordpress wp-content/mu-plugins folder using the code below (copied from the file itself):
<?php add_filter('ure_supress_administrators_protection', 'switch_off_ure_administrators_protection', 10, 1); function switch_off_ure_administrators_protection($supress_protection) { $supress_protection = true; return $supress_protection; }
I’m not sure what I’m still doing wrong here, but if I create the file and use the above code in it, the blog still throws a 500 error.
Any idea why it’s still throwing a 500 error after replacing the quotes? Where are the logs located?
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersThanks for the response. Which logs specifically should I check? I’ve uploaded the file as requested. Please visit the following link – https://www.dropbox.com/s/5p95za083ekvgaq/ure-suppress-admin-protection.php?dl=0
Thanks again for all the support.
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersI attempted creating a file named ure-suppress-admin-protection.php in /wp-content/mu-plugins. The file contents are copied below –
<?php
add_filter(‘ure_supress_administrators_protection’, ‘switch_off_ure_administrators_protection’, 10, 1);
function switch_off_ure_administrators_protection($supress_protection) {$supress_protection = true;
return $supress_protection;
}This resulted in a 500 error.
Am I doing something wrong here?
Thanks
Forum: Fixing WordPress
In reply to: 500 errorFixed it. I took the backup from the 14th and extracted it. Then I copied the files from the host to another folder and ran a diff (using windiff) against the two folders. The following files were missing on my webserver:
wp-settings.php
wp-activate
wp-signupI copied these files to the webhost from the backup and restarted httpd and the site now resolves. I still do not know what removed these files…
Forum: Fixing WordPress
In reply to: 500 errorJust ran a yum update on the host. Here are some of the updated stats:
PHP 7.0.30 (cli) (built: Apr 28 2018 08:14:08) ( NTS )
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 20 2018 18:10:38Forum: Fixing WordPress
In reply to: 500 errorReally appreciate the help. Forgot to mention; this site has been using the mh-elegance-lite theme. I renamed that folder under wp-content/themes. Is that the correct way to set it back to the default theme?
I don’t have a /var/log/php-fpm folder. Here are some details about the host:
PHP 7.0.29 (cli) (built: Mar 30 2018 08:06:59) ( NTS )
Server version: Apache/2.4.6 (CentOS)
Server built: Oct 19 2017 20:39:16
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg0-root 117G 3.9G 108G 4% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 8.5M 7.8G 1% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda1 488M 158M 295M 35% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/31946
* @global string $wp_version
$wp_version = ‘4.9.6’;Forum: Fixing WordPress
In reply to: 500 errorThanks for the response. I was setting perms to 777 to try and eliminate permissions as the culprit. Unfortunately, I cannot check with the host. We are hosting this site internally on a CentOS 7.4 machine. I’ve looked at the logs located at /var/log/httpd/error_log, but there is nothing relevant written there. I’ve also tried enabling debug logging but I’m not seeing any file called “debug.log” showing up under wp-content. This is what I added to my wp-config.php file –
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define( 'SCRIPT_DEBUG', true );
Any assistance with troubleshooting this issue is appreciated.
Note: I do have a site backup (zip) from 6/16. This backup was taken using duplicator I believe. It looks like the backup contains a database.sql file, wp-admin, wp-content, and wp-includes folders, and a suite pf php files for webroot. We made some changes to the site after this backup was made, so we’d rather recover the current build as opposed to restoring from an older backup if at all possible.
Thanks!
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersThank you for the response. My apologies, but is it possible to be a little more specific? I read through the “Must Use” plugin link you provided. Do I need to make the Role Editor plugin a must use plugin, or do I just need to include the filter code you provided in the mu-plugins folder? Would that code go in the mu-autoloader.php?
We have no must-use plugins in our environment so I created the mu-autoloader.php file I used the suggested code from the doc you linked:
<?php /** * This file is for loading all mu-plugins within subfolders * where the PHP file name is exactly like the directory name + .php. * * Example: /mu-tools/mu-tools.php */ $dirs = glob(dirname(__FILE__) . '/*' , GLOB_ONLYDIR); foreach($dirs as $dir) { if(file_exists($dir . DIRECTORY_SEPARATOR . basename($dir) . ".php")) { require($dir . DIRECTORY_SEPARATOR . basename($dir) . ".php"); } }
Adding that code alone seems to have no impact on the site, however, if I include the filter code you provided:
add_filter('ure_supress_administrators_protection', 'switch_off_ure_administrators_protection', 10, 1); function switch_off_ure_administrators_protection($supress_protection) { $supress_protection = true; return $supress_protection; }
This resulted in a 500 error for all blog sites.
This is quite confusing and I’m really not sure how I’m supposed to proceed. Could you please outline what steps I need to take? Any advice would be helpful.Thanks.
Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersOkay. Thanks for the reply. I’m a bit confused on a couple points here, so if you could clarify; Are you saying that if I use “User Role Editor” as a “must use” plugin that this alone will solve my problem or is it also a requirement to add the filter code you provided as well? If so, which theme would I need to apply it to considering this is a multi-site instance?
Thanks for the assistance and clarification!Forum: Plugins
In reply to: [User Role Editor] How to allow admins to grant admin permissions to othersIs there any additional information your could provide here? We are using a multi-site instance and there are dozens of themes applied across 109 sites in the instance. Would I need to ad the filter to every themes functions.php file? Any advice would help. I am currently forced to manually manage over 1000 users’ permissions until we get this working properly. Thanks
What is the “premium support” SLA for the paid multisite extension?
ThanksForum: Plugins
In reply to: [User Role Editor] Site admins cannot grant admin access to othersAny advice on this? I have over 100 sites with thousands of users and I need to be able to assign blog admins the ability to grant admin access to others. This worked before but something must’ve changed recently that broke this functionality. I spend most of my days managing permissions for users and need to be able to have admins self-service the delegation of permissions to others. Is there anyone that can help me figure out why this is no longer working? It’s been a week with no response. Any advice would help. Thanks.