• Hey!

    I’m using the following to output the Simple Share icons in a custom file:

    if( function_exists( 'genesis_share_get_icon_output' ) ) {
         global $Genesis_Simple_Share;
         echo '<div class="share-icons">';
              echo '<div class="share-icons__icon"></div>';
              genesis_share_icon_output( 'icons__con', $Genesis_Simple_Share->icons );
         echo '</div>';
    }

    It works fine locally (Local by Flywheel) but when I push to WPEngine I receive the following error.

    : Trying to get property ‘icons’ of non-object (on the genesis_share_icon_output line).

    When I do a var_dump of $Genesis_Simple_Share on WPE it returns NULL, but locally it returns the object.

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Object Returning Null WPEngine Hosting’ is closed to new replies.