How to Fix Undefined array key “action” on WordPress site running on Php8

I’m getting error PHP message: PHP Warning: Undefined array key "action" for this code:

function disable_lost_password() {     if ( in_array( $  _GET['action'], array('lostpassword', 'retrievepassword') ) ) {         wp_redirect( wp_login_url(), 301 );         exit;     } } add_action( "init", "disable_lost_password" ); 

How to fix it?

Can Lay on Hands be used to both heal hit points and remove diseases/poisons with the same action?

The Paladin’s Lay on Hands feature says:

As an action, you can touch a creature and […] restore a number of hit points to that creature.

It also goes on to say:

Alternatively, you can expend 5 hit points from your pool of healing to cure the target of one disease or neutralize one poison affecting it. You can cure multiple diseases and neutralize multiple poisons with a single use of Lay on Hands […]

Could I opt to do both at the same time? Perhaps an ally was struck by a crossbow bolt with drow poison, and I needed to both heal them as well as remove the poison in one go; is that permissible?

As written, it seems vague. The first paragraph specifies the use of an action to heal hit points, but the second simply indicates an alternative way for the hit point pool to be expended, but doesn’t seem to indicate that the use is exclusive from the first.

Can you use free action(s) as part of a Ready Action?

The most obvious example of this, which came up in regards to another question’s answer, is Quickened Casting Metamagic, but there may be other Free Actions that modify following actions or might otherwise be useful as part of Readying to act.

Are you able to perform one or more Free Actions as part of and/or when you perform your Ready activity activation?

help with readied action

we play on fantasy grounds and each round we roll a new initiative each turn to make it more random. my question is the fighter readys to attack the creature when it moves into his range. the creature moves but doesnt reach the fighter. next turn we roll initiative and the creature goes first. he moves into range and the fighter uses his action from the last round for his readied action, which is a reaction, now the creature goes and attacks the fighter. now its the fighter turn to go again? since the first attack was a reaction from the previous round. Does the fight go as normal and attack twice in the round and get his reaction back since he now had his turn?

How does moving silently with Greater Invisibility after taking an action work?

This question could be simplified with "How does moving silently away from enemy on same turn after casting Invisibility work", but I’ll present the full scenario in case it makes a difference:

A PC, who does not have special bonus actions, is under Greater Invisibility spell (or other equal effect) which allows actions without breaking invisiblity. At the start of their turn in combat, they are 10 ft (one empty 5 feet square between them on the grid) away from an enemy. They then move 5ft, uses their entire attack action to do a melee attack on the enemy (who does not go down). Then they tell the DM "I want to move back 5 feet, then use rest of my movement silently move away, so the enemy doesn’t know where I actually go."

What should DM respond, by the rules?

The PC can’t use hide action, or any action for that matter, because they already used their action to attack. Movement rules don’t have anything special about silent movement as far as I could find. But it also seems quite unreasonable and suspension-of-disbelief breaking to say "sorry, but you are utterly unable to move silently at this moment".

The reason the PC wants their location to not be known is to prevent the enemy from approaching to melee range and hitting them, in this case. The reason could also be the enemy using a spell like Moonbeam, or PC wanting the enemy to waste a blind ranged attack at PC’s (who could be in full cover now, even) last known location.

It’s of course easy to make a custom ruling here, involving some combination of PC Stealth, enemy Perception, and reduced movement rate, but I’m interested in what the rules say, including any language which supports handling this as part of a custom/improvised action, even though the PC doesn’t have an action to spare.

Does making an ability check take an action?

The only ability checks that are listed as an action in the game are Dexterity (Stealth) when taking the Hide action, and Wisdom (Perception) or Intelligence (Investigation) for the Search action. Do any other ability checks require an action?

My fighter was chasing a floating target, and needed to climb up a short but steep cliff. The climb and horizontal run to the target were within his movement for the turn, but the DM had me roll a Strength (Athletics) check to complete the climb. I was successful, but after arriving at the top and attempting to grapple my target, the DM declared that I had already completed a skill check, which was an action. I was still able to grab the target using Action Surge, however I still felt slighted, as I thought the climb shouldn’t have taken an action.

