13/13 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------
Line modules/anonymous_publishing_cl/anonymous_publishing_cl.module
------ ----------------------------------------------------------------------
476 Call to deprecated function drupal_get_messages():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::all() or
\Drupal\Core\Messenger\MessengerInterface::messagesByType() instead.
502 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
544 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
552 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
588 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
596 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Controller/AnonymousPublishingController.php
------ ----------------------------------------------------------------------------------
19 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
41 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
46 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
100 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
111 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
116 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
123 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminBlocked.php
------ --------------------------------------------------------------------------------
158 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ --------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminModeration.php
------ -----------------------------------------------------------------------------------
116 Call to deprecated method getStatus() of class Drupal\comment\Entity\Comment:
in Drupal 8.3.0, will be removed before Drupal 9.0.0. Use
\Drupal\Core\Entity\EntityPublishedInterface::isPublished() instead.
130 Call to deprecated method url() of class Drupal\Core\Entity\EntityBase:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Please use toUrl() instead.
239 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -----------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminPrivacy.php
------ --------------------------------------------------------------------------------
151 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
159 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
163 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ --------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminSettings.php
------ ---------------------------------------------------------------------------------
60 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
68 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ---------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminSpam.php
------ -----------------------------------------------------------------------------
228 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -----------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Form/AnonymousPublishingClAdminUnverified.php
------ -----------------------------------------------------------------------------------
238 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
285 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -----------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------
Line modules/anonymous_publishing_cl/src/Services/AnonymousPublishingClService.php
------ -------------------------------------------------------------------------------
24 Usage of deprecated trait Drupal\Core\Routing\UrlGeneratorTrait in class
Drupal\anonymous_publishing_cl\Services\AnonymousPublishingClService:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Url instead.
172 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
179 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -------------------------------------------------------------------------------
[ERROR] Found 28 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | anonymous_publishing-drupal9-3072846-10.patch | 872 bytes | gisle |
| #7 | anonymous_publishing-drupal9-3072846-7.patch | 16.24 KB | gisle |
Comments
Comment #2
rudranil29 commentedpatch for drupal 9 compatibility
Comment #3
rudranil29 commentedComment #4
gislePatch applies cleanly.
Installed patched version works OK.
Setting up permissions, etc. works OK.
Posting anonymously and verifying email works OK.
However, after doing, so, visiting the "Moderation" tab results in:
The unpatched version of the project does not produce these errors.
Comment #5
rudranil29 commentedComment #6
rudranil29 commentedComment #7
gisleI've rerolled the patch in #2 to apply cleanly to the latest dev snapshot. It produces the same bugs as those reported in comment #4.
However, I've fixed some whitespace errors and non-Unix line endings in the codebase (see git log messages) since the patch in #2, so this version of the patch makes it easier to continue from patch in #2 with the latest dev-snapshot.
Comment #8
rudranil29 commented@gisle
In file "AnonymousPublishingClAdminModeration.php" I think this might be the error
should be look like this
Comment #10
gisleComment to #8.
No, but close. It put me on the right track, tho'.
The attached patch creates a valid string URL.
Comment #12
gisle