My WordPress crashed, while I was activating Rank Math.

wordpress crash info

I immediately deactivated the Rank Math plugin by modifying the database, and my WordPress recovered.

After that, I checked the error message and it displayed the following:

wordpress crash error message

And the code is here:

wordpress crash code

So, the root cause was using $this->link without checking.

I added checking as follows:

Copy to Clipboard

It worked, and Rank Math could be activated without crashing.

However, a new issue arose – my Avada crashed:

avada crash info

The error message showed these:

avada crash error message

Root cause was the same, using $this->link without checking.

This time, I added checking before using in all functions in this file, it worked, both Rank Math and Avada were normal(Maybe there were new issues I hadn’t come across).

Why does WordPress not add checking before using?

Furthermore, I haven’t enbaled FTP on my server, and my relevant ENV information:

Copy to Clipboard