Last course object is course certificate. The link of course certificate is also get shown as
Download Certificate
/node/NID/certificate.
Issues is
>> Access denied
>> You are not authorized to access this page.
Even in the Admin account of user/1
We have a node of Certificate, and The PDF Download of the certificate is also working.
/certificate/templates/preview/NID
Looking forward for the feedback on Access denied issue.
Thanks
(from @eotinfotech but we have exact same issue)
Made issue major as this is critical to our use of this module, and a major functionality to an e-learning course module.
Thanks, in advance!
Comments
Comment #1
djdevinCan you try this:
Go into admin/settings/certificate
Where it says "certifiable node types" make sure the content type you are using for Course is selected (probably, Course)
To set up which certificate the user gets you will have to set up some sort of mapping. But now, it should say "No certificate matched" instead of access denied.
Comment #2
eotinfotech commentedHello,
I have selected 'course' and 'certificate' content type at admin/settings/certificate/types
Now, on the completion of the course message 'Sorry, there is no certificate available based on your profile data.' is coming up.
Thanks
Prachait
warning: array_filter() [function.array-filter]: The first argument should be an array in public_html/elearning/sites/all/modules/certificate/certificate.pages.inc on line 66.
warning: array_keys() [function.array-keys]: The first argument should be an array in public_html/elearning/sites/all/modules/certificate/certificate.pages.inc on line 66.
warning: Invalid argument supplied for foreach() in public_html/elearning/sites/all/modules/certificate/certificate.module on line 729.
warning: Invalid argument supplied for foreach() in public_html/elearning/sites/all/modules/certificate/certificate.module on line 743.
warning: array_filter() [function.array-filter]: The first argument should be an array in public_html/elearning/sites/all/modules/certificate/certificate.pages.inc on line 66.
warning: array_keys() [function.array-keys]: The first argument should be an array in public_html/elearning/sites/all/modules/certificate/certificate.pages.inc on line 66.
warning: Invalid argument supplied for foreach() in public_html/elearning/sites/all/modules/course/modules/course_credit/course_credit.module on line 1724.
Comment #3
djdevinMoving this issue to Certificate project.
The course is marked complete, but you have to set up certificate mapping so you can choose which certificate the user will receive.
Are you using certificate 1.x or 2.x? If you are using Certificate for the first time use 2.x.
Comment #4
eotinfotech commentedI am using certificate 2.x
and the issue is :
Once the course is get complete, the _certificate_snapshots is not getting generated.
I have tried the manual entry in _certificate_snapshots table with corresponds to Course NID and UID, then it works.
Kindly look into the process of _certificate_snapshots getting generated.
(You can also test, by truncating the _certificate_snapshots table)
Thanks
Prachait
Comment #5
djdevinThat's actually what is supposed to happen. You have to set up a mapping of some time to get the user to be eligible for a certificate. When they are eligible for a certificate, they will get that as a PDF. Now, if the "certificate snapshots" option is on in the certificate settings, that means the certificate will be cached. Snapshots only get generated after a certificate has been selected.
Sorry does this make sense? Maybe some of the documentation is off.
Comment #6
djdevinCan you try updating your 6.x-2.x?
There should be an option called "Override" on the course which will allow you to select a single certificate to give to the user on completion.
Comment #7
eotinfotech commentedHi, i am using the following
Certificate 6.x-2.0-alpha1+1-dev (2012-Jul-26)
Course 6.x-1.0-rc5+36-dev (2012-Aug-04)
I tried the Override version also, the snapshot is not getting created.
Define more on "Snapshots only get generated after a certificate has been selected."
Now, I will be exploring the code too :)
Thanks
Prachait
Comment #8
djdevinDid you see the option in admin/settings/certificate for "generate snapshots" ? Even without snapshots enabled you should still be getting a PDF?
There should be a newer dev snapshot from August too.
Comment #9
eotinfotech commentedDid you see the option in admin/settings/certificate for "generate snapshots" ?
There is no option as "generate snapshots".
Event with check or without check of "Use certificate snapshots?"
Thanks
Prachait
Comment #10
djdevinAh I think I see what is wrong - in your screenshot it shows "Certificate" as being certifiable, but you really want to check off "Course" as certifiable. That screen sets which content types should receive certificates (not which content types are certificates).
Then when you go to edit the course node there should be a section for mapping a certificate to it. Also make sure to use the latest 6.x-2.x :)
Comment #11
djdevinOn the Course node you should then have something like this:
Comment #12
eotinfotech commented@didevin
Thanks for the quick reply,
I have updated the course to
Course 6.x-1.0-rc6+0-dev (2012-Aug-08)
Certificate 6.x-2.0-alpha1+7-dev (2012-Aug-08)
And did the configuration as you mentioned.
Certificate at node/NID/certificate is coming as
"Sorry, there is no certificate available based on your profile data."
My requirement is
I have created a Certificate, which is using Tokens for the content placement.
I need to generate the snapshorts for each user / course node
And the allow them to download.
The cource_certificate module is customozed at
function course_certificate_token_list($type = 'all') {
function course_certificate_token_values($type, $object = NULL, $options = array()) {
to have the required values in the token.
Kindly have a look the the settings and update.
Thanks
Prachait
Comment #13
eotinfotech commentedHi,
One more quick update !
I have set the same certificate to "Manual" and it seems that everything is working.
1. Certificate is getting generated (with Manual options)
2. Certificate is getting downloaded
3. The Name, certificate number, date are coming from the customized token function
The GRADE, after the completion of the Quiz is coming with 0%.
Now the question is..
How to retrieve the grade of the "Final Examination" quiz.
Looking forward for your feedback.
Thanks
Prachait
Comment #14
djdevinCan you tell me what "Information" is? Did you set that up as a field group?
It looks like the user's profile is not matching what you set up in the "Information" group ?
So close!
Comment #15
eotinfotech commentedI have used the manual settings for the certificate now,
and customize the results with the tokens
And not used the profile / content_profiles
Thanks
Prachait
Comment #16
djdevinDid that work or are you still getting "no certificate" errors?
Comment #17
eotinfotech commentedI have used the manual settings for the certificate now,
and customize the results with the tokens
Worked Fine :) and Excellent
Thanks
Prachait
Comment #18
djdevinNice!
Closing ticket, warnings and notices were fixed in dev.
Comment #19
djdevin