The Grid PHP Warning - Site intermittently not loading

We’ve been having the site not load for people intermittently (ERR_CONNECTION_TIMED_OUT), so I checked our error log and found dozens of PHP warnings for The Grid over the past few days. The most recent example is below:

[06-Apr-2020 16:25:28 UTC] PHP Warning: get_class() expects parameter 1 to be object, string given in /home4/********/public_html/wp-content/themes/x/framework/functions/plugins/the-grid.php on line 45

What is this error and how do I address it, whether or not it is the cause of the site load errors?

Hi Eoin,

ERR_CONNECTION_TIMED_OUT is not related to PHP warnings. See wordpress support documentation about the error.

The connection timed out error appears when your website is trying to do more than your server can manage. It is particularly common on shared hosting where your memory limit is restricted.

From the link, please check the suggestions you can try to fixed the issue. Let us know how this goes.

Thanks for clarifying that the two errors are unrelated. I’ll look into the time out error documentation you linked, but can you please assist on the [06-Apr-2020 16:25:28 UTC] PHP Warning: get_class() expects parameter 1 to be object, string given in /home4/********/public_html/wp-content/themes/x/framework/functions/plugins/the-grid.php on line 45 error?

We’re getting that same error, and only that error, approximately 50 times a day in our error log.

Hello Eoin,

What you are getting is just a warning message and not an error. Here is a related thread which might help:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.