
https://digi.vatlib.it/
If you are using mail() to send an email, with PHP, and you are getting the following error…
spf=neutral (google.com: 69.55.XXX.XXX is neither permitted nor denied by best guess record for domain of [email protected]) [email protected] Return-Path: <[email protected]>
You can force the ‘mailfrom’ by adding -f[email protected], after the headers.
$send = mail($to, $subject, $message, implode("\r\n", $headers), '-f'.$from);
If we need to toggle on a value, (for 1 to 0 and vice-versa for example), using a update, this is one solution…
UPDATE user SET profile_status = CASE WHEN profile_status = 1 THEN 0 ELSE 1 END WHERE user_id="1";

I was getting this a fatal error on a wp site…
Fatal error: Call to undefined function get_current_screen() in /home/slv01/www/public_html/wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php on line 1048
The solution? Add
require_once(ABSPATH . 'wp-admin/includes/screen.php');
to your theme/function.php



(XID h96ukf) Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.
Looks like we can disable this verification on CPANEL.
WHM > Server Setup > Tweak Settings
// Change WooCommerce related products title
add_filter('gettext', 'change_relatedproducts_title', 10, 3);
add_filter('ngettext', 'change_relatedproducts_title', 10, 3);
function change_relatedproducts_title($translated, $text, $domain)
{
if ($text === 'Related products' && $domain === 'woocommerce')
$translated = esc_html__('Check out our other products', $domain);
return $translated;
}

Edit your /usr/local/nagios/etc/cgi.cfg and on authorized_for_all_services add your htpasswd user.
qh: Failed to init socket ‘/usr/local/nagios/var/rw/nagios.qh’
For this, I had to edit my (/etc/nagios/)nagios.cfg and
QUERY HANDLER INTERFACE # This is the socket that is created for the Query Handler interface #query_socket=/var/lib/nagios/rw/nagios.qh query_socket=/usr/local/nagios/var/rw/query.sh
Another problem occurred while trying to start nagios..

For this problem, this is the solution found
mkdir /usr/local/nagios/var/rw chown nagios.nagios /usr/local/nagios/var/rw service nagios restart