Cannot call method 'Init' of undefined

Moderator: crythias

Locked
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Cannot call method 'Init' of undefined

Post by rufi86 »

Hi

I had that problem witj previous version of otrs and now

Cannot call method 'Init' of undefined
I have latedt version otrs, few minutes agos i just finished new instalation (not upgrade)

I tried:

bin$ ./otrs.RebuildConfig.pl
bin$ ./otrs.LoaderCache.pl -o delete
bin$ ./otrs.DeleteCache.pl --expired

No success, still im getting that error.
How to solve this problem ?

Regards.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cannot call method 'Init' of undefined

Post by crythias »

Without line numbers, filenames that are calling this, context of error (surrounding information), how the error appears (web, otrs log, command line), method to replicate, we can only guess randomly.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

sure.

error_log
File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/js-cache/ModuleJS_e213fd1b1336ccb74ee5da338728e974.js, referer: http://servicedesk.ines.com.pl/index.pl ... tDashboard
Please also take a look into attachement.
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cannot call method 'Init' of undefined

Post by crythias »

cache isn't being deleted. Sometimes this occurs if you're running deletecache from an aliased folder.
Alternative answers: cache folder is being sought in a different location than what apache thinks.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

What i must to do to solve this issue ?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cannot call method 'Init' of undefined

Post by crythias »

rufi86 wrote:What i must to do to solve this issue ?
check your apache logs to find out the path apache seeks for the js cache

Read my previous message again. Tell us how it applies or doesn't apply to you.

find and manually delete your cache store where you think it is.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

Hello

I spoke with system administrator

Apache never cache - there is nothing to flush... etc...

So Do you have another idea how to solve.


Here is error log.
File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/js-cache/ModuleJS_e213fd1b1336ccb74ee5da338728e974.js, referer: http://servicedesk.ines.com.pl/
253 error 89.191.152.48 Tue Feb 19 20:27:35 2013 File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/js-cache/ModuleJS_e213fd1b1336ccb74ee5da338728e974.js, referer: http://servicedesk.ines.com.pl/
254 error 89.191.152.48 Tue Feb 19 20:27:50 2013 File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/skins/Agent/default/css-cache/ModuleCSS_981592e194c60ffde9f2c5f4e97a1614.css, referer: http://servicedesk.ines.com.pl/index.pl?Action=Admin
255 error 89.191.152.48 Tue Feb 19 20:27:50 2013 File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/js-cache/ModuleJS_2e0238828a369d93c4bfc0c1ffa6ef5a.js, referer: http://servicedesk.ines.com.pl/index.pl?Action=Admin
I saw before forum question about method 'Init' of undefined ...
No answer.
Do you know how to solve this ? or this is bug ?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cannot call method 'Init' of undefined

Post by crythias »

your config is ... interesting.

File does not exist: /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/js-cache/ModuleJS_e213fd1b1336ccb74ee5da338728e974.js

think about what this means in your environment.
in general, you would have the path be:
/opt/otrs/var/httpd/htdocs/js/js-cache/...

In your case, (apparently?) there is some confusion as to the user that otrs runs as and what its home path is.
grep otrs /etc/passwd
otrs:x:1001:1001:OTRS User,,,:/opt/otrs:/bin/false

Anything else and it is ... well, whatever you have configured.

To solve this would be to make sure apache knows the same location that the js-cache is that the otrs application does.

(What does that mean?)
It means that if apache thinks that the js-cache is in /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/, then OTRS has to believe the same thing.

