Support » Fixing WordPress » create_function error in essential-grid

  • Hi
    Is there are way to replace this deprecated function?
    I get this error:

    Deprecated: Function create_function() is deprecated in /customers/7/7/6/ on line 98

    The lines reads:
    add_action(‘widgets_init’, array(‘Essential_Grid’, ‘register_custom_sidebars’));
    add_action(‘widgets_init’, create_function(”, ‘return register_widget(“Essential_Grids_Widget”);’));

    Any help appreciated.


    • This topic was modified 3 years, 1 month ago by froekjaer.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • This is something Essential Grid will need to fix to be properly compatible with PHP 7.2+.

    If you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

    If you want this plugin to work with current WordPress and PHP, then perhaps the best approach would be to update it, although it’s a commercial plugin?

    Even if you manage to eliminate this problem yourself, you’ll likely encounter more problems down the road (compatibility with the new editor environment and current PHP, security flaws, etc.)

    Thread Starter froekjaer


    Thanks for the answers. Problem is that I have “inherited” a website full of errors and don’t have any records of purchases.

    If you inherited a site, then, most probably, any support period has already lapsed. So you could either start a new subscription, or if you still can get hold of your content, try to recreate your site with some other theme and plugins.

    Thread Starter froekjaer


    Hej Tor-Björn

    Yes, you are right. I will suggest to make a new website as I cannot even login to the admin anymore (maybe 5.0 upgrade?).

    If you connect via ftp and rename the directory /wp-content/plugins/ (for instance into /wp-content/plugins-old/
    And possibly rename the directory of your active theme then WordPress should load one of the twenty-something themes and let you log in.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘create_function error in essential-grid’ is closed to new replies.