• I have two different sites with LearnPress (version 4.1.3.1) installed and on both sites I use the shortcode for the profile page [learn_press_profile]

    Somehow the code is corrupt and are screwing up that specific page on both sites.

    See the link on one of my testsites

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    You can try to remove the shortcode in that page then go to LearnPress -> Settings -> set the profile page on settings and recheck.

    Thanks

    Thread Starter Richard

    (@jornb)

    Does not change the appearance.
    I removed the shortcode and checked the page, no change.
    I created a new page in the Settings, no change

    I also tried by disabling all other plugins except LearnPress, no change.

    Normally looks like this: https://vakin.norrlandsit.se/wp-content/uploads/2021/10/image1-course.png

    The Profilepage: https://vakin.norrlandsit.se/wp-content/uploads/2021/10/image1-profile.png

    • This reply was modified 3 years, 1 month ago by Richard.
    • This reply was modified 3 years, 1 month ago by Richard.
    Plugin Support brianvu-tp

    (@briantp)

    Did you override our template? We see have some blocks not have in the default of LearnPress on your site.

    Thanks

    Thread Starter Richard

    (@jornb)

    No overwriting, using the default

    Thread Starter Richard

    (@jornb)

    Been testing now and it seems to be an issue with the Divi theme. Never had this problem before, seems to have shown up from version 4 of LearnPress

    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    LearnPress 4 change a lot of function and template so I think maybe have a conflict with the Divi Theme, I will discuss with our developer team to check it.

    Thanks

    Hi all,
    I’ve the same error on my site with LearnPress v. 4.1.4 and Divi Theme.

    The problem is the function lp_add_shortcode_profile() in
    wp-content\plugins\learnpress\inc\lp-core-functions.php (3809)

    The function wp_update_post() must be triggered only if page has not the shortcode

    function lp_add_shortcode_profile() {
    	global $post;
    
    	if ( learn_press_is_profile() && is_object( $post ) ) {
    		if ( ! has_shortcode( $post->post_content, 'learn_press_profile' ) ) {
    			$post->post_content .= '<!-- wp:shortcode -->[' . apply_filters( 'learn-press/shortcode/profile/tag', 'learn_press_profile' ) . ']<!-- /wp:shortcode -->';
    			wp_update_post( $post );
    		}
    	}
    }

    Hi guys any update on this. I also have this issue on a client corporate site. Rather high priority to get fixed

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem with Profile page’ is closed to new replies.