Closed (fixed)
Project:
Real-time SEO for Drupal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2016 at 12:55 UTC
Updated:
7 Apr 2017 at 11:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
robertragas commentedHello Paul,
Can I ask which version of the metatag module u have and could you try updating it?
Not sure if it would be the problem to your issues but I know many problems arise when the module version is too low.
Comment #3
mrpauldriver commentedHi Robert, metatag was one version behind but after updating and clearing caches the problem remains
Comment #4
gstout commentedconfirming identical behavior for us
Comment #5
gstout commentedConfirming I am an ass. :)
This is a caching error on our end. Worked in dev but our cdns where sitting on old js files making it not work on our live setup which has CDNs
That said this function in yoast_seo.js did cause a fatal error and break CKEditor until I add the null check.
Hope this helps you @MrPaulDriver
Comment #6
gstout commentedComment #7
damienmckennaThe JS problem should have been fixed by #2784549: Views Improvements.
Comment #8
vensiresThe JS problem is still present in both 7.x-1.0 and 7.x-1.x-dev. The quickfix proposed in #5 fixes the problem. Is it a correct solution though or should the caller function check the
sourceexists before calling parseSnippetData?Comment #9
lodey commentedI can confirm we were still getting the JS issue, causing CKeditor to not show. This was even with the latest or dev version.
The patch mentioned in #5 worked in fixing it.
Attached is a patch file, just implementing the basic change suggested in #5.
Comment #10
damienmckennaTidied up the code a little bit, can you verify the change to the if() statement still works?
Comment #11
lodey commentedUnfortunately that doesn't work for me.
typeof document.getElementById(source) is returning 'object' in my case.
document.getElementById(source) is returning 'null'
This works:
if (document.getElementById(source) != null) {}Comment #12
damienmckennaSo more like this?
Comment #13
lodey commentedYep that works fine for me :)
Comment #15
robertragas commentedLooks good, committed. Thanks!