Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Moritz Lenz

On 04/08/2015 07:57 AM, Ali Umair wrote:

Hi,

- Browser *(Client Browser firfox and chrome)*
- OS *(Client browser linx and OTRS running  on Linux)*
- OTRS Version *(3.0.6)*
- What Host (Linux, Win) *Host is linux*
- Webserver *(Apache)*
- Is anything in the logs (apache / nginx error log) and OTRS Log that
maybe related to you action
- when does the error occur?
*
When i hit on Login page Too Old browser message displayed


Maybe the problem is actually what the error message says? Your browsers 
are too old?


You didn't include the browser versions.

Cheers,
Moritz


and on
alert bo javascript message displayed of *TypeError: Cannot call method
'Init' of undefined* in common JS file

In error log:*

[Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css,
referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
[Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
[Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
referer: https://support.innovative-pk.com/otrs/index.pl


*In access log i get following msgs:*

; - - [29/Mar/2015:03:57:26 -0700] GET /otrs/index.pl HTTP/1.1 200
10732 - Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101
Firefox/36.0
;2 - - [29/Mar/2015:03:57:27 -0700] GET / 200 275 - -
; - - [29/Mar/2015:03:57:27 -0700] GET
/otrs-web/js/js-cache/ModuleJS_262e1655ed48a1645e7d6aaa7eab7cd8.js
HTTP/1.1 200 680 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
; - - [29/Mar/2015:03:57:27 -0700] GET
/otrs-web/js/js-cache/CommonJS_bb6e60a0b78bf3e1bd894440b20a34a8.js
HTTP/1.1 200 300568 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/skins/Agent/default/css-cache/CommonCSS_d2cb2cb04e61217e3345baf51d998492.css
HTTP/1.1 404 283 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/skins/Agent/default/css/thirdparty/ui-theme/jquery-ui.css
HTTP/1.1 200 30158 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/js/js-cache/CommonJS_dd46ed1a27280cd74ffde3b1f18acd58.js
HTTP/1.1 404 263 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0



On 4/8/2015 10:43 AM, Johannes Nickel wrote:

Hey,

to help you we need some more information like:
- Browser
- OS
- OTRS Version
- What Host (Linux, Win)
- Webserver
- Is anything in the logs (apache / nginx error log) and OTRS Log that
maybe related to you action
- when does the error occur?

regards
Johannes

2015-04-08 7:10 GMT+02:00 Ali Umair aum...@i2cinc.com
mailto:aum...@i2cinc.com:

Hi,
I am facing same issue in OTRS. Can anyone please guide how i
fix this issue?? Its humble request if someone help or guide me??

[ERROR] JavaScriptError: Cannot call method 'Init' of undefined
• 
/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught 
TypeError: Cannot call method 'Init' of undefined
• 
TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212
• (anonymous 
function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546
• 
c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37
• 
c.t/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37

/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:168[ERROR] 
JavaScriptError: Cannot call method 'Init' of undefined
• 
/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught 
TypeError: Cannot call method 'Init' of undefined
• 
TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212
• (anonymous 
function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546
• 
c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37



--

--

*Best Regards*

*Ali Umair *






Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Ali Umair

Browser version is Firefox 13.0.1


On 4/8/2015 12:09 PM, Moritz Lenz wrote:

On 04/08/2015 07:57 AM, Ali Umair wrote:

Hi,

- Browser *(Client Browser firfox and chrome)*
- OS *(Client browser linx and OTRS running  on Linux)*
- OTRS Version *(3.0.6)*
- What Host (Linux, Win) *Host is linux*
- Webserver *(Apache)*
- Is anything in the logs (apache / nginx error log) and OTRS Log that
maybe related to you action
- when does the error occur?
*
When i hit on Login page Too Old browser message displayed


Maybe the problem is actually what the error message says? Your 
browsers are too old?


You didn't include the browser versions.

Cheers,
Moritz


and on
alert bo javascript message displayed of *TypeError: Cannot call method
'Init' of undefined* in common JS file

In error log:*

[Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css, 


referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936 


[Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js, 


referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936 


[Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js, 


referer: https://support.innovative-pk.com/otrs/index.pl


*In access log i get following msgs:*

; - - [29/Mar/2015:03:57:26 -0700] GET /otrs/index.pl HTTP/1.1 200
10732 - Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101
Firefox/36.0
;2 - - [29/Mar/2015:03:57:27 -0700] GET / 200 275 - -
; - - [29/Mar/2015:03:57:27 -0700] GET
/otrs-web/js/js-cache/ModuleJS_262e1655ed48a1645e7d6aaa7eab7cd8.js
HTTP/1.1 200 680 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 
Firefox/36.0

; - - [29/Mar/2015:03:57:27 -0700] GET
/otrs-web/js/js-cache/CommonJS_bb6e60a0b78bf3e1bd894440b20a34a8.js
HTTP/1.1 200 300568 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 
Firefox/36.0

; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/skins/Agent/default/css-cache/CommonCSS_d2cb2cb04e61217e3345baf51d998492.css 


HTTP/1.1 404 283 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 
Firefox/36.0

; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/skins/Agent/default/css/thirdparty/ui-theme/jquery-ui.css
HTTP/1.1 200 30158 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 
Firefox/36.0

; - - [29/Mar/2015:03:57:40 -0700] GET
/otrs-web/js/js-cache/CommonJS_dd46ed1a27280cd74ffde3b1f18acd58.js
HTTP/1.1 404 263 https://support.innovative-pk.com/otrs/index.pl;
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 
Firefox/36.0




On 4/8/2015 10:43 AM, Johannes Nickel wrote:

Hey,

to help you we need some more information like:
- Browser
- OS
- OTRS Version
- What Host (Linux, Win)
- Webserver
- Is anything in the logs (apache / nginx error log) and OTRS Log that
maybe related to you action
- when does the error occur?

regards
Johannes

2015-04-08 7:10 GMT+02:00 Ali Umair aum...@i2cinc.com
mailto:aum...@i2cinc.com:

Hi,
I am facing same issue in OTRS. Can anyone please guide how i
fix this issue?? Its humble request if someone help or guide me??

[ERROR] JavaScriptError: Cannot call method 'Init' of undefined
• 
/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught 
TypeError: Cannot call method 'Init' of undefined
• 
TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212
• (anonymous 
function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546
• 
c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37
• 
c.t/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 

/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:168[ERROR] 
JavaScriptError: Cannot call method 'Init' of undefined
• 
/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught 
TypeError: Cannot call method 'Init' of undefined
• 
TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212
• (anonymous 
function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546
• 
c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37




--

--


Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Ali Umair
My otrs application run on single node fine, but when run otrs 
application on nodes two nodes for load balancing, after that i am 
getting this exception on login page. I try to execute script of 
deletecache, loadcache and rebuild config but error is still persist...


Ali

On 4/8/2015 12:34 PM, Renee B wrote:

Did you upgrade your OTRS or is it the initial installation?

On 08.04.2015 07:57, Ali Umair wrote:

Hi,

- Browser *(Client Browser firfox and chrome)*
- OS *(Client browser linx and OTRS running  on Linux)*
- OTRS Version *(3.0.6)*
- What Host (Linux, Win) *Host is linux*
- Webserver *(Apache)*
- Is anything in the logs (apache / nginx error log) and OTRS Log that
maybe related to you action
- when does the error occur?
*
When i hit on Login page Too Old browser message displayed and on
alert bo javascript message displayed of *TypeError: Cannot call
method 'Init' of undefined* in common JS file

In error log:*

[Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css,
referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
[Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
referer:
https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
[Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
/opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
referer: https://support.innovative-pk.com/otrs/index.pl





--

--

*Best Regards*

*Ali Umair *


___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Renee B
Did you upgrade your OTRS or is it the initial installation?

On 08.04.2015 07:57, Ali Umair wrote:
 Hi,

 - Browser *(Client Browser firfox and chrome)*
 - OS *(Client browser linx and OTRS running  on Linux)*
 - OTRS Version *(3.0.6)*
 - What Host (Linux, Win) *Host is linux*
 - Webserver *(Apache)*
 - Is anything in the logs (apache / nginx error log) and OTRS Log that
 maybe related to you action
 - when does the error occur?
 *
 When i hit on Login page Too Old browser message displayed and on
 alert bo javascript message displayed of *TypeError: Cannot call
 method 'Init' of undefined* in common JS file

 In error log:*

 [Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css,
 referer:
 https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
 [Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
 referer:
 https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
 [Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
 referer: https://support.innovative-pk.com/otrs/index.pl



-- 
Perl / OTRS development: http://perl-services.de
OTRS AddOn repository: http://opar.perl-services.de

___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev


Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Johannes Nickel
There you have your problem. OTRS minimizes the JS and CSS Files, these
files are generated via local scripts, each per machine. It's the same for
the cache files and scripts. You can't yours simply load balance OTRS.
There are several steps you have to look after.

Regards



On Wednesday, April 8, 2015, Ali Umair aum...@i2cinc.com wrote:

  My otrs application run on single node fine, but when run otrs
 application on nodes two nodes for load balancing, after that i am getting
 this exception on login page. I try to execute script of deletecache,
 loadcache and rebuild config but error is still persist...

 Ali

 On 4/8/2015 12:34 PM, Renee B wrote:

 Did you upgrade your OTRS or is it the initial installation?

 On 08.04.2015 07:57, Ali Umair wrote:

  Hi,

 - Browser *(Client Browser firfox and chrome)*
 - OS *(Client browser linx and OTRS running  on Linux)*
 - OTRS Version *(3.0.6)*
 - What Host (Linux, Win) *Host is linux*
 - Webserver *(Apache)*
 - Is anything in the logs (apache / nginx error log) and OTRS Log that
 maybe related to you action
 - when does the error occur?
 *
 When i hit on Login page Too Old browser message displayed and on
 alert bo javascript message displayed of *TypeError: Cannot call
 method 'Init' of undefined* in common JS file

 In error log:*

 [Sat Mar 28 23:44:11 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/skins/Agent/default/css-cache/CommonCSS_f0d8130800dc2d7b6a226b692b4a8776.css,
 referer:https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
 [Sat Mar 28 23:44:13 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
 referer:https://support.innovative-pk.com/otrs/index.pl?Action=AgentTicketSearch;Subaction=Search;Profile=last-search;SortBy=Age;OrderBy=Down;TakeLastSearch=1;StartHit=1;TicketID=161936
 [Sat Mar 28 23:44:22 2015] [error] [;] File does not exist:
 /opt/iplOTRS/var/httpd/htdocs/js/js-cache/CommonJS_26da628935b53a24253a5f2450c56db2.js,
 referer: https://support.innovative-pk.com/otrs/index.pl



 --

 --

 *Best Regards*

  *Ali Umair *


___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread David Boyes
 Especially for this scenario, since version 3.3.5 the otrs.LoaderCache.pl 
 script
 has the --generate option. Run it on both nodes; and you will be able to log 
 in
 just fine. You could call via a cron job or after installs and upgrades on 
 all your
 nodes.
 But as Johannes mentioned, to do a load balanced setup which actually
 makes sense, it takes a lot of thought and planning. It's not something that
 works out-of-the box with the default setup.

I have some updates that eliminate most of the local filesystem references, but 
it would take some updating to get to the current release. I took the approach 
of referencing blobs in a database table and adding a version number column so 
that I can request the most current blob, then execute it. 

Would that be something useful? 

== db

___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev


Re: [dev] [OTRS] JavaScriptError: Cannot call method 'Init' of undefined

2015-04-08 Thread Michiel Beijen
Hi David,

On Wed, Apr 8, 2015 at 9:24 PM, David Boyes dbo...@sinenomine.net wrote:

 I have some updates that eliminate most of the local filesystem references, 
 but it would take some updating to get to the current release. I took the 
 approach of referencing blobs in a database table and adding a version number 
 column so that I can request the most current blob, then execute it.

 Would that be something useful?


Which ' local file system'  references are you talking about?
There are just a few places where OTRS uses local file systems
(session storage, attachments, VirtualFS which is used by Change
Management) and all these also have options to use a database backend.
Apart from that, there is the loader cache for which there is the
'--generate'  option now.
There is also the SysConfig which is stored in a file on disk.

 Did you store the minified JS and CSS files in the database? And the
SysConfig values? that's nice but it might be a little bit
over-engineered. Also, the vast majority of OTRS users will not need
clustered setups, and will use vertical scaling  - bigger machines -
or maybe break out the database server to a separate machine, and
avoid all headaches that come with multiple master nodes.
--
Michiel
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev