Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation

Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation 19

I am creating a wordpress theme so for required plugins i am using a built in class called “TGM Plugin Activation”. After few months i started getting a fatal error as shown below. I started finding any update on TGM support but there was no update and they updated this class 4 to 5 years ago.

Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation 20

However, after some research i found the solution. Follow these instructions below.

  1. Let’s open the TGM class file named “class-tgm-plugin-activation.php”. You can find it inside your theme directory.
  2. Now search for “skin_update_successful” as shown below and remove onclick=”%2$s” at both places as shown in image below.
Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation 21
Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation 22

Once you are done with above steps, You will notice your error is gone now. yay!!.
If you still facing the same issue just let me know in the comments section below. Thank you.

Fatal error: Uncaught ArgumentCountError: TGM Plugin Installation 23
Rate this post