Jump to content


Zurmo documentation and slow/crash on apache

encryption documention menu compress class apache add functions bugs xampp

  • Please log in to reply
8 replies to this topic

#1 Guest_helloworld_*

Guest_helloworld_*
  • Guests

Posted 10 March 2012 - 08:09 PM

Hi guys,

being testing your crm system which have some good functionality, but some issues i came up with listed below:
  • Some time the system runs very slow on my Apache server part of xampp or crashed the server with continuous loading. i have restarted the server to resolve this problem, i got memcached and all the other required extension. i want to know what causing this?
  • Is your system compressed and the code encrypted? i find it very hard to disable or extend functionality, even the simple things such as rename the menus, i couldn't not find the file that contains the menu labels.
  • documentation at the moment is very little, i could not find description of each classes?

thanks in advance.


helloworld

#2 sanbrar

sanbrar

    Advanced Member

  • Members
  • PipPipPip
  • 72 posts

Posted 11 March 2012 - 06:24 AM

Code is not encrypted but because of complexity of the app things may seam little that. Lets take a look how we can change menu label for Account.

Locate AccountsModule.php files (app->protected->modules->accounts)

locate the function getDefaultMetadata() and 'tabMenuItems' (default code is below)

	    public static function getDefaultMetadata()
	    {
...
...
               'tabMenuItems' => array(
				    array(
					    'label' => 'AccountsModulePluralLabel',
					    'url'   => array('/accounts/default'),
					    'right' => self::RIGHT_ACCESS_ACCOUNTS,
					    'items' => array(
						    array(
							    'label' => 'Create AccountsModuleSingularLabel',
							    'url'   => array('/accounts/default/create'),
							    'right' => self::RIGHT_CREATE_ACCOUNTS
						    ),
						    array(
							    'label' => 'AccountsModulePluralLabel',
							    'url'   => array('/accounts/default'),
							    'right' => self::RIGHT_ACCESS_ACCOUNTS
						    ),
					    ),
....
....
	    }

The label is set by 'label' => 'AccountsModulePluralLabel',

This where things may seam little encrypted; 'AccountsModulePluralLabel' actually calls a function that returns plural label of Account module.

You can easily change this to 'label' => 'Account Label Changed',

After making the change you have to refresh app cache and metadata.

clear cache => http://localhost/zur...p?&clearCache=1
Refresh metadata => http://localhost/zur...lveCustomData=1

Give it a try..

#3 Sacha Telgenhof

Sacha Telgenhof

    Advanced Member

  • Members
  • PipPipPip
  • 86 posts
  • LocationTokyo, Japan

Posted 11 March 2012 - 07:07 AM

Documentation can be found here http://zurmo.org/documentation. It has wikis, some tutorials and also class references.

#4 Jason

Jason

    Administrator

  • Administrators
  • 864 posts
  • LocationChicago

Posted 11 March 2012 - 08:16 PM

Hi guys,

being testing your crm system which have some good functionality, but some issues i came up with listed below:

  • Some time the system runs very slow on my Apache server part of xampp or crashed the server with continuous loading. i have restarted the server to resolve this problem, i got memcached and all the other required extension. i want to know what causing this?
  • Is your system compressed and the code encrypted? i find it very hard to disable or extend functionality, even the simple things such as rename the menus, i couldn't not find the file that contains the menu labels.
  • documentation at the moment is very little, i could not find description of each classes?

thanks in advance.


helloworld

What do your apache logs show? Is there any further debugging info that can point us what is crashing apache? Do you have debug on or off in Zurmo?

Jason Green
Zurmo Team
Need support? Upgrade now


#5 Guest_Ray_*

Guest_Ray_*
  • Guests

Posted 13 March 2012 - 09:51 AM

What do your apache logs show? Is there any further debugging info that can point us what is crashing apache? Do you have debug on or off in Zurmo?


how do you set debug mode? app config?

a bit of the log bellow.

[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Child process is running
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Acquired the start mutex.
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Starting 150 worker threads.
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Starting thread to listen on port 443.
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Starting thread to listen on port 80.
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Starting thread to listen on port 443.
[Mon Mar 12 15:22:49 2012] [notice] Child 3924: Starting thread to listen on port 80.
[Mon Mar 12 15:23:08 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/zurmo/app/index.ph
[Mon Mar 12 16:23:41 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:23:42 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:26:57 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:26:57 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:01 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:07 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:08 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:24 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:45 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:27:46 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:28:20 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:28:20 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:28:50 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:28:51 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:28:51 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:31:13 2012] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Mar 12 16:31:13 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 12 16:31:13 2012] [notice] Digest: done
[Mon Mar 12 16:31:14 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Mar 12 16:31:14 2012] [notice] Server built: Sep 10 2011 11:34:11
[Mon Mar 12 16:31:14 2012] [notice] Parent: Created child process 2992
[Mon Mar 12 16:31:16 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 12 16:31:16 2012] [notice] Digest: done
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Child process is running
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Acquired the start mutex.
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Starting 150 worker threads.
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Starting thread to listen on port 443.
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Starting thread to listen on port 80.
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Starting thread to listen on port 443.
[Mon Mar 12 16:31:17 2012] [notice] Child 2992: Starting thread to listen on port 80.
[Mon Mar 12 16:33:41 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:33:42 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:44:46 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:44:46 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:47:09 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:47:09 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 16:47:15 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 17:10:50 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create
[Mon Mar 12 17:10:51 2012] [error] [client ::1] File does not exist: C:/xampp/htdocs/themes, referer: http://localhost/zurmo/app/index.php/accounts/default/create


#6 Guest_helloworld_*

Guest_helloworld_*
  • Guests

Posted 13 March 2012 - 09:55 AM

Code is not encrypted but because of complexity of the app things may seam little that. Lets take a look how we can change menu label for Account.

Locate AccountsModule.php files (app->protected->modules->accounts)

locate the function getDefaultMetadata() and 'tabMenuItems' (default code is below)

		public static function getDefaultMetadata()
		{
...
...
			   'tabMenuItems' => array(
					array(
						'label' => 'AccountsModulePluralLabel',
						'url'   => array('/accounts/default'),
						'right' => self::RIGHT_ACCESS_ACCOUNTS,
						'items' => array(
							array(
								'label' => 'Create AccountsModuleSingularLabel',
								'url'   => array('/accounts/default/create'),
								'right' => self::RIGHT_CREATE_ACCOUNTS
							),
							array(
								'label' => 'AccountsModulePluralLabel',
								'url'   => array('/accounts/default'),
								'right' => self::RIGHT_ACCESS_ACCOUNTS
							),
						),
....
....
		}

The label is set by 'label' => 'AccountsModulePluralLabel',

This where things may seam little encrypted; 'AccountsModulePluralLabel' actually calls a function that returns plural label of Account module.

You can easily change this to 'label' => 'Account Label Changed',

After making the change you have to refresh app cache and metadata.

clear cache => http://localhost/zur...p?&clearCache=1
Refresh metadata => http://localhost/zur...lveCustomData=1

Give it a try..


i tried this with contact module, it does not seems work. but having said that it does work on account module, kinda wired. try out your self.


the home -> dashboard link throws an error, maybe a bug?


thanks

#7 Guest_helloworld_*

Guest_helloworld_*
  • Guests

Posted 13 March 2012 - 09:59 AM


how do you set debug mode? app config?

a bit of the log bellow.


hehehe, i had the same issue, just restart the server

#8 Jason

Jason

    Administrator

  • Administrators
  • 864 posts
  • LocationChicago

Posted 15 March 2012 - 06:05 PM

ok, seems strange that you had to restart the server. Anyways, let us know if you have more questions

Jason Green
Zurmo Team
Need support? Upgrade now


#9 Sacha Telgenhof

Sacha Telgenhof

    Advanced Member

  • Members
  • PipPipPip
  • 86 posts
  • LocationTokyo, Japan

Posted 15 March 2012 - 06:43 PM

I would recommend checking your XAMPP settings. Seen it before that an incorrect php.ini caused similar issues. What I would recommend is - as a start - disable any php extension that you don't need. One by one enable them and see if the issue remains.

Mostly it is an extension that is not loaded properly.





Also tagged with one or more of these keywords: encryption, documention, menu, compress, class, apache, add functions, bugs, xampp

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users