Reading view

Has anyone connected the Certificate module with the Quiz module on Drupal 10+?

I'm using the latest versions of Certificate (4.x) and Quiz (7.x) on Drupal 10/11 and after days of experimenting, researching, and looking through the code of both modules, I am no closer to connecting the two modules.

The certificate module's help file says to:

Edit your content type that will be awarding certificates (e.g. Quiz, Course) and make sure "Award certificate" is checked.

But this option is nowhere to be found on the quiz entities or any other node/entity types.

I found this post (https://www.drupal.org/project/certificate/issues/3271077) that had a short mp4 video example, but it is for the course module (not quiz). Even so, I made some logical attempts to replicate the example by adding an entity reference field to the quiz entity for "Certificate Mapping" (and also tried adding it to the quiz result entity type). Neither had any results, and there were no other configuration options to be found.

There seems to be a total lack of documentation for implementing certificates with quiz results.

Has anyone successfully connected certificates with Quiz results? Any tips?

Or is there perhaps another method or approach to award a certificate to a user who successfully passes a quiz?

submitted by /u/quantumized
[link] [comments]
  •  

Certain Drupal batch functions not working with Cloudflare - returning 502 Bad Gateway

I noticed that the XML Sitemap generation stopped working a couple of weeks ago. When I go to rebuild the sitemap manually, we immediately get a 502 Bad Gateway error.

After much unsuccessful troubleshooting, we tried the Simple XML Sitemap module and surprisingly got the same error.

Disabling Cloudflare fixes the issue but since we need Cloudflare to be active, we need to find out the cause.

  • Using Cloudflare Free Tier
  • Some /batch functions cause a 502 error
  • Pausing Cloudflare fixes the issue
  • We tried creating a rule to bypass caching for the /batch path (no change in the error)
  • The issue occurs with XML Sitemap, and Simple XML Sitemap. However, other batch operations, like rebuilding the permissions work as expected
  • Sitemap generation worked correctly for years, until a couple of weeks ago

I'm hoping for any insight as to what may be causing the failure.

submitted by /u/quantumized
[link] [comments]
  •  
❌