django-cms/djangocms-link

'NoneType' object has no attribute 'node'

joeljv91 opened this issue ยท 7 comments

Hi,

I updated djangocms-link from version 2.1.2 to 2.2.1 and I get this error when I enter to some page I get this error:

screenshot 2018-11-23 at 10 08 08

I need to migrate any data which affect to this update?

I'm using DjangoCMS 3.5.3 and this plugin djangocms-bootstrap4 1.2.0 which inherits from your djangocms-link.

Thanks

it does not matter I just saw the pull request:

#153

What bothers me is that this bug made it into a release. I could probably make the code in my PR cleaner if I had time to figure out what else it might break to do so.

I had to revert to a previous version (2.1.2) of djangocms_link until this is fixed ... I'd appreciate if the fix is released quickly. Thanks very much!

@avryhof I agree with you... @fsbraun for the moment the best solution is revert to 2.1.2

@joeljv91 has the issue been resolved for you using 2.2.2?

@FinalAngel It does for me, however, would it make sense to also replace ref_page.site_id by ref_page_site_id in line 151 of models.pyafter going through the hassle of detecting the node to get the site id?

@fsbraun I'll have a look :)