Hi,

I'm using Recruiter for my company's website and I'm experiencing some issues when I try to have a look at the visible resumes.

I'm logged in as an administrator, with every permit possible, but when I go to Recruiter --> Resumes and I click on a visible resume title in the list it says "Access denied You are not authorized to access this page."
The same thing happen when I click on Recruiter --> Resumes --> User with a visible resume --> Admin Links, there I can choose between Resume (Resume state: visible) and Resume settings. In both cases it says, again, "Access denied You are not authorized to access this page.", but in the latter

Warning: Missing argument 2 for profile2_by_uid_load(), called in /home/harringt/public_html/recruiter/includes/menu.inc on line 593 and defined in profile2_by_uid_load() (line 122 of /home/harringt/public_html/recruiter/profiles/recruiter/modules/profile2/contrib/profile2_page.module).
Notice: Undefined variable: type_name in profile2_by_uid_load() (line 124 of /home/harringt/public_html/recruiter/profiles/recruiter/modules/profile2/contrib/profile2_page.module).

Can you please help me?

Thanks in advance,
--
Alessia.

Comments

Ivo.Radulovski’s picture

same issue, any solution found?

darol100’s picture

A easy way to fix this would be to add that user as administrator. You can have multiple roles admin + applicant + recruiter. By doing this would allow you to visit anywhere in the website.

cedric_a’s picture

I'm having the same issue (even with all the roles) with Recruiter 7.x-1.5.
I fixed this by replacing 'resume' with 'profile-resume' in the title links in the 'Resumes' admin view.

jaseerkinangattil’s picture

For me too the same issue for the admin roles

jaseerkinangattil’s picture

Version: 7.x-1.2 » 7.x-1.7
Status: Active » Needs review
cedric_a’s picture

Status: Needs review » Active

Hi jas.yayas, according to the guidelines (see https://www.drupal.org/node/156119) as this issue don't have yet any patch, the status has to be "active"

Jacqs’s picture

Hi,
I had this issue and changing the route to profile-resume helps.
I think the root problem is that in Pages => Existing Pages the resume route override has the resume/%profile2_by_uid url, this url is not a standard url for a "resume" profile2 type, it should be profile-resume/%profile2_by_uid.
I'm also using profile2_pages and this url mismatch causes multiples inconsistencies around as many urls are establish in code/html/rewrite views as resume/ that are not working any more.
cheers,
Jacq

Jacqs’s picture

I found that cleaning the cache causes the Resume to revert to defaults.
If you have another profile2 related module (as profile2_pages or profile2_regpath) the mistmach between "resume/" and "profile-resume" creates some issues.
For me I fixed this by avoiding the 'resume' revert to defaults if profile2 "resume" exists in the drupal recruiter feature with this patch:

--- a/recruiter_resume.features.inc      
+++ b/recruiter_resume.features.inc       
@@ -100,17 +100,20 @@
 /**
  * Implements hook_default_profile2_type().
  */
-function recruiter_resume_default_profile2_type() {
+function recruiter_resume_default_profile2_type() {
+  $exist = profile2_get_types("resume");
   $items = array();
-  $items['resume'] = entity_import('profile2_type', '{
-    "userCategory" : false,
-    "userView" : false,
-    "type" : "resume",
-    "label" : "Resume",
-    "weight" : "0",
-    "data" : { "use_page" : 1, "page_path" : "resume" },
-    "rdf_mapping" : []
-  }');
+  if(!$exist){
+    $items['resume'] = entity_import('profile2_type', '{
+      "userCategory" : false,
+      "userView" : false,
+      "type" : "resume",
+      "label" : "Resume",
+      "weight" : "0",
+      "data" : { "use_page" : 1, "page_path" : "resume" },
+      "rdf_mapping" : []
+    }');
+  }
   return $items;
 }

Then I edit the resume profile options and always use the profile-resume/ path, no more resume/