Instead of use the following, but adjust the directory traversal /.. unless the script is in a subfolder of the main Joomla folder:
Code:
define ('JPATH_BASE', $_SERVER[ 'DOCUMENT_ROOT' ]);
Code:
define('JPATH_BASE', realpath(dirname(__FILE__) . '/..'));
Statistics: Posted by toivo — Wed Apr 17, 2024 2:06 am