Who was right here? what if the ability check was an Intelligence (Arcana) check to recall some information, should that still require an action as well?

Does the mandatory piloting check at the beginning of a helm phase count as the pilot “acting” for the purposes of a Taunt action?

In starship combat, a successful Taunt captain action imposes penalties on opposing crew members for a period of 1d4 rounds if they "act" during the phase in which the Taunt occurs. To quote the rules (emphasis added):

If you are successful, each enemy character acting during the selected phase takes a –2 penalty to all checks for 1d4 rounds

So if the captain of Ship A Taunts Ship B at the beginning of the helm phase, before Ship B’s pilot has taken their pilot action, then the pilot of Ship B has the option to decline to take an action for that round in an effort to avoid taking the penalty for 1d4 rounds. However, the pilot must roll a piloting check that round to determine which ship moves first. This mandatory piloting check is not a starship combat action, but does it count as "acting" for the purposes of the Taunt?

When does a Taunt action take effect during starship combat?

According to Starfinder’s starship combat rules on the Captain’s Taunt action:

You can use the communications system to broadcast a taunting message to the enemy vessel. You select an enemy vessel and a phase of combat (engineering, helm, or gunnery), and then attempt a Bluff or Intimidate check (DC = 15 + 1-1/2 × the enemy starship’s tier). If you are successful, each enemy character acting during the selected phase takes a –2 penalty to all checks for 1d4 rounds; the penalty increases to –4 if the enemy’s check is made as part of a push action. Once used against an enemy starship, regardless of the outcome, taunt can’t be used against that starship again during the same combat.

My question is when do these penalties take effect?

Example of why this is unclear: In round 1’s helm phase, on behalf of an NPC crew, the GM rolls for the piloting check, a piloting stunt, and a science officer action. Then, after these rolls have been made but during the same helm phase, the player Captaining the PC ship successfully Taunts the NPC ship and rolls a 3 for rounds of effect.

Does the -2 penalty apply retroactively to the GM’s die rolls in round 1 and then continue for rounds 2 and 3? Does the penalty last until round 3, but the NPC crew escaped the effects for round 1 because the GM rolled before the player? Or does the -2 penalty kick in at the beginning of round 2 and last until round 4, guaranteeing the NPCs suffer three rounds of effects even though they avoided the penalty in round 1?

Does Mind whip prevent bonus actions if you take away an action?

The text for mind whip states

You psychically lash out at one creature you can see within range. The target must make an Intelligence saving throw. On a failed save, the target takes 3d6 psychic damage, and it can’t take a reaction until the end of its next turn. Moreover, on its next turn, it must choose whether it gets a move, an action, or a bonus action; it gets only one of the three. On a successful save, the target takes half as much damage and suffers none of the spell’s other effects

Meanwhile, the rules state

[…] anything that deprives you of your ability to take actions also prevents you from taking a bonus action.

If the target chooses a bonus action, it technically shouldn’t be able to do so, as it was deprived of its action. Or is this a case of specific beats general?

If I ready a action (spell) in response to a companion’s attack, what is a fair GM rulling over the order of events?

In our campaign, I have a cleric who wished to use Ready an Action as his move. His idea behind this was that he wanted to ready Guiding Bolt and the condition he set was that, when one of the player (fighter) attacked a creature (one of 2 trolls), he would release the bolt beforehand. Therefore the figther would have advantage on her attack if the Guiding Bolt hit first.

I ruled that the fighter hit first, but I’m not so sure now – and feel like I was unfair in my ruling, maybe.

I can see both points of view:

  1. If I was the cleric readying my spell, I would cast the spell as soon as I noticed my fighter’s companion intention to attack a creature.

  2. But, also if I’m the fighter and I’m 5′ away from a creature, maybe my attack would land first, before the Guiding Bolt.

I would like some RAW guidance on this please. But, if not explicitly available, then a response with lived experience of a GM on a similar ruling to do with resolving oder of events.