(I don't understand?)
OTRS is creating cache files and storing them in one location. (Where?) beats me. but should be in the relative path of otrs/var/httpd/htdocs/js
Apache is looking for the files that OTRS says is the cached files in a completely different location (Where?) /home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl/bin/cgi-bin/otrs-web/js/

(I still don't understand how to fix...)
Check your apache config for otrs -- post it here -- and your otrs user's home directory and your path to otrs.
chances are, you'll already see where the conflict comes from.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

Hello

This is shared hosting. I dont have root permissions.

This location i have defined in my confing

# fs root directory
# ---------------------------------------------------- #
#$Self->{Home} = '/opt/otrs';
$Self->{Home} = '/home/rufik/public_html/ines/public_html/servicedesk.ines.com.pl';
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot call method 'Init' of undefined

Post by jojo »

please post apache config, check which user is used for running the OTRS scripts, the permissions of the directory

Please also note that it is absolutly not suggested to run OTRS on a shared webhosting!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

jojo wrote:please post apache config, check which user is used for running the OTRS scripts, the permissions of the directory

Please also note that it is absolutly not suggested to run OTRS on a shared webhosting!

Hi
About apache config please tell me what do you want, after that i will discuss this with system administrator.


Regarding shared webhosting, my question is why ?
rufik@p23:~/public_html/ines/public_html/servicedesk.ines.com.pl/bin$ ls -la
total 476
drwxr-xr-x 4 rufik users 4096 2013-02-19 20:34 ./
drwxr-xr-x 8 rufik users 4096 2013-02-19 14:10 ../
-rwxr-xr-x 1 rufik users 3489 2012-11-22 12:43 Cron.sh*
drwxr-xr-x 3 rufik users 4096 2013-02-19 20:29 cgi-bin/
drwxr-xr-x 2 rufik users 4096 2013-02-14 14:52 fcgi-bin/
-rwx------ 1 rufik users 2890 2013-01-24 11:21 otrs.AddCustomerUser.pl*
-rwx------ 1 rufik users 2444 2013-01-24 11:21 otrs.AddGroup.pl*
-rwx------ 1 rufik users 4211 2013-01-24 11:21 otrs.AddQueue.pl*
-rwx------ 1 rufik users 3376 2013-01-24 11:21 otrs.AddQueue2StdResponse.pl*
-rwx------ 1 rufik users 2436 2013-01-24 11:21 otrs.AddRole.pl*
-rwx------ 1 rufik users 3574 2013-01-24 11:21 otrs.AddRole2Group.pl*
-rwx------ 1 rufik users 3234 2013-01-24 11:21 otrs.AddService.pl*
-rwx------ 1 rufik users 3531 2013-01-24 11:21 otrs.AddSystemAddress.pl*
-rwx------ 1 rufik users 2391 2013-01-24 11:21 otrs.AddTicketType.pl*
-rwx------ 1 rufik users 3370 2013-01-24 11:21 otrs.AddUser.pl*
-rwx------ 1 rufik users 3129 2013-01-24 11:21 otrs.AddUser2Group.pl*
-rwx------ 1 rufik users 3082 2013-01-24 11:21 otrs.AddUser2Role.pl*
-rwx------ 1 rufik users 5606 2013-01-24 11:21 otrs.ArticleStorageSwitch.pl*
-rwx------ 1 rufik users 3729 2013-01-24 11:21 otrs.CheckDB.pl*
-rwx------ 1 rufik users 18240 2013-02-14 14:51 otrs.CheckModules.pl*
-rwx------ 1 rufik users 4124 2013-01-24 11:21 otrs.CheckSum.pl*
-rwx------ 1 rufik users 3316 2013-01-24 11:21 otrs.CleanTicketArchive.pl*
-rwx------ 1 rufik users 3360 2013-01-24 11:21 otrs.CleanTicketIndex.pl*
-rwx------ 1 rufik users 2616 2013-01-24 11:21 otrs.CleanUp.pl*
-rwx------ 1 rufik users 12625 2013-02-14 14:51 otrs.CleanupTicketMetadata.pl*
-rwx------ 1 rufik users 7490 2013-01-24 11:21 otrs.CreateApacheStartupFile.pl*
-rwx------ 1 rufik users 17937 2013-02-14 14:51 otrs.CreateTranslationFile.pl*
-rwx------ 1 rufik users 2721 2013-01-24 11:21 otrs.Cron4Win32.pl*
-rwx------ 1 rufik users 2258 2013-01-24 11:21 otrs.CryptPassword.pl*
-rwx------ 1 rufik users 2627 2013-01-24 11:21 otrs.DeleteCache.pl*
-rwx------ 1 rufik users 4392 2013-01-24 11:21 otrs.DeleteSessionIDs.pl*
-rwx------ 1 rufik users 3033 2013-01-31 10:37 otrs.ExecuteDatabaseXML.pl*
-rwx------ 1 rufik users 8708 2013-01-24 11:21 otrs.ExportStatsToOPM.pl*
-rwx------ 1 rufik users 27203 2013-02-14 14:51 otrs.FillDB.pl*
-rwx------ 1 rufik users 14354 2013-01-17 10:06 otrs.GenerateStats.pl*
-rwx------ 1 rufik users 7778 2013-01-24 11:21 otrs.GenericAgent.pl*
-rwx------ 1 rufik users 4243 2013-01-24 11:21 otrs.GenericInterfaceDebugRead.pl*
-rwx------ 1 rufik users 2921 2013-01-24 11:21 otrs.GetConfig.pl*
-rwx------ 1 rufik users 3770 2013-01-24 11:21 otrs.GetTicketThread.pl*
-rwx------ 1 rufik users 2584 2013-01-24 11:21 otrs.LoaderCache.pl*
-rwx------ 1 rufik users 4806 2013-01-24 11:21 otrs.MarkTicketAsSeen.pl*
-rwx------ 1 rufik users 4537 2013-01-31 10:51 otrs.MySQLInnoDBSwitch.pl*
-rwx------ 1 rufik users 24496 2013-01-24 11:21 otrs.PackageManager.pl*
-rwx------ 1 rufik users 9272 2013-01-24 11:21 otrs.PendingJobs.pl*
-rwx------ 1 rufik users 4229 2013-01-24 11:21 otrs.PostMaster.pl*
-rwx------ 1 rufik users 1861 2013-01-24 11:21 otrs.PostMasterClient.pl*
-rwx------ 1 rufik users 4723 2013-01-24 11:21 otrs.PostMasterDaemon.pl*
-rwx------ 1 rufik users 6054 2013-01-24 11:21 otrs.PostMasterMailbox.pl*
-rwx------ 1 rufik users 2295 2013-01-24 11:21 otrs.RebuildConfig.pl*
-rwx------ 1 rufik users 2952 2013-01-24 11:21 otrs.RebuildEscalationIndex.pl*
-rwx------ 1 rufik users 3181 2013-01-24 11:21 otrs.RebuildFulltextIndex.pl*
-rwx------ 1 rufik users 2155 2013-01-24 11:21 otrs.RebuildTicketIndex.pl*
-rwx------ 1 rufik users 4084 2013-01-24 11:21 otrs.RefreshSMIMEKeys.pl*
-rwx------ 1 rufik users 19237 2013-01-24 11:21 otrs.Scheduler.pl*
-rwx------ 1 rufik users 21654 2013-01-24 11:21 otrs.Scheduler4win.pl*
-rwx------ 1 rufik users 3767 2013-01-24 11:21 otrs.Scheduler4winInstaller.pl*
-rwx------ 1 rufik users 2581 2013-01-24 11:21 otrs.SetPassword.pl*
-rwx------ 1 rufik users 7523 2013-01-24 11:21 otrs.SetPermissions.pl*
-rwx------ 1 rufik users 5024 2013-01-24 11:21 otrs.TicketDelete.pl*
-rwx------ 1 rufik users 2526 2013-01-24 11:21 otrs.UnitTest.pl*
-rwx------ 1 rufik users 5097 2013-01-24 11:21 otrs.UnlockTickets.pl*
-rwx------ 1 rufik users 7101 2013-01-24 11:21 otrs.WebserviceConfig.pl*
-rwxr-xr-x 1 rufik users 1552 2012-11-22 12:43 otrs.cleanup*
-rwx------ 1 rufik users 6053 2013-01-24 11:21 otrs.xml2sql.pl*
regards
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot call method 'Init' of undefined

Post by jojo »

which user runs the apache?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

jojo wrote:which user runs the apache?

Hello

Sorry for late answer
rufik@p23:~$ top
top - 14:19:44 up 58 days, 11:24, 1 user, load average: 3.20, 4.43, 4.01
Tasks: 4 total, 1 running, 3 sleeping, 0 stopped, 0 zombie
Cpu(s): 23.4%us, 5.5%sy, 0.0%ni, 51.1%id, 19.1%wa, 0.0%hi, 0.9%si, 0.0%st
Mem: 14549908k total, 10594624k used, 3955284k free, 325996k buffers
Swap: 2570364k total, 154204k used, 2416160k free, 5839684k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5157 rufik 20 0 28100 7816 3452 S 0 0.1 0:00.07 php-fpm: pool php54-rufik
6273 rufik 20 0 6540 1164 816 S 0 0.0 0:00.00 sshd: rufik@pts/0
6275 rufik 20 0 3568 1832 1188 S 0 0.0 0:00.01 -bash
6297 rufik 20 0 2352 1012 812 R 0 0.0 0:00.02 top
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot call method 'Init' of undefined

Post by jojo »

I can not see any apache process here
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

Propably root running apache2 process.
Why yo are asking, i think there is no problem from linux configuration, but application.

I can see few other "Cannot call method 'Init' of undefined" not solved, maybe you don't know how to fix that problem ?

Maybe time test that case in your lab environment ? and release official information ?

ps. HOT SOLVE THAT PROBLEM ?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Cannot call method 'Init' of undefined

Post by jojo »

as my installtions don't show the error I can and will not test anything.

It seems that you require or expect business support, please get some professional support contract or file a bug (which contains all information to reproduce the error) via http://bugs.otrs.org
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cannot call method 'Init' of undefined

Post by crythias »

rufi86:
You won't get much help here because
1) You're using shared hosting and it's not supported
2) You have no control over root (which is why shared hosting is not supported)
3) You have no control over apache (which is why shared hosting is not supported).
4) I don't believe you've told us the version of OTRS you're using. You said, "Latedt" (sic) but define it for us
5) You assume it's a bug with OTRS but nobody else has reported it.
6) You didn't tell us how YOU would reproduce this error.
7) You didn't tell us how you configured apache on a shared host without apache
8) You found "other" entries with the same thing, didn't link to them, expect us to find them and determine in a crystal ball fashion why those other links do or do not apply to you.

