Not able to access WP Admin, it says “Sorry, you are not allowed to access this page.”

All of a sudden we are not able to get to the admin panel of the website. Once I log into /wp-login.php it redirects me to the homepage or /wp-admin (depending on whether I visited wp-admin in logged out state or not)

WordPress version: 5.6.2

When it does redirect to /wp-admin I see:

"Sorry, you are not allowed to access this page."

My first guess was that someone (maybe another user with administrator access) changed the roles. That wasn’t the case, I confirmed by looking at the database tables and the users had the wp_capabilities that corresponded to being an admin.

Then I tried a bunch of other stuffs and none worked:

  1. Created a new user using wp_create_user, added administrator capabilities, logged into that account from a private browsing window. Same.

  2. Went to the WordPress git repo searched for where "Sorry, you are not allowed to access this page." appeared, it did at many places so I added random string of text in some files to see exactly which one, it came from the file wp-admin/includes/menu.php in the last lines:

    if ( ! user_can_access_admin_page() ) {

  3. I thought maybe user_can_access_admin_page() returned wrong information for some reason, so I used a page template to output some data like so

if ( current_user_can('administrator') ) {     echo "Yes, admin"; }  if ( user_can_access_admin_page() ) {     echo "Can access admin"; } else {     echo "Can't access admin"; } 

Both returned true, yet the check on menu.php fails. Not sure why.

  1. Replaced wp-admin and wp-includes folder with fresh copies downloaded from WordPress org.

  2. Renamed the theme and plugin folders to rule out the problem coming from a plugin or theme. Not the case, it still was the same.

  3. Checked the error log of Apache2 as well as enabled debugging log for WP to look for any related error, none found. Nothing special, all the usual PHP notices that I have seen before.

  4. At one point I noticed the SSL certificate expired a month ago (problem started yesterday though) so just to be sure I renewed that as well, still the same.

Anybody who have an idea on what might be wrong would be a great help!

What do you do when a spell or something says that the target needs to do a saving throw without a number for the throw? [duplicate]

For command, it states, "The target must succeed on a Wisdom saving throw or follow the command on its next turn" without any context to how high the target needs to roll for it to succeed. What does the target need to roll to succeed that saving throw? Is the number specific for command or is it the same for all spells like this? I’d like to get all the info I can for this.

One of my players want to carry his familiar on his body and says it should not be targeted by enemies because it can hide on his body?

One of my players (of a rogue) said that he heard of DM’s allowing the familiar to be carried on the players body. He use his familiar to help him in combat and get advantage on the attack roll.

I said it’s okay for me and allowed it. But later in fight I played a goblin and obviously attacked his familiar in his pocket, to take his advantage away. He said that it shouldn’t be possibly because his familiar hides in a pocket and can’t be targeted. I didn’t allow that because it would obviously break the game. He said that many DM’s bend the rule like this and allow this.

I would like to hear whether anyone has ever allowed this change of the rules, and whether it did or will break the game.

Invisibility NOT doing more than exactly what the spells says it does

Please help settle this long running dispute regarding how the invisibility spell works. Invisibility when cast on an object makes the object vanish from sight.

https://www.d20srd.org/srd/spells/invisibility.htm

However a fellow players seems insistent on claiming this also provides an additional property not detailed in the spell description. Namely, for example, if the spell is cast on a closed door. the door vanishes from sight revealing the room or area beyond.

My counter to this is to point to the fact invisibility is of the illusion school and the property he is assuming the invisibility spell additionally possesses belongs fundamentally in the divination school.

A ring of X Ray vision for example relies on the spell True Seeing which is of the divination school. Similarly Clairaudience/Clairvoyance, a spell by its effect that would more adequately reflect the ability to see in to an area that is blocked to line of sight is also of the divination (scrying) school.

Is there a general rule regarding exceptions I can point to, that states along the lines of if an exception isn’t documented then it isn’t a principle of the game rule?

I think his problem is that he’s seen invisibility depicted in certain popular media such as sci-fi and fantasy films and assumed that the D&D invisibility spell must work like that by reference and inference.

Do characters start with the tools their background says they are proficient in?

I find it odd that some backgrounds give the character proficiency with tools but then do not list those tools under equipment.

For example, the Urchin:

Tool Proficiencies: Disguise kit, thieves’ tools

Equipment: A small knife, a map of the city you grew up in, a pet mouse, a token to remember your parents by, a set of common clothes, and a belt pouch containing 10 gp

Does the fact the Urchin is proficient with the disguise kit and thieves tools imply she starts with them? Or is she somehow proficient with tools she does not own?

What does the Wand of Wonder mean when it says “as if you had cast” vs. “you cast”?

One of the possible effects of the wand of wonder magic item is (emphasis mine):

You enlarge the target as if you had cast enlarge/reduce. If the target can’t be affected by the spell, or if you didn’t target a creature, you become the target.

There are multiple possible effects for the wand of wonder that use a similar wording. There are also many possible effects for the wand that say instead that "you cast [spell]".

Mechanically, what are the differences between the two wordings (if any)? What exact aspects of the spellcasting process/effects are different between the two?

Mysql says it failed to start but is up anyway?

I’me running MySQL 8 under Ubuntu 20.04 WSL2

I’m starting MySQL with sudo service mysql restart

Output is:

* Stopping MySQL database server mysqld      [ok] * Starting MySQL database server mysqld      [fail] 

But when I now run sudo service mysql status, I get:

 * /usr/bin/mysqladmin  Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu)) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.  Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.  Server version          8.0.21-0ubuntu0.20.04.4 Protocol version        10 Connection              Localhost via UNIX socket UNIX socket             /var/run/mysqld/mysqld.sock Uptime:                 45 sec  Threads: 2  Questions: 4  Slow queries: 0  Opens: 430  Flush tables: 3  Open tables: 27  Queries per second avg: 0.088 

