-- crop.php
const _JEXEC = 1;
if (!defined('_JDEFINES')){
define('JPATH_BASE', dirname(__DIR__));
require_once JPATH_BASE . '/includes/defines.php';
}
require_once JPATH_LIBRARIES . '/import.legacy.php';
require_once JPATH_LIBRARIES . '/cms.php';
require_once JPATH_CONFIGURATION . '/configuration.php';
require_once JPATH_BASE . '/includes/framework.php';
class CronFURG extends JApplicationCli{
public function doExecute(){
...
}
}
JApplicationCli::getInstance('CronFURG')->execute();
php cron.php
No result
PHP Warning: Use of undefined constant JDEBUG - assumed 'JDEBUG' (this will throw an Error in a future version of PHP) in /storage/htdocs/joomla/ppgbaac/libraries/src/Version.php on line 327
Labels |
Added:
?
|
try
<?php
define('_JEXEC', 1);
define('JPATH_BASE', realpath('../'));
// ini_set('display_errors', '1');
// error_reporting(E_ALL);
// define('JDEBUG', 1);
include_once JPATH_BASE . '/includes/defines.php';
include_once JPATH_BASE . '/includes/framework.php';
include_once JPATH_BASE . '/libraries/joomla/factory.php';
class CronFURG extends JApplicationCli{
public function doExecute(){
// ...
}
}
JApplicationCli::getInstance('CronFURG')->execute();
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-06 17:02:51 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_Date | 2019-02-06 17:02:51 | ⇒ | 2019-02-06 17:02:54 |
Closed_By | joomla-cms-bot | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23699
@franz-wohlkoenig REOPEN THIS PLEASE
as of 3.9.11 this is still occurring
the "hi" is the jdebug working but it's throwing the warning.
Status | Closed | ⇒ | New |
Closed_Date | 2019-02-06 17:02:54 | ⇒ | |
Closed_By | Quy | ⇒ |
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Discussion |
This solves the issue which is strange since it thinks there is no jdebug constant.
<jdoc:include type="modules" name="debug" style="none"/>
<!-- If JDEBUG is defined, load the css -->
<?php if (defined('JDEBUG') && JDEBUG)
{
HTMLHelper::_( 'stylesheet', '/framework/debug.css', $HTMLHelperDebug );
}
?>
Constants are case sensitive so your warning is correct because Joomla does not create mixed case constants.
I’m also not quite sure how this qualifies to re-open an issue when both the source path of the error and the way of triggering it have nothing to do with the original report. A similar error message does not equate to the same “bug”.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-06 11:06:52 |
Closed_By | ⇒ | HLeithner |
Im pretty sure I worked on this before:
#15843
566a79f