Problem/Motivation

Release 2.0.0 stable and support D11.

Steps to reproduce

Proposed resolution

-Apply the automated D11 patch
-Verify code works on D11
-Maybe include the various patches for the open issues (that are open for a long time)
-Create a new stable 2.0.0 release.

Remaining tasks

-Live happy ever after.

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kriboogh created an issue. See original summary.

sirclickalot’s picture

@Maintainers

This module is a must on educational sites where we don't want students using copy/paste.

Would one of you please be kind enough to apply...

https://www.drupal.org/files/issues/2024-03-17/copyprevention.2.0.0-beta...

So then we can all carry on using this very useful module.

Thank you

wallexk1 made their first commit to this issue’s fork.

wallexk1’s picture

This merge request resolves issue copyprevention-3530553 by updating the module’s core_version_requirement.

Key points:

  • - The change in copyprevention.info.yml extends compatibility to Drupal 11, alongside 9.3 and 10.
  • - Conflicts from merging 8.x-1.x into copyprevention-3530553 have been resolved, keeping the updated requirement line.
  • - Branch copyprevention-3530553 is now based on 2.0.0-beta1 and includes the fix.

Please review and merge so the module declares support for Drupal 11 in the upcoming release.

sirclickalot’s picture

Given the 2000+ user base for this great little module coupled with its reported 'D11 readiness' from #5, may I appeal to the maintainers to get a full stable D11-compatible release.

Go on, give us a Christmas present!

kensae made their first commit to this issue’s fork.

kensae’s picture

neslee canil pinto’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sirclickalot’s picture

Hi, and thankyou for the stable 2.00 release, much appreciated.

There is a minor issue which is brought about by the extra strictness in Drupal 11.3.2 onwards I believe.

After installing fresh 2.00, I see...

"Schema errors for copyprevention.settings with the following errors: copyprevention.settings:_core missing schema, copyprevention.settings:copyprevention_images_search missing schema. These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>."

Thanks

willids’s picture

Have put this on our test site before putting it on our live site (both exactly the same)

Getting
The website encountered an unexpected error. Try again later.
TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 40 of modules/contrib/copyprevention/copyprevention.module).

This is the code

if (!_copyprevention_is_enabled()) {
return;
}

$body_settings = array_filter(\Drupal::configFactory()->getEditable('copyprevention.settings')->get('copyprevention_body'));
foreach ($body_settings as $value) {
$vars['attributes']['on' . $value] = 'return false';
}
}

/**
* Implements hook_page_attachments().
*/
function copyprevention_page_attachments(&$page) {
global $base_url;

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.