#18369EM warns No XCLASS inclusion code found if you use $GLOBALS['TYPO3_CONF_VARS']
Description
Some newer PHP5 versions did not find the $TYPO3_CONF_VARS variable. You have had to set explcitely global $TYPO3_CONF_VARS in each PHP file. And inspite of this, sometimes it still did not have it.
To solve this issue I have changed $TYPO3_CONF_VARS to $GLOBALS[‘TYPO3_CONF_VARS’] in each PHP file.
But now the EM warns with many red lines even if the XCLASS is provided. Example:
if (defined(‘TYPO3_MODE’) && $GLOBALS[‘TYPO3_CONF_VARS’][TYPO3_MODE][‘XCLASS’][‘ext/tt_products/view/class.tx_ttproducts_single_view.php’]) {
include_once($GLOBALS[‘TYPO3_CONF_VARS’][TYPO3_MODE][‘XCLASS’][‘ext/tt_products/view/class.tx_ttproducts_single_view.php’]);
}
(issue imported from #M7753)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.