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

jasonschweb created an issue. See original summary.

markhalliwell’s picture

Assigned: jasonschweb » Unassigned
Category: Bug report » Support request
Status: Active » Closed (works as designed)

You just need to replace the js.php file in your site's docroot with the new one. These constants are no longer defined in js.php.