Title: Failed to initialize plugin: codesample
Last modified: November 20, 2024

---

# Failed to initialize plugin: codesample

 *  Resolved [digitalmaker](https://wordpress.org/support/users/digitalmaker/)
 * (@digitalmaker)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/)
 * Hello,
 * I just installed the latest update of Tutor LMS 3.0. Since then, I’ve been encountering
   a critical error that makes my modules inaccessible. Additionally, when accessing
   the course builder, this message appears: **Failed to initialize plugin: codesample**.
 * I’ve tried clearing the browser cache and the site cache using WP Rocket without
   success. The problem persists. I’m using WordPress version 6.7, PHP version 8.1.30,
   and the Flatsome builder 3.18.1. I’m also using Tutor LMS Pro 2.7.6.
 * I urgently need assistance, please.
 * Thank you.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/page/2/?old-theme=1&output_format=md)
[→](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/page/2/?old-theme=1&output_format=md)

 *  [Nafiz](https://wordpress.org/support/users/urnafiz/)
 * (@urnafiz)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18148874)
 * Hello [@digitalmaker](https://wordpress.org/support/users/digitalmaker/),
 * Please provide us with screenshots that highlight the issue you are experiencing.
   You can use any image-sharing service like [https://pasteboard.co/](https://pasteboard.co/),
   [https://imgur.com/](https://imgur.com/), [https://snipboard.io/](https://snipboard.io/),
   or even upload the screenshot to your own website. Once you upload it to an image-
   sharing service, please share the link to the image here.
 *  [lucasguicar](https://wordpress.org/support/users/lucasguicar/)
 * (@lucasguicar)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149282)
 * Hello [@urnafiz](https://wordpress.org/support/users/urnafiz/)!! How are you?
 * I am facing the same problem with my website. I have an online course system 
   with Tutor LMS PRO, and after the update, the service stopped. The lessons are
   not loading, and the layout of the system has changed. As shown in the image 
   in the link: [https://www.canva.com/design/DAGXB1RzIKo/o0tRQoAss-jw6avqbtM10g/view?utm_content=DAGXB1RzIKo&utm_campaign=designshare&utm_medium=link&utm_source=editor](https://www.canva.com/design/DAGXB1RzIKo/o0tRQoAss-jw6avqbtM10g/view?utm_content=DAGXB1RzIKo&utm_campaign=designshare&utm_medium=link&utm_source=editor)
   There are two images in this link. One shows the Tutor system with how the lessons
   are appearing, and the second image shows the same error as our friend [@digitalmaker](https://wordpress.org/support/users/digitalmaker/).
 * I rely heavily on this service, and if you could assist us, it would be fantastic.
 * Best regards from Brazil.
 * Lucas Carvalho
    -  This reply was modified 1 year, 6 months ago by [lucasguicar](https://wordpress.org/support/users/lucasguicar/).
 *  [danidile94](https://wordpress.org/support/users/danidile94/)
 * (@danidile94)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149306)
 * I’m also having the same issue. I see the message “Failed to initialize plugin:
   codesample” whit no context.
 *  [erukoz](https://wordpress.org/support/users/erukoz/)
 * (@erukoz)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149319)
 * Hola,
 * Yo presenté el mismo problema, solo que tenia la versión 2.7 y al actualizar 
   el problema se resolvió
 *  [lucasguicar](https://wordpress.org/support/users/lucasguicar/)
 * (@lucasguicar)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149320)
 * Does it also have the same issue with the classes? The layout changed, and there
   is no access to any class?
 *  [abulais](https://wordpress.org/support/users/abulais/)
 * (@abulais)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149420)
 * I am also having the same issue. No one can participate in the course exams now.
 *  [hasnainmalik](https://wordpress.org/support/users/hasnainmalik/)
 * (@hasnainmalik)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149931)
 * I have the same issue”I just installed the latest update of Tutor LMS 3.0. Since
   then, I’ve been encountering a critical error that makes my modules inaccessible.
   Additionally, when accessing the course builder, this message appears: **Failed
   to initialize plugin: codesample**.”
 *  [danidile94](https://wordpress.org/support/users/danidile94/)
 * (@danidile94)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18149957)
 * For anyone looking for a quick fix to make your site working again you can rollback
   the tutor lms version back to the 2.77. I did it immediately as i saw that the
   3.0 was not working.
   Here is a link to a video that shows how to go back to the
   2.77 version in case you need it.
 * [https://www.youtube.com/watch?v=TGyRRw8p90Q&t=45s](https://www.youtube.com/watch?v=TGyRRw8p90Q&t=45s)
 *  [italiantech](https://wordpress.org/support/users/italiantech/)
 * (@italiantech)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18150008)
 * Just like everyone else, I’m having this issue also…
   [@danidile94](https://wordpress.org/support/users/danidile94/)
   When you did this, did your course info stay or did it have to be restored? I
   do not want my course information to go away when downgrading through this method.
    -  This reply was modified 1 year, 6 months ago by [italiantech](https://wordpress.org/support/users/italiantech/).
 *  [lucasguicar](https://wordpress.org/support/users/lucasguicar/)
 * (@lucasguicar)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18150142)
 * Hey everyone!!
   I solved the problem!![https://wordpress.org/plugins/tutor/advanced/](https://wordpress.org/plugins/tutor/advanced/)
   Download the previous version 2.7.7 and manually install on plugins. Thks [@danidile94](https://wordpress.org/support/users/danidile94/)!!
   [@italiantech](https://wordpress.org/support/users/italiantech/) the course information
   continues!! Thks God!! Best regards from Brazil!Lucas Carvalho
 *  [italiantech](https://wordpress.org/support/users/italiantech/)
 * (@italiantech)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18150148)
 * [@lucasguicar](https://wordpress.org/support/users/lucasguicar/) I can second
   this works and course info stays. Thank you!! Hopefully they fix this error soon
   so we can upgrade
 *  [lucasguicar](https://wordpress.org/support/users/lucasguicar/)
 * (@lucasguicar)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18150152)
 * The only problem that I find is: 
   When I open the menu on Elementor Pro I can
   ´t find the itens from Tutor LMS.I´ll work around with Products from Woocommerce.
   Maybe anyone can helpe me with this new problem! [@italiantech](https://wordpress.org/support/users/italiantech/)
   I hope too!Best regards!
 *  [Nafiz](https://wordpress.org/support/users/urnafiz/)
 * (@urnafiz)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18150628)
 * Hello,
 * The issue seems to be a version mismatch between Tutor LMS Free and Pro. To ensure
   compatibility and proper functionality, both versions of the plugin must be the
   same. For example, if you’re using Tutor LMS Free 3.0, you’ll need to update 
   your Tutor LMS Pro to the corresponding version.
 * I hope this resolves the issue for all of you.
 * [@digitalmaker](https://wordpress.org/support/users/digitalmaker/) [@lucasguicar](https://wordpress.org/support/users/lucasguicar/)
   [@danidile94](https://wordpress.org/support/users/danidile94/) [@erukoz](https://wordpress.org/support/users/erukoz/)
   [@abulais](https://wordpress.org/support/users/abulais/) [@hasnainmalik](https://wordpress.org/support/users/hasnainmalik/)
   [@italiantech](https://wordpress.org/support/users/italiantech/)
 *  [preciousgabraels](https://wordpress.org/support/users/preciousgabraels/)
 * (@preciousgabraels)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18157586)
 * The issue also persists when trying to generate a certificate. I get a nonce 
   error and then the page keeps refreshing. This happens when I set a custom certificate
   instead of the default ones. I discovered there is an incompatibility issue between
   the Tutor and Tutor Pro plugins (both are the latest update of 3.0.1)
    -  This reply was modified 1 year, 6 months ago by [preciousgabraels](https://wordpress.org/support/users/preciousgabraels/).
 *  [Nafiz](https://wordpress.org/support/users/urnafiz/)
 * (@urnafiz)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/#post-18158006)
 * Hello [@preciousgabraels](https://wordpress.org/support/users/preciousgabraels/),
 * Thank you for reaching out to us!
 * Certificate feature is part of the **Tutor LMS Pro** version. As you are using
   the Pro version of the plugin, please [open a ticket](https://tutorlms.com/support/)
   for support. Our customer support specialists are ready to check the problem 
   and help you accordingly as soon as possible.
 * Commercial products are [not supported in this forum](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
 * Thank you.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/page/2/?old-theme=1&output_format=md)
[→](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/page/2/?old-theme=1&output_format=md)

The topic ‘Failed to initialize plugin: codesample’ is closed to new replies.

 * ![](https://ps.w.org/tutor/assets/icon-256x256.gif?rev=3193875)
 * [Tutor LMS - eLearning and online course solution](https://wordpress.org/plugins/tutor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tutor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tutor/)
 * [Active Topics](https://wordpress.org/support/plugin/tutor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tutor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tutor/reviews/)

 * 17 replies
 * 11 participants
 * Last reply from: [egyshell](https://wordpress.org/support/users/egyshell/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/failed-to-initialize-plugin-codesample/page/2/#post-18229686)
 * Status: resolved