Forum Replies Created

Viewing 15 replies - 76 through 90 (of 264 total)
  • Thread Starter dev

    (@devksec)

    Hello,

    Thanks, we’ll try that soon.

    For the logs, I did email your support@ but no response to any of the last few tickets or emails/.

    here are the redacted logs

    parameter_missing – enabled_events

    Missing required param: enabled_events



    {
    "api_version": "2024-09-30.acacia",
    "connect": "false",
    "description": "",
    "enumeratively_enabled_all_events_during_creation": "false",
    "url": "https://site.website.com/?wc-api=wt_stripe",
    "enabled_events":
    }

    Response body
    {
    "error": {
    "code": "parameter_missing",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-missing",
    "message": "Missing required param: enabled_events.",
    "message_code": "missing_required_parameter",
    "param": "enabled_events",
    "request_log_url": "https://dashboard.stripe.com/logs/req_J*?t=1728898689",
    "type": "invalid_request_error"
    }
    }
    Request query parameters
    {
    "include_only": [
    "id,livemode,metadata,object,secret,status,url,api_version,application,created,description,enabled_events"
    ]
    }
    Request POST body
    {
    "api_version": "2024-09-30.acacia",
    "connect": "false",
    "description": "",
    "enumeratively_enabled_all_events_during_creation": "false",
    "url": "https://site.website.com/?wc-api=wt_stripe"
    }
    Thread Starter dev

    (@devksec)

    Hello,

    Yes, we had stripe with webtoffee setup before without issue using keys. It’s a multisite setup, 3 stores are subsites.

    The connection process appears to work fine but when you go to checkout and try to pay with stripe checkout, you get the API error when attempting to pay.

    We then can’t seem to disconnect or remove the connection, despite it being uninstalled/revoked within stripe the wordpress interfaces shows it as connected to our account.

    Thread Starter dev

    (@devksec)

    Rolling back is the only way to restore functionality.

    Thread Starter dev

    (@devksec)

    We’ve also removed the app and revoked access, but the plugin keeps saying it’s activated and working. There’s no way for it to be resetup.

    Thread Starter dev

    (@devksec)

    This affects all profile pages, not just trainers but also students.


    Here is some code as a workaround but there are a few things to note:

    1. I’ve not been able to override the yoast og:description with the profile biography
    2. the cover photo is the featured image, else there it uses the profile image

    // Override the Yoast SEO Open Graph title for Tutor LMS profile pages
    add_filter(‘wpseo_opengraph_title’, ‘custom_tutor_lms_og_title’, 99);
    function custom_tutor_lms_og_title($title) {
    if (is_tutor_profile_page()) {
    $user = get_current_profile_user();
    if ($user) {
    $profile_name = $user->display_name;
    $site_name = get_bloginfo(‘name’);
    return $profile_name . ‘ – ‘ . $site_name;
    }
    }
    return $title;
    }

    // Override the Yoast SEO Open Graph URL for Tutor LMS profile pages
    add_filter(‘wpseo_opengraph_url’, ‘custom_tutor_lms_og_url’, 99);
    function custom_tutor_lms_og_url($url) {
    if (is_tutor_profile_page()) {
    $user = get_current_profile_user();
    if ($user) {
    return home_url(‘/profile/’ . $user->user_nicename . ‘/’);
    }
    }
    return $url;
    }

    // Override the Yoast SEO Open Graph image for Tutor LMS profile pages
    add_filter(‘wpseo_opengraph_image’, ‘custom_tutor_lms_og_image’, 99);
    function custom_tutor_lms_og_image($image) {
    if (is_tutor_profile_page()) {
    $cover_photo = get_tutor_profile_cover_photo();
    if ($cover_photo) {
    return $cover_photo;
    } else {
    $profile_photo = get_tutor_profile_photo();
    if ($profile_photo) {
    return $profile_photo;
    }
    }
    }
    return $image;
    }

    // Helper function to check if we are on a Tutor LMS profile page
    function is_tutor_profile_page() {
    return (strpos($_SERVER[‘REQUEST_URI’], ‘/profile/’) !== false);
    }

    // Helper function to get the current profile user based on the URL
    function get_current_profile_user() {
    $profile_slug = trim(parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH), ‘/’);
    $profile_parts = explode(‘/’, $profile_slug);

    if (count($profile_parts) > 1 && $profile_parts[0] === 'profile') {
        return get_user_by('slug', $profile_parts[1]);
    }
    return null;

    }

    // Helper function to get the Tutor LMS profile cover photo URL
    function get_tutor_profile_cover_photo() {
    $user = get_current_profile_user();
    if ($user) {
    $cover_photo = get_user_meta($user->ID, ‘_tutor_cover_photo’, true);
    if (is_numeric($cover_photo)) {
    // If the cover photo is a media ID, get the actual URL
    $cover_photo_url = wp_get_attachment_url($cover_photo);
    if ($cover_photo_url) {
    return esc_url($cover_photo_url);
    }
    } elseif ($cover_photo) {
    // If it’s already a URL
    return esc_url($cover_photo);
    }
    }
    return null;
    }

    // Helper function to get the Tutor LMS profile photo URL (as a fallback if cover photo is not set)
    function get_tutor_profile_photo() {
    $user = get_current_profile_user();
    if ($user) {
    $profile_photo = get_user_meta($user->ID, ‘_tutor_profile_photo’, true);
    if (is_numeric($profile_photo)) {
    // If the profile photo is a media ID, get the actual URL
    $profile_photo_url = wp_get_attachment_url($profile_photo);
    if ($profile_photo_url) {
    return esc_url($profile_photo_url);
    }
    } elseif ($profile_photo) {
    // If it’s already a URL
    return esc_url($profile_photo);
    }
    // Fallback to WordPress avatar if no profile photo is set
    return get_avatar_url($user->ID);
    }
    return null;
    }



    here is part of the bio code which was not working

    $bio = get_tutor_profile_biography(); if ($bio) { echo ‘<meta property=”og:description” content=”‘ . esc_attr(wp_strip_all_tags($bio)) . ‘”>’ . PHP_EOL; } else {

    Thread Starter dev

    (@devksec)

    Hello,

    I can send one via email but the issue is the trainer pages page title showing as ” Blog – (Name of Website).” . There’s no way to resolve this within yoast or change them either.

    Thread Starter dev

    (@devksec)

    Found the error in a log, unsure yet and will try replicate.

    PHP v 8.2.22

    WordPress v6.6.1

    We have tutor_settings_log within the DB as well, also autoloaded.

    If you go to “Tutor MS > Tools > Import/Export” you will see the saved settings history.

    Really there should be an option to disable, remove all backups, or finer control over keeping them. E.G deleted after X number or X days.

    Thread Starter dev

    (@devksec)

    Great, do you know what the cause is or what’s triggering it?

    Thread Starter dev

    (@devksec)

    Hello,

    Can you provide an email address to send them to? Will be easier so I can include photos also.

    Thread Starter dev

    (@devksec)

    Hello,

    This is on the WCML standalone version not WPML core. We used to use WPML long time ago but caused too many issues, so only use WCML standalone.

    Litespeed requires specific hosting server, not just the plugin and we’re using a complex site so not possible to setup in sandbox.

    Thread Starter dev

    (@devksec)

    These carts do not even had gift cards in, but the error is from this plugin at checkout.

    Thread Starter dev

    (@devksec)

    Hello,

    Because the cart page is already excluded, this doesn’t solve the issue.

    Any ideas how to fix?

    dev

    (@devksec)

    @jobayertuser no error, the form doesn’t submit or even attempt to submit. No request is made when the enroll button is pressed, seems the JS is broken for it.

    Outside of the course page (E.G course filter pages etc) it just redirects to the course page.

    dev

    (@devksec)

    Found a workaround, disable “Enable Guest Mode – Allow customers to place orders without an account. “

Viewing 15 replies - 76 through 90 (of 264 total)