diff --git a/classes/view_assets.php b/classes/view_assets.php
index a96f728392843dd6d392ff47a1f43efbee7235df..8ce34426d521dfba522bf71d389aaeb753289bed 100644
--- a/classes/view_assets.php
+++ b/classes/view_assets.php
@@ -342,7 +342,7 @@ class view_assets {
      */
     public function validatecontent() {
         if ($this->content === null) {
-            print_error('invalidhvp');
+            print_error('invalidhvp', 'mod_hvp');
         }
     }
 
diff --git a/grade.php b/grade.php
index 75781e98e4d8b690123ad6284af48491706a4672..2f640f8fadbfa665ca81b8d22d4fad149d96c43d 100644
--- a/grade.php
+++ b/grade.php
@@ -53,7 +53,7 @@ $hvp = $DB->get_record_sql(
         array($cm->instance));
 
 if ($hvp === false) {
-    print_error('invalidhvp');
+    print_error('invalidhvp', 'mod_hvp');
 }
 
 // Redirect to report if a specific user is chosen.
diff --git a/lang/en/hvp.php b/lang/en/hvp.php
index 342f93dd1d80349f346c1c93bf558f2a20036cca..8e922bfab3aa86c4e408ea005f081e476e2d0d84 100644
--- a/lang/en/hvp.php
+++ b/lang/en/hvp.php
@@ -454,6 +454,10 @@ $string['couldnotreadfilefromzip'] = 'Unable to read file from the package: %fil
 $string['couldnotparsejsonfromzip'] = 'Unable to parse JSON from the package: %fileName';
 $string['couldnotparsepostdata'] = 'Could not parse post data.';
 $string['nombstringexteension'] = 'The mbstring PHP extension is not loaded. H5P needs this to function properly';
+$string['invalidhvp'] = 'Invalid H5P activity';
+$string['nohubregistration'] = 'Not registered with H5P Hub';
+$string['invalidtoken'] = 'H5P has received an invalid token. Refresh the page and try again';
+$string['contentnotshared'] = 'H5P activity cannot be shared. Please check your H5P hub registration';
 
 // Messaging api.
 $string['messageprovider:confirmation'] = 'Confirmation of your own H5P submissions';
diff --git a/review.php b/review.php
index a975830337ca845e77acb8becaf67950220e3ce6..3f52b5ae6e17af00248945724193dd3bf41e6e8d 100644
--- a/review.php
+++ b/review.php
@@ -53,7 +53,7 @@ $hvp = $DB->get_record_sql(
     [$id]);
 
 if ($hvp === false) {
-    print_error('invalidhvp');
+    print_error('invalidhvp', 'mod_hvp');
 }
 
 // Set page properties.
diff --git a/share.php b/share.php
index 186b37865a1c624751f5be8bd2e9f86578c8d943..d52e38b9266473043e41ff8eb014a4bf88219625 100644
--- a/share.php
+++ b/share.php
@@ -43,7 +43,7 @@ require_capability('mod/hvp:share', $context);
 // Check if Hub registered, if not redirect to hub registration.
 if (empty(get_config('mod_hvp', 'site_uuid')) || empty(get_config('mod_hvp', 'hub_secret'))) {
     if (!has_capability('mod/hvp:contenthubregistration', \context_system::instance())) {
-        print_error('nohubregistration');
+        print_error('nohubregistration', 'mod_hvp');
     }
     redirect(new moodle_url('/mod/hvp/content_hub_registration.php'));
 }
@@ -60,10 +60,10 @@ if ($action) {
     }
     $token = required_param('_token', PARAM_RAW);
     if (!\H5PCore::validToken('share_' . $id, $token)) {
-        print_error('invalidtoken');
+        print_error('invalidtoken', 'mod_hvp');
     }
     if (empty($content['contentHubId']) || $content['shared'] !== '1') {
-        print_error('contentnotshared');
+        print_error('contentnotshared', 'mod_hvp');
     }
 
     $core = \mod_hvp\framework::instance();