WordPress won’t save any post

my issue is similar to the one addressed in this question (WP won't save changes in post (any)

Long story short: all of a sudden 3 wordpress install stopped working. I type a post, hit "save as draft" – or publish – and everything seems fine at first look, but actually the post is not saved. If I go back to the dashboard > All posts, the post has been saved with title "Quick draft" and is completely emtpy. Also permalink is not saved. Oddly enough I can save a draft post using the dashboard home feature – the small box that lets you add content quickly from the dashboard home page. I can also upload images but I cannot set a featured image – the loader keeps spinning but the image is not attached to the post.

I suspected a cache issue, so I cleared the cache from my Hosting panel, but had no luck. I tried the Health Check diagnostic, but the plug-in diagonstic was fine. I disabled all the plug-ins, reverted to TwentyTwenty theme, cleared cache again, but still no way to save a post.

I contacted the hosting provider had a chat with a customer care rep who flushed the cache and I manage to save one post, but after that I had the same problem again. WordPress is up-to-date (version 5.5.1) and the dev versions of two of the websites work on my local install – so I don’t think it’s a plug-in conflict. As a workaround I managed to write the post on the local version, export it and then importing on the live website and it works, except that the post doesn’t have a featured image (it doesn’t get imported).

The hosting provider says it’s a development issue and I should ask a developer, since everything’s ok on their side.

Any suggestion before changing the hosting provider?

ModSecurity won’t apply rules – no error log entries [migrated]

I have a fresh installation of CentOS 8. I installed Apache 2.4.37 from the repo. Then installed the latest ModSecurity:

dnf install mod_security -y 

Checked the installation

dnf info mod_security 

Result:

Name         : mod_security Version      : 2.9.2 

The required Apache modules are available / loaded:

apachectl -M | grep security -> security2_module (shared) apachectl -M | grep unique -> unique_id_module (shared) 

Installed the core rule set from the repo:

dnf install mod_security_crs 

which automatically links the rules into the apache folder

/etc/httpd/modsecurity.d/activated_rules 

Rules have been checked / are at place.

The main config file

/etc/httpd/conf.d/mod_security.conf 

includes necessary further config files, including the rules conf files themselves:

IncludeOptional /etc/httpd/modsecurity.d/crs-setup.conf IncludeOptional /etc/httpd/modsecurity.d/activated_rules/*.conf IncludeOptional /etc/httpd/modsecurity.d/local_rules/*.conf 

(paths have been double-checked) and activates the rules engine:

SecRuleEngine On 

The rules config file modsecurity.d/crs-setup.conf (which is included in mod_security.conf, see above) provides

SecDefaultAction "phase:1,log,auditlog,deny,status:403" SecDefaultAction "phase:2,log,auditlog,deny,status:403" 

Apache httpd.conf calls ModSecurity:

SecStatusEngine On 

A restart (apachectl restart) shows that ModSecurity was loaded successfully:

ModSecurity: StatusEngine call successfully sent. <-- including LUA etc. 

Tests with manipulated URLs like a script insert:

/?q=%22%3E%3Cscript%3Ealert(1)%3C/script%3E%27 

show no reaction whatsoever on ModSecurity’s side. No entries at all in ModSecuritie’s audit and debug log files (debug level was set to 3), no errors in Apache’s log files.

sqlmap won’t give me results i’m looking for

I am trying to use sqlmap. Altho every times I use it, I just get a response of:

[13:39:11] [CRITICAL] previous heuristics detected that the target is protected by some kind of WAF/IPS   [13:39:11] [INFO] testing if the target URL content is stable  [13:39:12] [INFO] target URL content is stable  [13:39:12] [CRITICAL] no parameter(s) found for testing in the provided data (e.g. GET parameter 'id' in 'www.site.com/index.php?id=1'). You are advised to rerun with '--forms --crawl=2'  [*] ending @ 13:39:12 /2020-07-29/ 

I’m using the websites I find in the tutorials. But I always get this message. If not, it keeps asking me for stuff and then doesn’t work. Please help me. Heres the command I use: ‘python sqlmap.py -u "Enter-website-here"’. Heres the tutorial I’m using: https://www.binarytides.com/sqlmap-hacking-tutorial/

I want Lay on Hands, but I think Paladins are campaign-wreckers and won’t play one. What are my options?

I’ve DM’d for Paladins as PCs before, and my experience is that they can unwittingly derail a campaign, even without any effort or powergaming on the part of the player. As such, now that I’m a player, I refuse to play a Paladin. I don’t want to inflict campaign-derailing sidequests just because I accidentally broke the Code and have to go on a redemption quest just to be a useful party member; I don’t want to torment my DM with at-will detect evil, like I have been tormented.

I still like the character concept and some of the abilities though; I especially like their Lay on Hands class feature. So, as a first stab at finding acceptable alternatives to the Paladin class, I was wondering if there were abilities one could acquire that work just like or very close to Lay on Hands, but without being a Paladin.

Plugin settings won’t save changes

I’m creating a plugin which have few settings, I’ve created a settings page for it. Here’s the code:

function sswc_register_settings() {   echo "---------------------------------------------register_settings function called!";      add_option('sswc_color_option', '#A18DC6');     add_option('sswc_top_option', '400');     add_option('sswc_left_option', '100');      register_setting('sswc_options_group', 'sswc_color_option');     register_setting('sswc_options_group', 'sswc_top_option');     register_setting('sswc_options_group', 'sswc_left_option'); }  add_action('admin_init', 'sswc_register_settings');  function sswc_register_settings_page() {     add_options_page('Social Sharing with Claps', 'SSWC Settings', 'manage_options', 'sswc', 'sswc_options_page'); }  //Content for settings page will go here function sswc_options_page() {     ?>         <div class='settings-page-container'>             <h1>Social Sharing with Claps</h1>             <h2>Settings</h2>              <form method='post' action='options-general.php?page=sswc'>                 <?php settings_fields('sswc_options_page');?>                 <table>                     <tr valign='top'>                         <th scope='row'><label class="form-label" for='sswc_color_option'>Color Value</label></th>                         <td><input type='text' id='sswc_color_option' name='sswc_color_option' value=<?php echo get_option('sswc_color_option');?>></td>                     </tr>                     <tr valign='top'>                         <th scope='row'><label class="form-label" for='sswc_top_option'>Top Offset</label></th>                         <td><input type='text' id='sswc_top_option' name='sswc_top_option' value=<?php echo get_option('sswc_top_option');?>></td>                     </tr>                     <tr valign='top'>                         <th scope='row'><label class="form-label" for='sswc_left_option'>Left Offset</label></th>                         <td><input type='text' id='sswc_left_option' name='sswc_left_option' value=<?php echo get_option('sswc_left_option');?>></td>                     </tr>                 </table>                 <?php do_settings_sections( 'sswc_options_page' ); submit_button(); ?>             </form>          </div>     <?php }  add_action('admin_menu', 'sswc_register_settings_page'); ?> 

The problem is that it won’t save any changes I make in settings page. I’m suspicious its because the sswc_register_settings() get called everytime an resets the values? Please help.

Unity won’t slice images properly

Okay, so I am very new to Game Development and I imported a .png file(made in Paint) to the assets and that file contains just a circle and an oval, not touching and far apart from each other, both of them coloured blue. When I open the sprite editor and click on splice, then select Automatic and Delete existing options and then click slice, I do not get different sprites, one containing the circle and the other containing the oval. The image isn’t sliced at all. I have also set the sprite mode to Multiple, but to no avail.

Can someone help me and tell me what I am doing wrong? The engine I am using is Unity.