Jump to content


JMOmandown

Member Since 24 Dec 2013
Offline Last Active Dec 27 2013 01:49 PM
-----

Posts I've Made

In Topic: Install stuck with nothing written to database: No errors

27 December 2013 - 05:46 AM

To address the SecurableModule not found issue and see if there is truly a permission issue present as is often the suggested solution we have replaced line 421 of YiiBase.php  with the following:

switch ($className)
	{
case 'SecurableModule':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/modules/zurmo/modules/' . $className . '.php');
	break;

case 'Module':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/core/modules/' . $className . '.php');
	break;

case 'ZurmoBaseController':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/modules/zurmo/components/' . $className . '.php');
	break;

case 'Controller':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/core/controllers/' . $className . '.php');
	break;

case 'WebUser':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/modules/zurmo/components/' . $className . '.php');
	break;

case 'RedBeanDatabase':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/core/models/' . $className . '.php');
	break;

case 'ZurmoRedBean':
	include ($_SERVER['DOCUMENT_ROOT'] . '/zurmo/app/protected/core/models/' . $className . '.php');
	break;

default:
	include ($className . '.php');
	break;
	}

Providing the absolute path eliminated all errors about not finding particular classes or files.  Although I am aware this is not the intended way Zurmo should run, it does show that permissions/access is not the issue.  No errors in the error log now, but still have an infinite sign in loop where nothing happens.

 

Upon checking the application.log in the runtime folder, we now get the following exception:

2013/12/27 10:01:11 [error] [exception.CHttpException.400] exception 'CHttpException' with message 'The CSRF token could not be verified.' in root/path/zurmo/yii/framework/web/CHttpRequest.php:1042
Stack trace:
#0 root/path/zurmo/app/protected/core/components/ZurmoHttpRequest.php(47): CHttpRequest->validateCsrfToken(Object(CEvent))
#1 root/path/zurmo/yii/framework/base/CComponent.php(558): ZurmoHttpRequest->validateCsrfToken(Object(CEvent))
#2 root/path/zurmo/yii/framework/base/CApplication.php(196): CComponent->raiseEvent('onBeginRequest', Object(CEvent))
#3 root/path/zurmo/yii/framework/base/CApplication.php(167): CApplication->onBeginRequest(Object(CEvent))
#4 root/path/zurmo/app/protected/core/components/WebApplication.php(75): CApplication->run()
#5 root/path/zurmo/app/index.php(70): WebApplication->run()
#6 {main}
REQUEST_URI=/zurmo/app/index.php/zurmo/default/login
HTTP_REFERER=http://www.mysite.com/zurmo/app/index.php/zurmo/default/login

Any thoughts?


In Topic: Install stuck with nothing written to database: No errors

26 December 2013 - 10:26 PM

Got a chance to take another look today and randomly started getting an error_log being properly generated, so there must have been some sort of cache thing going on.

 

The error is the standard Class 'SecurableModule' not found, indicating a permission setting problem.  I have double checked these according to the various topics throughout the forums.  The permissions are set properly.

 

It seems reading around that often there can be an issue with the ownership of the folder's or some other environment setup issue.  The general requirements are met and everything is setup as specified, so how do I proceed to identify and fix the issue from here?

 

Updated Symptoms:

  • Standard Class 'SecurableModule' not found
  • Proper Permissions on Folders are set
  • Environment meets requirements
  • Logging in just has the thumber spin infinitely and the SecurableModule error is written to error_log

Solutions Attempted