WPIntell

Source evidence

Issue with Oxygen Builder

Solid Post Likes · support · 2022-08-24T18:07:00+00:00

mixedsentiment
mediumseverity
0.84relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 15 rows with source links

6.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

14 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Svezhara resolved
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 3 years, 9 months ago by Svezhara . This topic was modified 3 years, 9 months ago by Svezhara . Reason: Found partial solution 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, 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. 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, 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, 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,

Comments

5 shown
oacstudio 2022-08-26T12:55:00+00:00

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,

Svezhara 2022-08-26T13:52:00+00:00

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.

oacstudio 2022-08-29T15:57:00+00:00

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,

oacstudio 2022-09-19T19:23:00+00:00

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,

oacstudio 2022-09-26T19:12:00+00:00

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,