Function “misha_editable_order_meta_general” not found or invalid function name in class-wp-hook.php:292

I migrated and restored the website in a new hosting with All-in-one WP Migration. Everything works fine for customer. However, when I tried to check the order in the Woocommerce, it says there is an critical error on the website. This is the log from the Woocommerce > Status. May I know how to fix it please? Thanks.

2021-08-01T00:07:04+00:00 CRITICAL Uncaught TypeError: call_user_func_array(): Argument #1 ($  function) must be a valid callback, function "misha_editable_order_meta_general" not found or invalid function name in /var/www/vhosts/yubake.my/httpdocs/wp-includes/class-wp-hook.php:292 Stack trace: #0 /var/www/vhosts/yubake.my/httpdocs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #1 /var/www/vhosts/yubake.my/httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action() #2 /var/www/vhosts/yubake.my/httpdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(310): do_action() #3 /var/www/vhosts/yubake.my/httpdocs/wp-admin/includes/template.php(1389): WC_Meta_Box_Order_Data::output() #4 /var/www/vhosts/yubake.my/httpdocs/wp-admin/edit-form-advanced.php(688): do_meta_boxes() #5 /var/www/vhosts/yubake.my/httpdocs/wp-admin/post.php(206): require('...') #6 {main}   thrown in /var/www/vhosts/yubake.my/httpdocs/wp-includes/class-wp-hook.php on line 292 

function ‘enqueue_block_styles_assets’ not found or invalid function name in /home/tk1u4k4kw9t4/public_html/wp-includes/class-wp-hook.php on line287

Below mentioned PHP error is blocking me from adding new post on my wordpress website. Kindly assist.

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘enqueue_block_styles_assets’ not found or invalid function name in /home/tk1u4k4kw9t4/public_html/wp-includes/class-wp-hook.php on line 287

Missing or invalid site address

I have a multisite with parked subdomains. The IPs on the parked domains are all set to point to the admin/main site, the DNS likewise. Two subdomains were set up last year seem to work fine. Adding two more now fail returning the error ‘Missing or invalid site address’.

The wp-config seems to be correctly set for domains and the URL seems to be correct in phpmyadmin. Disabling plugins has no effect, restoring from backup has no effect, but I haven’t been using the site for some weeks. I am the only admin. The webhost support looked into it but can’t see the problem and tell me it’s not server related (ie not their problem).

Window handle is invalid

I’m trying to implement an input listener for FNA (modern version of XNA). Since FNA does not supply any sort of way to listen to native input this has to be done through the windows API and native calls. This is how I set this up:

public KeyboardListener(GameWindow window) {     var procedurePointer = Marshal.GetFunctionPointerForDelegate<WindowProcedure>(Procedure);     procedure = new IntPtr(SetWindowLongPtr(window.Handle, GWL_WNDPROC, procedurePointer.ToInt64()));     if (procedure == IntPtr.Zero)     {         var error = GetLastError();         throw error switch         {             ERROR_INVALID_WINDOW_HANDLE => new InvalidOperationException("Invalid window handle"),             _ => new InvalidOperationException($  "Unknown error message '0x{error:X4}'")         };     } }  // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlongptra#parameters private const int GWL_WNDPROC = -4;  // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowlonga [DllImport("user32.dll", CharSet = CharSet.Unicode)] private static extern int SetWindowLongPtr(IntPtr hWnd, int nIndex, long dwNewLong);  [DllImport("Kernel32.dll", CharSet = CharSet.Unicode)] private static extern uint GetLastError(); 

I construct the keyboard listener during the Initialize method of Game:

class MyGame : Game {     protected override void Initialize() {         new KeyboardListener(Window);     } } 

This is the method call that reports the error: SetWindowLongPtr(window.Handle, GWL_WNDPROC, procedurePointer.ToInt64()) and it throws "Invalid window handle". It’s worth noting that the example code I saw converted the pointers to Int32 instead of Int64, but I am on a 64 bit machine so the pointers can not fit in 32 bits.


What I’ve tried & figured out so far…

  • Debugging tells me that both window.Handle and procedurePointer are non-null and at least point to something.
  • I have tried to initialize it earlier or later, but that doesn’t seem to make a difference.
  • Other native methods such as SDL2.SDL.SDL_MinimizeWindow(Window.Handle) work perfectly fine and don’t complain about the window handle.

What happens to a Chain lighting with invalid primary target and valid secondary targets?

This question asks what happens when a single-target spell has an invalid target. (A target that is not legitimately permissible, not a target that is weak from illness or injury).

The answer appears to be: that depends on whether one wishes to implement an older Sage Advice segment of a Dragon Talk podcast, or the more recent but optional written rules in Xanathar’s Guide to Everything.

Assume for this question that I prefer XGtE.

The rule for resolving invalid spell targets states (XGtE 85-86):

If you cast a spell on someone or something that can’t be affected by the spell, nothing happens to that target, but if you used a spell slot to cast the spell, the slot is still expended.

