After upgrading from v1.0 to v2.2, started receiving warnings:
Notice: Constant JS_MENU_NOT_FOUND already defined in include_once() (line 10 of /sites/all/modules/js/js.module).
Notice: Constant JS_MENU_ACCESS_DENIED already defined in include_once() (line 11 of /sites/all/modules/js/js.module).
Fixed by wrapping the constant definitions in a defined() check:
if (!defined('JS_MENU_NOT_FOUND')) define('JS_MENU_NOT_FOUND', 2);
if (!defined('JS_MENU_ACCESS_DENIED')) define('JS_MENU_ACCESS_DENIED', 3);
if (!defined('JS_MENU_SITE_OFFLINE')) define('JS_MENU_SITE_OFFLINE', 4);
if (!defined('JS_MENU_SITE_ONLINE')) define('JS_MENU_SITE_ONLINE', 5);
Comments
Comment #2
markhalliwellYou just need to replace the
js.php
file in your site's docroot with the new one. These constants are no longer defined injs.php
.