{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/11512","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11512/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11512/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11512/events","html_url":"https://github.com/joomla/joomla-cms/issues/11512","id":169863213,"number":11512,"title":"New Notice about JDEBUG in access.php after install of J3.6.2","user":{"login":"thoni56","id":204496,"avatar_url":"https://avatars.githubusercontent.com/u/204496?v=3","gravatar_id":"","url":"https://api.github.com/users/thoni56","html_url":"https://github.com/thoni56","followers_url":"https://api.github.com/users/thoni56/followers","following_url":"https://api.github.com/users/thoni56/following{/other_user}","gists_url":"https://api.github.com/users/thoni56/gists{/gist_id}","starred_url":"https://api.github.com/users/thoni56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoni56/subscriptions","organizations_url":"https://api.github.com/users/thoni56/orgs","repos_url":"https://api.github.com/users/thoni56/repos","events_url":"https://api.github.com/users/thoni56/events{/privacy}","received_events_url":"https://api.github.com/users/thoni56/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T07:55:14Z","updated_at":"2016-08-08T12:26:15Z","closed_at":null,"body":"#### Steps to reproduce the issue\r\nAfter upgrading from 3.5.x to 3.6.2 my cron job started to send messages about a PHP Notice that I have not had before: \"Use of undefined constant JDEBUG\" in access.php. Not a big issue but wanted to report it anyways.\r\n\r\n#### Expected result\r\n\r\nNothing...\r\n\r\n\r\n#### Actual result\r\n\r\nMail message to webmaster with the following content\r\n\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 622\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 691\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 622\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 691\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 211\r\n> PHP Notice:  Use of undefined constant JDEBUG - assumed 'JDEBUG' in /var/www/events/libraries/joomla/access/access.php on line 217\r\n\r\n\r\n#### System information (as much as possible)\r\n\r\nJoomla 3.6.2 on Ubuntu 15.10, Apache 2.4.2, PHP 5.6.11-1ubuntu3.4, MySQL 14.14 Distrib 5.6.30\r\n\r\n#### Additional comments\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/238220434","html_url":"https://github.com/joomla/joomla-cms/issues/11512#issuecomment-238220434","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11512","id":238220434,"user":{"login":"mbabker","id":368545,"avatar_url":"https://avatars.githubusercontent.com/u/368545?v=3","gravatar_id":"","url":"https://api.github.com/users/mbabker","html_url":"https://github.com/mbabker","followers_url":"https://api.github.com/users/mbabker/followers","following_url":"https://api.github.com/users/mbabker/following{/other_user}","gists_url":"https://api.github.com/users/mbabker/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabker/subscriptions","organizations_url":"https://api.github.com/users/mbabker/orgs","repos_url":"https://api.github.com/users/mbabker/repos","events_url":"https://api.github.com/users/mbabker/events{/privacy}","received_events_url":"https://api.github.com/users/mbabker/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T12:26:15Z","updated_at":"2016-08-08T12:26:15Z","body":"`JDEBUG` isn't defined in any of the bootstrap files (`libraries/import.legacy.php` or `libraries/cms.php`) but the `includes/framework.php` file in each app, and those aren't loaded in our CLI bootstraps because they're application specific.\r\n\r\nI'm going to call this not a bug.  `JDEBUG` is used in a lot of places, as well as just checking the configuration file to find if debug mode is enabled (because consistency is overrated).  Similar to the `JPATH_*` base constants, it needs to be defined by all applications."}}
{"actor":{"display_login":"mbabker"}}