When I used this theme as an unauthenticated user, some pages generate "The website encountered an unexpected error" messages. When I check the logs, I get the following PHP error message:
Error: Call to undefined method Drupal\node\Entity\Node::URL() in professional_responsive_theme_preprocess_breadcrumb() (line 198 of /homepages/36/d716196188/htdocs/clickandbuilds/themes/professional_responsive_theme/professional_responsive_theme.theme).
I also get multiple Page not found warnings:
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_Dp4P...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_Dp4P...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_Dp4P...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by
https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
https://blog.lostrootsfamilyhistory.com/themes/professional_responsive_t..., referred by https://blog.lostrootsfamilyhistory.com/sites/default/files/css/css_qH4w...
Problem/Motivation
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node-url-tostring-professional.patch | 466 bytes | reinaldoc |
Comments
Comment #2
arborrow commentedI noticed https://www.drupal.org/forum/support/upgrading-drupal/2021-02-01/call-to... mentions changing:
$node->url()to:
$node->toUrl()->toString()which seemed to work for me.
Comment #3
arborrow commentedComment #4
reinaldoc commentedpatch attached.
$ cd /path/drupal/themes/professional_zymphonies_theme/
$ patch -p0 < /tmp/node-url-tostring-professional.patch