Essential Grid Not Working - Depreciated function

Hi guys, the grid just stopped working all of a sudden, tried to disable the rest of the plugins to look for a conflict, but still not working. Enabled the grid error message - looks like something is depreciated

Deprecated: Function Essential_Grid_Db::get_essential_grids is deprecated since version 3.1.6! Use Essential_Grid_Db::get_entity(‘grids’)->get_grids() instead.

Hello @kcreative,

Thank you for the inquiry.

We will update the function in the upcoming patch. This should not cause errors right away because the Essential_Grid_Db::get_essential_grids function still exists. The grid is not displaying due to a script error on the page.

portfolio/:568 Uncaught SyntaxError: Unexpected identifier 'customSettings'

If you need get rid of the warning right away, please edit the cornerstone\includes\elements\classic_alternate\essential-grid.php file and replace the code around line 25:

$essential_grids = class_exists('Essential_Grid_Db')
        ?  Essential_Grid_Db::get_entity('grids')->get_grids()
        : Essential_Grid::get_essential_grids();

Let us know if the issue persists.

Best regards.

I did update the code as instructed, but the grid is still not displaying…

Thank you for the update. The grid works when we removed the custom settings from the API/JavaScript tab of the Recent Work grid. Please make sure that the script is valid – you may need to update this script to make sure it’s compatible with the latest version of the plugin.

https://pastebin.com/Ma5zKFjb

Portfolio Page: