• I activated the plugin, checked the box for “Display Featured Image Above Post Content with H1 Centered Inside”, visited a single Post, and saw these messages:

    Notice: Undefined variable: post in /wp-content/plugins/genesis-simple-customizations/genesis-simple-customizations.php on line 143

    Notice: Trying to get property of non-object in /wp-content/plugins/genesis-simple-customizations/genesis-simple-customizations.php on line 143

    Seems like a cool plugin but not using it at this time.
    Thanks anyway.

    https://www.ads-software.com/plugins/genesis-simple-customizations/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Doug Yuen

    (@doug-yuen)

    Hi Clifford,

    I’ve got a couple of questions:

    1. Did you have a Featured Image assigned to that post?
    2. Did the image appear at the top?
    3. What version of WordPress are you running?
    4. What theme are you using?
    5. Are these notices only appearing in debug mode (not when WP_DEBUG is turned off)?

    Thanks. Hopefully I can fix the issues.

    Thread Starter Clifford Paulick

    (@cliffpaulick)

    Thank you very much for being a responsive developer!

    1. Yes
    2. Yes
    3. 4.4
    4. Modern Studio Pro Theme Version: 1.0 on Genesis Version: 2.2.5
    5. Yes

    I looked into the code and saw a few things:
    – There’s an ‘includes’ folder that is empty. If there’s nothing in it, the folder shouldn’t be there.
    – For testing, if I add global $post; at the beginning of the ewp_gsc_display_featured_image_above_post_content_with_h1 method, the WP_DEBUG messages go away.
    – As a permanent solution, if you search and replace all $post->ID with get_the_ID(), the WP_DEBUG messages go away.

    P.S. I saw #000000; is added to the background inline styling. I’d like to request this be removed (or be made filterable if there’s a strong reason to not remove it).

    P.P.S. I’d like to request the image size ‘full’ be customizable — via filter or, ideally, a GUI option. For example, a dropdown of all registered image sizes (https://developer.www.ads-software.com/reference/functions/get_intermediate_image_sizes/) and let user pick which size to use for the featured image area.

    Thank you very much! ??

    Plugin Author Doug Yuen

    (@doug-yuen)

    Sorry for the late reply. My developer and I are working on a major rewrite of the plugin. It’s still going to take some more time before it’s ready, so I wanted to reply before too much time passed. I’ll be sure to address the items you pointed out. Glad these are just WP_DEBUG notices and not error messages being printed out on normal viewing. Thanks for your patience and for providing all those specifics.

    I’m going to offer some premium extensions that add a lot more features. I’ll be supporting this plugin as the “base” plugin, and there will be optional extensions to choose from. It’s important to me to try to keep existing features in the free plugin, still add some new features in the free plugin, and maintain compatibility. Lots to keep us busy …

    Thread Starter Clifford Paulick

    (@cliffpaulick)

    Sounds good. tyvm for the reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP_DEBUG message — Display Featured Image Above Post Content with H1 Centered’ is closed to new replies.