https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2020-01-09T21:06:16ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482052020-01-09T21:06:16ZBoone Gorgesboone@gorg.es
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Reporter Feedback</i></li><li><strong>Target version</strong> set to <i>Not tracked</i></li></ul><p>A fatal error was being triggered by the dante-framework plugin. The plugin appears to be written in such a way that it cannot run (and throws a fatal error) when the Dante theme is not active.</p>
<p>I'm guessing that the user originally had Dante activated, and then switched away from it, but the plugin stuck around. Does that sound possible? (I've CCed Ray, because he's done work in the past on plugin and theme dependencies on the Commons.)</p>
<p>I have disabled the dante-framework plugin and the site's Dashboard is now accessible again.</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482062020-01-09T21:21:03ZLaurie Hurson
<ul></ul><p>This plugin/theme issue is likely the cause, thanks Boone! I was having faculty try out a few themes they might use for their spring course sites so this person probably activated/deactivated dante.</p>
<p>So, to clarify, if someone activates the dante theme the plugin also gets activated. But then, if they switch themes the plugin in not automatically deactivated? Is this typical or did something go wrong in this case?</p>
<p>If this is how it commonly works I will steer folks away the dante theme if just testing a few out and/or will know to tell them to deactivate the plugin first if they decide to switch.</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482072020-01-09T21:26:29ZBoone Gorgesboone@gorg.es
<ul><li><strong>Assignee</strong> set to <i>Raymond Hoh</i></li></ul><blockquote>
<p>So, to clarify, if someone activates the dante theme the plugin also gets activated. But then, if they switch themes the plugin in not automatically deactivated? Is this typical or did something go wrong in this case?</p>
</blockquote>
<p>Yes, it sounds like this is what happened. Let's wait for Ray to chime in to see if he has more thoughts about whether this could be corrected. In the meantime, you might want to steer clear of the Dante theme.</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482082020-01-09T23:02:34ZRaymond Hoh
<ul></ul><p>I couldn't duplicate this locally.</p>
<p>I activated the Dante theme and it redirected me to Dante's theme options page. Next, I went back to "Appearance > Themes" to change the theme to something else and was able to switch back. No fatal errors. I tried this on a normal user account that is an administrator on a sub-site as well.</p>
<p>I did duplicate it on the development site though. I'm looking into it.</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482102020-01-10T00:05:02ZRaymond Hoh
<ul><li><strong>Category name</strong> set to <i>WordPress (misc)</i></li><li><strong>Status</strong> changed from <i>Reporter Feedback</i> to <i>Resolved</i></li><li><strong>Target version</strong> changed from <i>Not tracked</i> to <i>1.16.3</i></li></ul><p>Figured out the problem.</p>
<p>The problem is two-fold:<br />1. In the theme-dependent plugin deactivation process, the code was looking for the wrong theme to check for dependent plugins. This was caused by me! <strong>sigh</strong>. Should be fixed as of <a class="external" href="https://github.com/cuny-academic-commons/cac/commit/f459fe083128a9583cac7e478813f2c23212d609">https://github.com/cuny-academic-commons/cac/commit/f459fe083128a9583cac7e478813f2c23212d609</a><br />2. The theme-dependent plugin deactivation process relies on plugins being good citizens and ensuring that their plugin can run independent outside of the theme. This was not the case with the 'dante-framework' plugin as it throws a fatal error as reported in this thread. I've patched up 'dante-framework' in the following commit - <a class="external" href="https://github.com/cuny-academic-commons/cac/commit/fdbf1ba31bf3df62757fc78420b5c6ec1f8f5ac7">https://github.com/cuny-academic-commons/cac/commit/fdbf1ba31bf3df62757fc78420b5c6ec1f8f5ac7</a>. And have also sent an email to the 'dante' authors in hopes that they will patch up their plugin in a future release.</p>
<p>The good news is with the first fix applied, if there is a troublesome plugin again, you'll only see the fatal error once. When you reload the page, the page should load again.</p>
<p>I've deployed the two fixes on production as a hotfix.</p>
<p>Thanks for the report, Laurie!</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482172020-01-10T17:30:10ZLaurie Hurson
<ul></ul><p>Theme dependent plugins always seem risky to me, but probably because I only pay attention to them instances like this.</p>
<p>Thanks to you both for the insight and the quick fix!</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=482192020-01-10T19:04:00ZBoone Gorgesboone@gorg.es
<ul></ul><p>Thanks for your sleuthing, Ray!</p> CUNY Academic Commons - Bug #12278: Cannot acces dashboard due to "Critical Error" https://redmine.gc.cuny.edu/issues/12278?journal_id=583362021-02-01T20:09:57ZRaymond Hoh
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/13923">Support #13923</a>: Request to update Dante theme</i> added</li></ul>