nonce – Draft preview and customize permission problems on multisite main site

So I’ve been stuck on this problem for quite a while now and it feels like I’ve tried everything. I would love for some support here.

Setup

  • A WordPress multisite with Bedrock structure
  • PHP 7.3.17 (local) and PHP 7.2.24 (live)
  • Apache
  • Themes: Custom “mother theme” and child themes for each site.

Problem

The first site among the multisites seem to have some kind of structural problem. The other sites works just fine.

When previewing drafts on posts and pages the user (including superadmin) gets a message: Sorry, you are not allowed to preview drafts. I’ve tracked it down to _show_post_preview() in wp-includes/revision.php and it seems like the nonce check fails.

A similar problem occurs when customizing the site. When trying to save changes you get: You need a higher level of permission. Sorry, you are not allowed to customize this site. This error is thrown in wp-admin/js/customize-controls.js in function cheatin() which seem to be used when the nonce is off.

What I’ve tried (no luck)

  • Deactivating all plugins
  • Switching to one of the other child themes that works on their sites
  • Clear WordPress cache
  • Clear browser cache
  • Creating the nonce by myself in the preview_post_link filter.
  • Double, triple check .htaccess and wp-config.php (in Bedrock: config/application.php)

My .htaccess:

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - (L)

# add a trailing slash to /wp-admin
RewriteRule ^((_0-9a-zA-Z-)+/)?wp-admin$ $1wp-admin/ (R=301,L)

RewriteCond %{REQUEST_FILENAME} -f (OR)
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - (L)
RewriteRule ^((_0-9a-zA-Z-)+/)?(wp-(content|admin|includes).*) wp/$2 (L)
RewriteRule ^((_0-9a-zA-Z-)+/)?(.*.php)$ wp/$2 (L)
RewriteRule . index.php (L)

blockchain – Problems Setting a Transaction Fee on a Per Transaction Basis Bitcoind

I’ve spent hours and hours trying to find a solution to this problem, with no success.

Using Bitcoin Core on a Linux machine, so using bitcoin-cli to process commands back to the daemon.

Here’s what I want to achieve: I want to send a transaction and be able to specify a custom transaction fee in Bitcoin/KB on a “per transaction basis”.

So far, I haven’t found a solution. These are the areas I have been looking at:

Change the paytxfee global variable and then just send the transaction. —> If I do this, the resultant fee once the transaction has been sent is about 40% lower than what I specified in the paytxfee variable. Why is it smaller?

So…. does anyone please have any ideas how I can just send a transaction and specify a custom fee which is the actual fee used when the transaction is broadcast to the network?

Thanks in advance for your help.

Edit

Hi. Thank you for your reply. I’m panicking a bit as I have to get this sorted by tomorrow. I’ve tried setting “paytxfee” with the “settxfee” command. In the last example I sent a dummy transaction using “sendtoaddress”. I entered “0.00170” in the “paytxfee” global variable (170 satoshis per byte). Having looked at the resultant transaction on Blockchain.com explorer, only 114 sat/B were used instead of the requested 170. When I used “fundrawtransaction” and specified a “feeRate” option, it was calcultaing the fee on the virtual size rather than the total size, so once again I was getting about a 40% reduction in fees once the transaction was broadcast. I now have loads of transactions stuck!! Anyway, that’s not a problem as they were only tests… Any ideas how I can resolve this? Happy to send screenshots or maybe we can email/use messenger? Desperate to get this sorted …. Thank you so much!

magento2.3 – Performance problems with Magento 2.3.5-p1 out of box (no changes made whatsoever). Is tweaking necessary after initial install?

fresh install of Magento 2.3.5-p1 via Softaculous
php 7.2
4 x 2.50GHz Cores
8 GB RAM
160 GB SSD Space
5 TB Bandwidth
cPanel/WHM/Softaculous
5000 Mbps Network Out

We moved to a new hosting company which clams to be Magento friendly. We have a Cloud VPS package with the specs above. We are able to run Magento 1.9.x on there with no problems whatsoever. However, every time I tried to install a version of 2.x – we always seem to experience the same issue where both the front end and the back-end are extremely slow (we get the progress circle going round and round).

Most recently, I have installed the latest Magento version (2.3.5-p1) via Softaculous with Sample Data. When going through the front end ordering a sample product (which was already included in the default LUMA theme) – it is extremely slow (again – getting the progress circle going round and round and round – it eventually goes away). Also, the back end is the same – slow with the progress circle going round and round.

