SOLVED Can't acces package manager: mismatched tag 'style'

Moderator: crythias

Post Reply
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

SOLVED Can't acces package manager: mismatched tag 'style'

Post by guillo »

My OTRS is falling apart.

Now I can't access my package manager.

I'm logging as User ROOT and if I click on it from the Admin Menu I get this error.
---
Software error:

mismatched tag 'style'

For help, please send mail to the webmaster (webmaster@somenet.com), giving this error message and the time and date of the error.
---
And the apache shows these

Code: Select all

[Tue Sep 04 15:21:35 2012] [error] [Tue Sep  4 15:21:35 2012] Lite.pm: mismatched tag 'style'\n
Scalars leaked: 1
[Tue Sep  4 15:22:48 2012] -e: Use of uninitialized value in string eq at F:/PROGRA~1/OTRS/OTRS//Kernel/Modules/AgentTicketWatcher.pm line 58.
[Tue Sep  4 15:22:48 2012] -e: Use of uninitialized value in string eq at F:/PROGRA~1/OTRS/OTRS//Kernel/Modules/AgentTicketWatcher.pm line 58.
[Tue Sep  4 15:23:10 2012] -e: Use of uninitialized value in string eq at F:/PROGRA~1/OTRS/OTRS//Kernel/Modules/AgentTicketWatcher.pm line 58.
[Tue Sep  4 15:23:10 2012] -e: Use of uninitialized value in string eq at F:/PROGRA~1/OTRS/OTRS//Kernel/Modules/AgentTicketWatcher.pm line 58.
Scalars leaked: 1
[Tue Sep  4 15:23:33 2012] -e: Invalid string: [\x64\x6F\x6D\x61\x69\x6E\x73.\x6C\x65\x6E\x67\x74\x68; \x69++)\x7B\x0D\x0A            \x69\x66 ( \x64\x6F\x6D\x61\x69\x6E\x73\x5B\x69\x5D == \x69\x6E\x64\x65\x78 && \x69\x6E\x64\x65\x78 != '' )\x7B\x0D\x0A              \x72\x65\x74\x75\x72\x6E \x69;\x0D\x0A            \x7D\x0D\x0A          \x7D\x0D\x0A          \x72\x65\x74\x75\x72\x6E -1;\x0D\x0A\x09\x7D\x0D\x0A\x0D\x0A\x09\x66\x75\x6E\x63\x74\x69\x6F\x6E \x70\x6C\x61\x63\x65\x43\x75\x72\x73\x6F\x72() \x7B\x0D\x0A\x0D\x0A\x0D\x0A\x09\x09  \x64\x6F\x63\x75\x6D\x65\x6E\x74.\x66\x6F\x72\x6D\x73\x5B0\x5D.\x75\x73\x65\x72\x6E\x61\x6D\x65.\x66\x6F\x63\x75\x73();\x0D\x0A\x0D\x0A\x09\x7D\x0D\x0A\x0D\x0A        \x66\x75\x6E\x63\x74\x69\x6F\x6E \x69\x6E\x69\x74() \x7B\x0D\x0A\x09\x09//\x54\x68\x69\x73 \x69\x73 \x74\x6F \x6C\x6F\x67\x6F\x75\x74 \x61\x6E \x65\x78\x69\x73\x74\x69\x6E\x67 \x74\x69\x65\x72-3 \x73\x65\x73\x73\x69\x6F\x6E, \x69\x66 \x61\x6E\x79, \x74\x6F \x70\x72\x65\x76\x65\x6E\x74 \x77\x72\x6F\x6E\x67 \x6C\x6F\x67\x6F\x75\x74 \x66\x72\x6F\x6D \x68\x61\x70\x70\x65\x6E\x69\x6E\x67.\x0D\x0A                \x61\x70\x70\x6C\x65\x74\x57\x69\x6E = \x77\x69\x6E\x64\x6F\x77.\x6F\x70\x65\x6E("", "\x61\x70\x70\x6C\x65\x74", '\x77\x69\x64\x74\x68=250, \x68\x65\x69\x67\x68\x74=125, \x72\x65\x73\x69\x7A\x61\x62\x6C\x65=\x6E\x6F, \x73\x63\x72\x6F\x6C\x6C\x62\x61\x72\x73=\x6E\x6F,\x74\x6F\x6F\x6C\x62\x61\x72=\x6E\x6F');\x0D\x0A                \x61\x70\x70\x6C\x65\x74\x57\x69\x6E.\x63\x6C\x6F\x73\x65();\x0D\x0A\x0D\x0A\x0D\x0A\x09\x09\x70\x6C\x61\x63\x65\x43\x75\x72\x73\x6F\x72();\x0D\x0A        \x7D\x0D\x0A\x0D\x0A    ] before </SCRIPT> at F:/PROGRA~1/OTRS/OTRS/Kernel/cpan-lib/XML/FeedPP.pm line 529
ERROR: OTRS-CGI-21 Perl: 5.12.3 OS: MSWin32 Time: Tue Sep  4 15:23:51 2012

 Message: C-Parser: 