Error log is:

2020-09-11T22:15:33.048074Z 11 [System] [MY-013172] [Server] Received SHUTDOWN from user debian-sys-maint. Shutting down mysqld (Version: 8.0.21-0ubuntu0.20.04.4). 2020-09-11T22:15:33.136150Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.21-0ubuntu0.20.04.4)  (Ubuntu). 2020-09-11T22:15:33.231510Z mysqld_safe mysqld from pid file /var/lib/mysql/LAPTOP-77E86FL8.pid ended 2020-09-11T22:15:34.784720Z mysqld_safe Logging to '/var/log/mysql/error.log'. 2020-09-11T22:15:35.002180Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2020-09-11T22:15:35.073728Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161) 2020-09-11T22:15:35.073742Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000) 2020-09-11T22:15:35.392127Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21-0ubuntu0.20.04.4) starting as process 6495 2020-09-11T22:15:35.412902Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2020-09-11T22:15:35.992356Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2020-09-11T22:15:36.261631Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock 2020-09-11T22:15:36.404215Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2020-09-11T22:15:36.404659Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2020-09-11T22:15:36.456568Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.21-0ubuntu0.20.04.4'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu). 

My issue is that sudo service mysql restart returns a non-zero status code.

What may I check or look for?

Thank you!

Fey Ancestry says “Magic can’t put you to sleep” and Brass Dragon has the ability to “exhales sleep gas”. Does the breath weapon affect elves?

I always assumed that elves/half elves were just immune to sleep effects, but re-reading Fey Ancestry, it says “magic can’t put you to sleep”.

Brass Dragons and Kamadans (Tomb of Annihilation p225) have Sleep Breath, and I just assumed it wouldn’t affect elves, but now I’m not so sure.

Am I just overthinking it?

Are there any other magical sleep effects besides the Sleep spell? If not, then I would assume it’s intended to include sleeping gas. But maybe the Fey Ancestry is a mix of magic resistance and “elves don’t sleep” so it really is just against magical sleep?

HTTP2 is enabled and working, but PHP $_SERVER[‘SERVER_PROTOCOL’] still says “HTTP/1.1”

I’ve been migrating to a new host (AWS Lightsail with a Ubuntu instance) and while everything is working just fine I’m running into a quirk that I can’t quite figure out.

I’ve enabled HTTP2 on my virtual server and confirmed that files are using that protocol (via DevTools and http2.pro):

HTTP2 working in DevTools

HTTP2 working per http2.pro

For reference, here is my server showing the Apache HTTP2 mod is enabled (and I did restart apache afterwords)

http2 mod already enabled

However, in PHP when I output $ _SERVER['SERVER_PROTOCOL'] on my server it is still showing "HTTP/1.1":

http1.1

php code

But this same exact software (WordPress theme) on other servers is showing "HTTP/2.0" correctly:

http2 detected with same exact code

I believe I have my Apache2 conf files setup correctly:

Port 443:

<VirtualHost *:443>     Protocols h2 h2c http/1.1 

and just to be thorough I did Port 80 as well:

<VirtualHost *:80>     Protocols h2 h2c http/1.1 

Unfortunately I do not have access to the conf files (or ssh) on the server that is working, so I can’t cross-reference those files.

I’ve been reading a bunch of tutorials on HTTP2 to see if there is any additional setting or configuration that I may have missed, but most are showing the same instructions that I’ve implemented.

Can anyone point me in the right direction as to why this PHP "detection" is incorrectly displaying the protocol, or if there is something I missed that is preventing PHP from using HTTP2 in this one situation?

it says, N Integrate has evaluated to non-numerical values for all sampling points in the region with boundaries {{0,20}

when I run the code it says,NIntegrate has evaluated to non-numerical values for all sampling points in the
region with boundaries {{0,20}

\[Chi][b_] := (Z/k1)*NIntegrate[Subscript[f, pp1][q]*Subscript[F, pp1][q]*BesselJ[0, q*b]*q, {q, 0, b}] +  (Nn/K1)*NIntegrate[Subscript[f, pn1][q]*Subscript[F, pn1][q]*BesselJ[0, q*b]*q, {q, 0, b}]   data = Table[{b, \[Chi][b]}, {b, 0, 5.1, 0.1}]