• Resolved pcbuildbg

    (@pcbuildbg)


    Hi there,
    I really enjoy your plugin, but there are some issue with Oxygen Builder. When place shortcode in repeater (query loop) I got warning message in both post and archive page.

    Can you elaborate to make it compatible with Oxygen Builder in some way, already tried another similar plugins – they do work, but most of them are outdate.

    The Error:
    Warning: Trying to access array offset on value of type int in /../../public_html/../wp-content/plugins/solid-post-likes/views/SolidPostLikesPublic.php on line 66

    EDIT:
    I found this piece of code on line 66:
    $post_id = $post_id['post_id'];

    If I change it to:
    $post_id = get_the_ID();

    Then it start to show in blog post and works, but it just dissapeared from blog archive when using it with shortcode.

    • This topic was modified 1 year, 10 months ago by pcbuildbg.
    • This topic was modified 1 year, 10 months ago by pcbuildbg. Reason: Found partial solution
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author oacsTudio

    (@oacstudio)

    Hi @pcbuildbg,

    Thank you for the feedback and reaching out.

    I am aware of the error. I think what happens is that I am not correctly typecasting here.

    Then it start to show in blog post and works, but it just dissapeared from blog archive when using it with shortcode.

    Indeed, that is why it is no quick fix. I suppose we have to case switch here to account for inside and outside the WP loop.

    I will try and fix this soon, but in the meantime you can turn off WordPress debugging. This is a PHP warning only and it will not hinder any functionality. Besides PHP warnings should not be displayed to begin with unless your site is a development environment.

    You can set this:

    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    in your wp-config.php to get rid of the warning.

    Source: https://wordpress.org/support/article/debugging-in-wordpress/

    Kind regards,

    Thread Starter pcbuildbg

    (@pcbuildbg)

    Hi there and thank you for your response. Yes, Im aware of that its possible to turn off warnings, but the like icon did not show up untill I did the change that mention in the previous post. Also shortcode does not reveal the icon in the loop.
    Will be more than happy if you fix it so I can use it in this project.

    Plugin Author oacsTudio

    (@oacstudio)

    Hi @pcbuildbg,

    Will be more than happy if you fix it so I can use it in this project.

    Fair enough :). I ll try to set aside some time to do get to this.

    Kind regards,

    Plugin Author oacsTudio

    (@oacstudio)

    Hi @pcbuildbg,

    Thanks for being patient. Here is a proposed fix: https://a.cl.ly/2Nu70yBZ

    Could you try this version and let me know if that removes the notice for you?

    Kind regards,

    Plugin Author oacsTudio

    (@oacstudio)

    Hi there,

    I haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issue with Oxygen Builder’ is closed to new replies.