test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • pdca Friend
    #195112

    After installing the plugin, in the admin backend it shows these errors:

    Notice: Use of undefined constant DS – assumed ‘DS’ in /var/www/vhosts/mysite.xyz/plugins/system/japopup/asset/elements/jacolorpicker.php on line 44

    Notice: Use of undefined constant DS – assumed ‘DS’ in /var/www/vhosts/mysite.xyz/plugins/system/japopup/asset/elements/jacolorpicker.php on line 44

    (I changed my real domain name to mysite.xyz above)

    Other than that: it has some bugs in the different modals but the grey box works and looks perfect and also looks cool on a mobile phone…)

    Ninja Lead Moderator
    #524055

    You can fix the installation of japopup plugin with workaround below:

    Open the plugins/plg_system_japopup/asset/elements/jacolorpicker.php file:

    Change

    function getCurrentURL()
    {
    $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
    $uri = str_replace("/administrator", "", $uri);
    return $uri;
    }

    To


    function getCurrentURL()
    {
    if(!defined('DS')) define('DS', '/');
    $uri = str_replace(DS, "/", str_replace(JPATH_SITE, JURI::base(), dirname(__FILE__)));
    $uri = str_replace("/administrator", "", $uri);
    return $uri;
    }

    Hope it helps.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Ninja Lead 10 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum