Patchstack File Permission Error
' . implode( '
', $files ), 'patchstack' ); ?>
Debug info: ' . $file . ' chmod permissions:
' . substr( decoct( fileperms( $file ) ), -3 ) . ', owned by
' . posix_getpwuid( fileowner( $file ) )['name'] . '', $this->allowed_html );
}
?>
How to fix?
CHMOD the file/folder to 755 through a FTP client, CPanel, WHM or ask your hosting provider. Make sure file or folder ownership is set to ' . posix_getpwuid( fileowner( ABSPATH . 'index.php' ) )['name'] . ' user .', 'patchstack_file_error_notice' ); ?>
CHMOD properly set but still not working?
Make sure the group/owner (chown) settings of the /wp-content/plugins/patchstack/ folder is properly setup, you may have to ask your host to fix this.', 'patchstack_file_error_notice' ); ?>
plugin->api->update_url( [ 'plugin_url' => $new_value ] );
}
}
/**
* When the firewall auto prepend option value is changed, ensure that we prepare the environment or remove it from the environment.
*
* @param mixed $option_name
* @param mixed $old_value
* @param mixed $new_value
* @return void
*/
public function update_option_ap( $option_name, $old_value, $new_value ) {
if ( $option_name != 'patchstack_firewall_ap_enabled' ) {
return;
}
// No need to perform if user is on free plan.
if ( get_option( 'patchstack_license_activated', 0 ) != 1 ) {
return;
}
if ( $new_value && get_option( 'patchstack_license_free', 0 ) == 0 ) {
$this->plugin->activation->auto_prepend_injection();
} else {
$this->plugin->activation->auto_prepend_removal();
}
}
}