Now consider the chain lightning spell, in which

You create a bolt of lightning that arcs toward a target of your choice that you can see within range. Three bolts then leap from that target to as many as three other targets, each of which must be within 30 feet of the first target. A target can be a creature or an object and can be targeted by only one of the bolts.

Suppose my primary target for the spell is invalid, because it is not a creature or an object. If an example must be given, suppose it is an illusion. However, each of the three secondary targets of the spell are valid, being either creatures or objects.

Do I spend the spell slot with nothing happening at all, or does the slot get spent, the chain lightning impact the illusion but do nothing to it and then leap to the three valid targets with the full effects given in the spell description?

Note: I am assuming that an illusion is not an object, based largely on my interpretation that an illusion is not an "item" and on the text of the 14th-level School of Illusion wizard feature, Illusory Reality. I am open to frame challenges that demonstrate that illusions are, in fact, objects, but such answers will be better if they then either provide a more appropriate example of something that is not a creature or an object, or demonstrate that the question is moot since everything is at least either a creature or an object.

what wrong am i doing with SOAP request, getting error invalid timeout formats [closed]

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><SecurityHeader xmlns="http://services.medconnect.net/submissionportal"><UserName>2143883</UserName><Password><![CDATA[I3zt!7&W]]></Password></SecurityHeader></soap:Header><soap:Body><SubmitSync xmlns="http://services.medconnect.net/submissionportal"><request><![CDATA[ISA*00*          *00*          *ZZ*EXPEDIUM       *30*204202692      *200904*0419*^*00501*007281118*0*P*:~GS*HS*EXPEDIUM*204202692*20200904*0419*7281119*X*005010X279A1~ST*270*007281120*005010X279A1~BHT*0022*13*7281120*20200904*0419~HL*1**20*1~NM1*PR*2*BCBS OF NORTH CAROLINA*****PI*10383~HL*2*1*21*1~NM1*1P*2*BEAUFORT COUNTY HEALTH DEPARTMENT*****XX*1679576763~REF*TJ*566001521~PRV*PE*PXC*261QP0905X~HL*3*2*22*0~TRN*1*1013076869*9919649646~NM1*IL*1*BROWN*JEAN*M***MI*KBOW1747326401~REF*SY*141117752~DMG*D8*19650504*F~DTP*291*D8*20200904~EQ*30~SE*16*007281120~GE*1*7281119~IEA*1*007281118]]></request><requestFormat>EDI</requestFormat><responseFormat>EDI</responseFormat><synchronousTimeout>00:01:00</synchronousTimeout><submissionTimeout>00:01:00</submissionTimeout></SubmitSync></soap:Body></soap:Envelope>  Response ----------- <faultstring>Invalid Timeout Format: , Valid Format: d.hh:mm:ss, Note: Hours &lt;= 23, Minutes &lt;= 59, Seconds &lt;= 59</faultstring>  please advise on this 

Is a caster of Gentle Repose aware that a creature under the effects of Feign Death is an invalid target?

Alice (a wizard) & Bob (class unspecified), are planning an elaborate prank on Carol (a cleric). Alice casts Feign Death on Bob, and then wails about how he has been slain by a horrible monster/curse/whatever. Carol, who is, for some reason, friends with these jerks, comes running. Carol does not routinely prepare resurrection spells; instead, she casts Gentle Repose on Bob to preserve him for tomorrow, when she will prepare an appropriate spell to bring him back to life.

Is Carol aware that Bob is not a valid target for the Gentle Repose spell (since he isn’t actually dead), either before or after attempting to cast the spell?

From the PHB, p140:

Feign Death

You touch a willing creature and put it into a cataleptic state that is indistinguishable from death. For the spell’s duration… the target appears dead to all outward inspection and to spells used to determine the target’s status. ….

From the PHB, p215:

Gentle Repose

You touch a corpse or other remains. For the duration, the target is protected from decay and can’t become undead. …

Delete rows or columns of matrix containing invalid elements, such that a maximum number of valid elements is kept

Originally posted in stack-overflow but was told to post here.

Context: I am doing a PCA on a MxN (N >> M) matrix with some invalid values located in the matrix. I cannot infer these values, so I need to remove all of them, which means I need to delete the whole corresponding row or column. Of course I want to keep the maximum amount of data. The invalid entries represent ~30% of data, but most of it is completly fill in a few lines, few of it is scattered in the rest of the matrix.

Some possible approches:

  • Similar to this problem , where I format my matrix such that valid data entries are equal to 1 and invalid entries to a huge negative number. However, all proposed solutions are of exponential complexity and my problem is simpler.

  • Computing the ratio (invalid data / valid data) for each row or column, and deleting the highest ratio(s). Recompute the ratios for the sub-matrix and remove the highest(s) ratios. (not sure how many lines or columns we can remove safely in one step), and so on until there is no invalid data left. It seems like an okay solution, but I am unsure it always gives the optimal solution.

My guess is that it is a standard data analysis problem, but surprisingly I could not find a solution online.