Basically, all we have is, "Hey, this doesn't work for me. Fix it."

viewtopic.php?f=81&p=27701 says there's a problem with Czech as of 2010
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
aramirez91
Znuny newbie
Posts: 2
Joined: 27 Mar 2013, 00:00
Znuny Version: 3.0.11
Real Name: aldo ramirez
Company: sp

Re: Cannot call method 'Init' of undefined

Post by aramirez91 »

i have an OTRS v 3.0.11 at windows and when i try to open a new ticket this window appear (see the attached file)

how could i fix it!?
You do not have the required permissions to view the files attached to this post.
rufi86
Znuny newbie
Posts: 17
Joined: 11 Jan 2013, 03:34
Znuny Version: latest
Real Name: Patrick

Re: Cannot call method 'Init' of undefined

Post by rufi86 »

one more user with that bug...
aramirez91
Znuny newbie
Posts: 2
Joined: 27 Mar 2013, 00:00
Znuny Version: 3.0.11
Real Name: aldo ramirez
Company: sp

Re: Cannot call method 'Init' of undefined

Post by aramirez91 »

i fixed yesteday! go to admin --> sysconfig --> ITSM Change Manager --> click on Fronted Agent CustomerSearch and in the new menu in the last option change the value (by default is no), wait a few minutes and the error dissapears!

try to access to the interface agent but in the local server (in my case i access to across of a web browser and an ip address), and another different error message appears, in this error appears what it's the archive that you must change the values, check out the name of it and go to the OTRS and in the ITSM Change Manager find the archive, click on it and change the value to "yes"
Locked