I have cleared and enabled all Cache. Index Management is set to Update by Schedule. I tried googling this but have not found any important steps one should do AFTER an out of box install (other than configuring store, installing extensions etc – we have NOT made any changes to the store at all).

Our hosting company confirmed that we meet all of the minimum system requirements.

enter image description here

enter image description here

Why could Sweden stay open and have no major virus problems?

"However, panic is exactly what many in the Swedish scientific and medical community are beginning to feel. A petition signed by more than 2,000 doctors, scientists and professors last week – including the chair of the Nobel Foundation, Prof. Carl-Henrik Heldin – urged the government to introduce stricter containment measures. "

We don't test enough, we don't follow, we don't isolate enough – we let go of the virus, ”said Prof. Cecilia Söderberg-Nauclér, a viral immunology researcher at the Karolinska Institute. "They are leading us to disaster."

Combinatorics – counting problems: prices

A dealer has a drawing to distribute prices. Fifty people will participate to win.

(a) How many ways can 6 winners be selected to win $ 100 each?

My Answer: I think there will be (50 choose 6) = 15890700 ways

(b) How many ways can 6 winners be selected for six different prizes?

My Answer: There are 50 choices for the first winner, 49 for the second, 48 for the third, etc. (50 * 49 * 48 * 47 * 46 * 45) = 11441304000

For the next issues, let's assume that three people each donated $ 100 gift cards.

(c) How many ways are there to select nine people from the 50 entries for these prizes?

My answer: (50 choose 9)

(d) How many ways would there be to select 6 winners and give them prizes and then award the remaining three prizes to the three committee members?

My answer: I'm not sure about that

Complexity of set partition problems – MathOverflow

given a universe $ mathcal {U} $ of elements and a system $ mathcal {S} $ of weighted subsets of $ mathcal {U} $ whose union includes $ mathcal {U} $.

Assume there is at least one subsystem $ S subseteq mathcal {S} $ so that the disjoint union of its elements $ lbrace s_1, , dots, , s_k rbrace $ Covers $ mathcal {U} $What is the complexity of finding? $ S_ {opt} subseteq mathcal {S} $that resembles disjoint coverage with minimal weight sum, d. H. is the restriction to covers with disjunctive sets enough to make the problem polynomial?

WordPress – Woocommerce and server problems

After a few months I have "finished" my website

Although I'm having a couple of problems right now, so I'm asking you, I searched, but I didn't find anything, so let's go:

The products (books) lead to an error page and the shopping cart does not work (within the products)

Update of plugins and PHP (Woocommerce active)
Online shop does not work
Shopping cart disappears from the homepage
"WP menu trolley could not recognize an active shop"

No books on the homepage (PHP 7.3)

Problems with autologin on a website using Curl with PHP

I try to report from PHP to a website but it gives me more headaches than I thought. I have the following function:

public function login($url,$data){
    $fp = fopen("cookie.txt", "w");
    fclose($fp);
    $login = curl_init();
    curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt");
    curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt");
    curl_setopt($login, CURLOPT_TIMEOUT, 40000);
    curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($login, CURLOPT_URL, $url);
    //Set a user agent. This basically tells the server that we are using Chrome ;)
    define('USER_AGENT', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36');
    curl_setopt($login, CURLOPT_USERAGENT, USER_AGENT);
    //We don't want any HTTPS / SSL errors.
    curl_setopt($login, CURLOPT_AUTOREFERER, $url);
    curl_setopt($login, CURLOPT_SSL_VERIFYHOST, FALSE);
    curl_setopt($login, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE);
    curl_setopt($login, CURLOPT_POST, TRUE);
    curl_setopt($login, CURLOPT_POSTFIELDS, $data);

    return curl_exec ($login);
    curl_close ($login);
    unset($login);    
}  

The curl does not issue an error and is executed, but the problem is that the login does not take place. I have a different function to open a page and every page I place works. If instead I try to hide the URL of the page I want to access without signing in, I am going to sign in because the sign in function is not doing its job.

I'm not an expert in this area, but if I can make sure that both the parameters and the URL in the function call are correct (I call it within a class):

$ this-> login ("https: /misitio/login.php", "username =". $ username. "& password =". $ password. "");

See if anyone can give me an idea of ​​what I'm doing wrong.

Thanks a lot