web/modules/contrib/flipbook/src/Entity/Controller/FlipbookListBuilder.php 58 Call to deprecated method link() of class toString() instead.php/class/EntityInterface::toLink()->toString() instead/8.8.x">Drupal\Core\Entity\EntityInterface. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\EntityInterface::toLink()->toString() instead.
web/modules/contrib/flipbook/src/Entity/Flipbook.php 284 Call to deprecated function file_upload_max_size(). Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Component\Utility\Environment::getUploadMaxSize() instead.

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

StatusFileSize
new1.77 KB
mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
Status: Active » Needs review
drupal.ninja03’s picture

Status: Needs review » Needs work
Issue tags: +Drupal 9 compatibility

Applied patch from #2 and ran through drupal-check, seeing more errors:

 9/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ -----------------------------------------------------------------------
  Line   src/Entity/Controller/FlipbookListBuilder.php
 ------ -----------------------------------------------------------------------
  10     Cannot use Drupal\Core\EntityInterface as EntityInterface because the
         name is already in use on line 10
 ------ -----------------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   src/Form/ChoosePdfStyleForm.php
 ------ ----------------------------------------------------------------------
  87     Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
 ------ ----------------------------------------------------------------------

 ------ ----------------------------------------------------------------------
  Line   src/Form/FlipbookForm.php
 ------ ----------------------------------------------------------------------
  41     Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
  44     Call to deprecated function drupal_set_message():
         in drupal:8.5.0 and is removed from drupal:9.0.0.
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
 ------ ----------------------------------------------------------------------

 [ERROR] Found 4 errors
drupal.ninja03’s picture

Status: Needs work » Needs review
StatusFileSize
new2.57 KB
new3.17 KB

Created a patch to address the above deprecated errors.

kushal bansal’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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