Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linktrimmer 1.6.6: Avoid error in javascript generation (#151)
is_countable() would demand PHP >= 7.3.0 as of which it is available. See https://www.php.net/manual/en/function.is-countable.php Use a polyfill for PHP < 7.3.0 Loading serendipity_admin.php with $serendipity['production'] = false yielded a red alert box: The Serendipity JavaScript-library could not be loaded. This can happen due to PHP or Plugin errors, or even a malformed browser cache. To check the exact error please open https://.../index.php?/plugin/admin/serendipity_editor.js manually in your browser and check for error messages. Where at the end of that file could be found: == ERROR-REPORT (BETA/ALPHA-BUILDS) == <p><b>Warning:</b> count(): Parameter must be an array or an object that implements Countable in plugins/serendipity_event_linktrimmer/serendipity_event_linktrimmer.php on line 323.</p>
- Loading branch information