[Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Moderator: crythias

Locked
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

[Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by harrypet »

Hi all,

I accidentally deactivate Core.InputFields.css in Loader::Agent::CommonCSS###000-Framework.

Now, I am not able to go into system Configuration and enable the css back as the input fields are not working.

Can anyone suggest how I can solve it?

Can any of the otrs administration can help? :(

I would be grateful for any help and reply.Thanks

Regards,
Harry
Last edited by harrypet on 20 Feb 2020, 10:31, edited 1 time in total.
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by zzz »

Hello Harry,

Execute this:
su -c '/opt/otrs/bin/otrs.Console.pl Admin::Config::Update --setting-name "Loader::Agent::CommonCSS###000-Framework" --reset' -s /bin/bash otrs

Best regards
Emin
Last edited by zzz on 20 Feb 2020, 11:30, edited 1 time in total.
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by harrypet »

Hey Emin,

I have tried the command and it says Error: found unknown arguments on the command line ('--reset').

Best Regards,
Harry
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by zzz »

Try this one

Code: Select all

su otrs
/opt/otrs/bin/otrs.Console.pl Admin::Config::Update --setting-name "Loader::Agent::CommonCSS###000-Framework" --reset
Last edited by zzz on 20 Feb 2020, 11:30, edited 1 time in total.
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by harrypet »

Hi Emin,

I got this Error again. Is that "--reset" is not valid?
Capture.JPG
Thanks bro.

Regards,
Harry
You do not have the required permissions to view the files attached to this post.
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by zzz »

Oh, right that option was introduced in 6.0.20.

Two options:
Update your system or add this to the bottom of your Config.pm (above "return 1;")

Code: Select all

    $Self->{'Loader::Agent::CommonCSS'}->{'000-Framework'} = [
        'Core.Reset.css',
        'Core.Default.css',
        'Core.Header.css',
        'Core.OverviewControl.css',
        'Core.OverviewSmall.css',
        'Core.OverviewMedium.css',
        'Core.OverviewLarge.css',
        'Core.Footer.css',
        'Core.PageLayout.css',
        'Core.Form.css',
        'Core.Table.css',
        'Core.Login.css',
        'Core.Widget.css',
        'Core.WidgetMenu.css',
        'Core.TicketDetail.css',
        'Core.Tooltip.css',
        'Core.Dialog.css',
        'Core.InputFields.css',
        'Core.Print.css',
        'Core.Animations.css',
    ];
    
Get sure to remove the block after you've fixed the setting to avoid problems in the future.

Best regards
Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: [Urgent]Accidentally remove the css in Loader::Agent::CommonJS###000-Framework

Post by harrypet »

Hey Emin,

Good News. It works fine. Cool.

Thanks for your sincere help again.

Regards,
Harry
Locked