Project

General

Profile

eXtplorer v2.1.4 and Joomla 3.1.5

Added by Steve Hess over 10 years ago

I am able to install v2.1.4 on my site without an issue....and it works. However, I get the following errors that appear initially before the component loads, then they get squashed in between the upper and lower component panes once eXtplorer loads fully:

Notice: Constant SERVICES_JSON_SLICE already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 64 Notice: Constant SERVICES_JSON_IN_STR already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 69 Notice: Constant SERVICES_JSON_IN_ARR already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 74 Notice: Constant SERVICES_JSON_IN_OBJ already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 79 Notice: Constant SERVICES_JSON_IN_CMT already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 84 Notice: Constant SERVICES_JSON_LOOSE_TYPE already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 89 Notice: Constant SERVICES_JSON_SUPPRESS_ERRORS already defined in /home1/shess/public_html/kaa3a/administrator/components/com_extplorer/libraries/JSON.php on line 94

I am not down, but is there a fix for this?

Thanks for the nice component!


Replies (2)

RE: eXtplorer v2.1.4 and Joomla 3.1.5 - Added by Sören Eberhardt-Biermann over 10 years ago

I will fix these errors for the next version...
You can fix these notices yourself by changing the code in the file /libraries/JSON.php:

/**
 * Marker constant for ext_Json::decode(), used to flag stack state
 */
defined('SERVICES_JSON_SLICE') or define('SERVICES_JSON_SLICE',   1);

/**
 * Marker constant for ext_Json::decode(), used to flag stack state
 */
defined('SERVICES_JSON_IN_STR') or define('SERVICES_JSON_IN_STR',  2);

/**
 * Marker constant for ext_Json::decode(), used to flag stack state
 */
defined('SERVICES_JSON_IN_ARR') or define('SERVICES_JSON_IN_ARR',  3);

/**
 * Marker constant for ext_Json::decode(), used to flag stack state
 */
defined('SERVICES_JSON_IN_OBJ') or define('SERVICES_JSON_IN_OBJ',  4);

/**
 * Marker constant for ext_Json::decode(), used to flag stack state
 */
defined('SERVICES_JSON_IN_CMT') or define('SERVICES_JSON_IN_CMT', 5);

/**
 * Behavior switch for ext_Json::decode()
 */
defined('SERVICES_JSON_LOOSE_TYPE') or define('SERVICES_JSON_LOOSE_TYPE', 16);

/**
 * Behavior switch for ext_Json::decode()
 */
defined('SERVICES_JSON_SUPPRESS_ERRORS') or define('SERVICES_JSON_SUPPRESS_ERRORS', 32);

This should suppress the notices

RE: eXtplorer v2.1.4 and Joomla 3.1.5 - Added by Steve Hess over 10 years ago

That did work, thank you!

    (1-2/2)