You will get this error when you loged as a candidate in link : "http://domain/?q=dashboard/candidate/resume"
Error: " Strict warning: Only variables should be passed by reference in drop_jobs_candidate_profile() (line 57 of /var/www/dev.findmework.eu/html/profiles/drop_jobs/modules/custom/drop_jobs_candidate/drop_jobs_candidate.pages.inc). "

Comments

globet’s picture

Patch:

diff --git a/modules/custom/drop_jobs_candidate/drop_jobs_candidate.pages.inc b/modules/custom/drop_jobs_candidate/drop_jobs_candidate.pages.inc
index 81d56d1..1e59b83 100644
--- a/modules/custom/drop_jobs_candidate/drop_jobs_candidate.pages.inc
+++ b/modules/custom/drop_jobs_candidate/drop_jobs_candidate.pages.inc
@@ -53,8 +53,8 @@ function drop_jobs_candidate_preferences($form, $form_state) {
  */
 function drop_jobs_candidate_profile() {
   $account = user_uid_optional_load();
-
-  if ($profile = reset(profile2_load_by_user($account->uid))) {
+  $profile2_reset = profile2_load_by_user($account->uid);
+  if ($profile = reset($profile2_reset)) {
     if ($profile->type === 'resume') {
       drupal_set_title('My résumé');
       return profile2_view($profile);

globet’s picture

Same for recruiter:
Patch :

diff --git a/modules/custom/drop_jobs_recruiter/drop_jobs_recruiter.pages.inc b/modules/custom/drop_jobs_recruiter/drop_jobs_recruiter.pages.inc
index 1b01556..88c5f44 100644
--- a/modules/custom/drop_jobs_recruiter/drop_jobs_recruiter.pages.inc
+++ b/modules/custom/drop_jobs_recruiter/drop_jobs_recruiter.pages.inc
@@ -53,8 +53,8 @@ function drop_jobs_recruiter_preferences($form, $form_state) {
  */
 function drop_jobs_recruiter_profile() {
   $account = user_uid_optional_load();
-
-  if ($profile = reset(profile2_load_by_user($account->uid))) {
+  $profile2_reset = profile2_load_by_user($account->uid);
+  if ($profile = reset($profile2_reset)) {
     if ($profile->type === 'recruiter') {
       drupal_set_title('My recruiter profile');
       return profile2_view($profile);