I was using this action “learn-press/user-course-finished” and it was triggering correctly from finish_course function in wp-content\plugins\learnpress\inc\user\abstract-lp-user.php:657 (version: 4.2.7.5)
After last two release, this function is not being called anymore and now there is this new function called handle_finish in wp-content\plugins\learnpress\inc\Models\UserItems\UserCourseModel.php:926 (version: 4.2.7.6+)
This function has that same hook in the if condition:
// Hook old
if ( has_filter( 'learn-press/user-course/finish' ) ) {
do_action( 'learn-press/user-course-finished', $this->ref_id, $this->user_id, null );
}
But I think it should be:
// Hook old
if ( has_filter( 'learn-press/user-course/finished' ) ) {
do_action( 'learn-press/user-course-finished', $this->item_id, $this->user_id, null );
}
In this old code, Course ID was being passed as first parameter but now it is passing a $this->ref_id which is a Order ID.
I want to use that function, is this a mistake or should I adapt my code?
Are you guys using Slack or Discord?
Regards,
Saurabh
The issue is, When I paste the below given code of Fluid Player, Immediately after the ‘Title’ in the blog post, A huge Space or Margin is automatically generate by the WordPress ‘on the top of Blog Post’ which is “above the Title bar of the Blog Post not below the title bar” (Note: the Padding and Margin is checked already as per my knowledge the space below the Title bar will be adjusted using ‘Block Tab’ )
Does anybody faced this Issue?
Does any know about it ? and know how to edit/ add addition Code to solve it?
Thank you in advance for the answer
<script src="https://cdn.fluidplayer.com/v3/current/fluidplayer.min.js"></script>
<video id="video-id"><source src="MY VIDEO URL HERE" type="video/mp4" />
<script>
var myFP = fluidPlayer(
'video-id', {
"layoutControls": {
"controlBar": {
"autoHideTimeout": 3,
"animated": true,
"autoHide": true
},
"htmlOnPauseBlock": {
"html": null,
"height": "",
"width": ""
},
"autoPlay": true,
"mute": true,
"allowTheatre": true,
"playPauseAnimation": true,
"playbackRateEnabled": true,
"allowDownload": true,
"playButtonShowing": true,
"fillToContainer": false,
"posterImage": ""
},
"vastOptions": {
"adList": [
{
"roll": "preRoll",
"vastTag": "MY VAST URL HERE",
"adText": ""
}
],
"adCTAText": false,
"adCTATextPosition": ""
}
});
</script>
]]>This is the code… in includes/blocks.php, line 47 contains:
SAFE_SVG_PLUGIN_URL . '/dist/safe-svg-block-frontend.css'
and prints out: https://www.urgentpetdoc.com/wp-content/plugins/safe-svg//dist/safe-svg-block-frontend.css?ver=2.1.0 for the CSS
whereas line 56 contains:
SAFE_SVG_PLUGIN_URL 'dist/safe-svg-block-frontend.js'
and prints out: https://www.urgentpetdoc.com/wp-content/plugins/safe-svg/dist/safe-svg-block-frontend.js?ver=556b801b5c62d7bda047 for the JS.
I know I could fix it in the code, but I know once it gets updated, it’ll get overwritten and I’ll need to fix again.
So, can we get that little typo fixed?
]]>[27-Jun-2022 23:54:05 UTC] PHP Warning: Undefined array key “email_notify” in /home/*****/***********.com/wp-content/plugins/link-juice-keeper/public/class-link-juice-keeper-public.php on line 125
[27-Jun-2022 23:54:18 UTC] PHP Warning: Undefined variable $ref in /home//*****/***********.com/wp-content/plugins/link-juice-keeper/public/class-link-juice-keeper-public.php on line 175
]]>The website https://scanner.pcrisk.com/ provided a file name and the offending code:
s0.2mdn.net/ads/studio/Enabler.js
[[<meta http-equiv=”refresh” content=”0; url=’+f+'”>]]
I’ve narrowed it down to a theme issue by deactivating and deleting all plugins and still getting the same scan result. But I’m asking for help here because I can’t find that file name or code anywhere in the theme files. Please help.
]]>The method is the following:
/**
* Download object, destination specified in args.
*
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-s3-2006-03-01.html#getobject
*
* @param array $args
*/
public function get_object( array $args ) {
$this->s3_client->getObject( $args );
}
And it can be found in the class:
DeliciousBrains\WP_Offload_Media\Providers\Storage\AWS_Provider
.
I really need this method to conclude my work here. Please, answer me as fast as possible
Here’s a link to this screenshot: https://imgur.com/o9N6TV0
There are thousands of these errors on my website on almost every page and I don’t know what to do about them. I don’t have the time or patience to correct them all. I figure it’s probably a simple coding fix, but I really don’t know.
I’ve had both my hosting company and theme provider take a look at the problem and both have not been able to figure it out. My theme provider said “We suspect that it has something to do with the database and the way tables are encoded.”
Any help from any of you smart folks would be greatly appreciated!
]]>Uncovered a strange issue today, though my client states it started months ago.
We are unable to save/update a page or post without the site throwing a 500 error. After trial and error (enabling default theme, disabling all plugins, re-enabling one by one), we came to the conclusion that it was this one causing the issue.
This is the error in the logs
[Thu Apr 29 18:09:17.260852 2021] [php7:error] [pid 30824] [client 66.162.212.19:38406] PHP Fatal error: Uncaught Error: Call to undefined function wp_ada_compliance_check_basic_if_alt_text_includes_exclusion() in /nas/content/live/MY_WEB_SITE/wp-content/plugins/wp-ada-compliance-check-basic/res/rules/img_linked_to_self.php:31\nStack trace:\n#0 /nas/content/live/MY_WEB_SITE/wp-content/plugins/wp-ada-compliance-check-basic/res/content_validation.php(173): wp_ada_compliance_basic_validate_img_linked_to_self('<p>wpe test 4</...', Array)\n#1 /nas/content/live/MY_WEB_SITE/wp-content/plugins/wp-ada-compliance-check-basic/res/content_validation.php(48): wp_ada_compliance_basic_complete_content_validations('<p>wpe test 4</...', Array)\n#2 /nas/content/live/MY_WEB_SITE/wp-content/plugins/wp-ada-compliance-check-basic/res/content_posts.php(61): wp_ada_compliance_basic_validate_post(Array)\n#3 /nas/content/live/MY_WEB_SITE/wp-includes/class-wp-hook.php(289): wp_ada_compliance_basic_validate_ada_post_compliance(1, Object(WP_Post))\n#4 /nas/content/live/MY_WEB_SITE/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(1, Arra in /nas/content/live/MY_WEB_SITE/wp-content/plugins/wp-ada-compliance-check-basic/res/rules/img_linked_to_self.php on line 31, referer: https://MY_WEB_SITE.wpengine.com/wp-admin/post.php?post=1&action=edit