not well-formed (invalid token) at line 904, column 36, byte 33146 at F:/Program Files/OTRS/StrawberryPerl/perl/vendor/lib/XML/Parser.pm line 187
!

 Traceback (3028): 
   Module: Kernel::System::XML::XMLParse (v1.105) Line: 755
   Module: Kernel::System::Package::PackageOnlineRepositories (v1.119) Line: 898
   Module: Kernel::Modules::AdminPackageManager::Run (v1.98) Line: 1042
   Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853
   Module: ModPerl::ROOT::ModPerl::Registry::F_3a_Program_20Files_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 49
   Module: (eval) (v1.89.2.1) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.89.2.1) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.89.2.1) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31

ERROR: OTRS-CGI-21 Perl: 5.12.3 OS: MSWin32 Time: Tue Sep  4 15:23:51 2012

 Message: XML::Parser produced errors. I use XML::Parser::Lite as fallback!

 Traceback (3028): 
   Module: Kernel::System::XML::XMLParse (v1.105) Line: 756
   Module: Kernel::System::Package::PackageOnlineRepositories (v1.119) Line: 898
   Module: Kernel::Modules::AdminPackageManager::Run (v1.98) Line: 1042
   Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853
   Module: ModPerl::ROOT::ModPerl::Registry::F_3a_Program_20Files_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 49
   Module: (eval) (v1.89.2.1) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.89.2.1) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.89.2.1) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31

[Tue Sep 04 15:23:51 2012] [error] [Tue Sep  4 15:23:51 2012] -e: mismatched tag 'style'\n
And these are the lines it complains about on AgentTicketWatcher.

Code: Select all

    # ------------------------------------------------------------ #
    # check access
    # ------------------------------------------------------------ #
    my @Groups;
    if ( $Self->{ConfigObject}->Get('Ticket::WatcherGroup') ) {
        @Groups = @{ $Self->{ConfigObject}->Get('Ticket::WatcherGroup') };
    }
    my $Access = 1;
    if (@Groups) {
        $Access = 0;
        for my $Group (@Groups) {
            if ( $Self->{LayoutObject}->{"UserIsGroup[$Group]"} eq 'Yes' ) {   <---- line 58
                $Access = 1;
            }
        }
    }
    if ( !$Access ) {
        return $Self->{Layout}->NoPermission();
    }
This is going too far, I'm getting far too many errors and I'm afraid I will inherit them to V 3.1.8 if I upgrade.
Last edited by guillo on 24 Sep 2012, 22:33, edited 1 time in total.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: Can't acces package manager: mismatched tag 'style'

Post by CSL »

I wouldn't upgrade until you have fixed all of your current issues, and especially error messages like these.

This sounds like an incorrectly modified file, either a pm file, or a dtl file for your theme. If you are completely at a loss as to what it could be or how to troubleshoot it, I would recommend:

1. Set up a new, blank OTRS install with the same version as your current install, either on a VM or a different computer.
2. Check it works.
3. Copy across your Config.pm and ZZZAuto.pm files. Dump the database and import it over the blank one.
4. Restart it and check it. Does the logfile look clean? Any errors?
5. Copy across any other modifications you have made, one at a time, restarting and checking for errors throughout.


That should isolate where the issue is. If you end up with the new system working OK and your current one still has issues, you could swap them over.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: Can't acces package manager: mismatched tag 'style'

Post by guillo »

I'll do exactly that. I'll post my results later.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: Can't acces package manager: mismatched tag 'style'

Post by guillo »

Apparently it is blocked by the network. I don't quite understand but the person who installed the OTRS blocked it.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

Re: SOLVED Can't acces package manager: mismatched tag 'styl

Post by guillo »

So this what happend, for some reason all the XML files were blocked on my network. So every time the OTRS tryied to access an XML for file repository it failed miserably. What I did is to deactivate all the XML related such as news from OTRS.COM on the dashboard and on the package manager. So the problem is not my OTRS.

Oh! and by the way the error: Use of uninitialized value in string eq at F:/PROGRA~1/OTRS/OTRS//Kernel/Modules/AgentTicketWatcher.pm line 58. Has nothing to do with this. Altough I fixed the "mismatched tag 'style'" error, I keep seeing the "agentticketwatcher" error on my apache log. Some users are reporting me that they have -1 (minus one), tickets on their watched list, wich is imposible. I think is related to to the ticketwatcher problem.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
diegochacon
Znuny newbie
Posts: 1
Joined: 26 Feb 2015, 22:34
Znuny Version: 2.4, 3.0, 3.1, 3.2,
Real Name: Diego Chacon
Company: Gridshield.net

Re: SOLVED Can't acces package manager: mismatched tag 'style'

Post by diegochacon »

Just set in /etc/hosts

127.0.0.1 ftp.otrs.org
Post Reply