Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari 7.0.4 Errors #9

Closed
csa12 opened this issue Jun 2, 2014 · 2 comments
Closed

Safari 7.0.4 Errors #9

csa12 opened this issue Jun 2, 2014 · 2 comments

Comments

@csa12
Copy link

csa12 commented Jun 2, 2014

The Audit module gives all kinds of errors when using Safari 7.0.4 (on Mac OS X 10.9.3).
Tested with Audit module 1.1.4 and 1.1.7.

Everything works fine without any errors, when;

  • Running the same pages in Firefox 29.0.1 and Google Chrome 35.0;
  • Running the same pages in Safari's Developer - Open page with - Safari 7.0.3;
  • Running the same Yii application with disabling the Audit module under Safari 7.0.4;

Here's one of the error pages;

CException

The attribute "AuditError.status" is undefined. (/Library/WebServer/Documents/tnl/framework/base/CComponent.php:173)
#0 /Library/WebServer/Documents/tnl/framework/db/ar/CActiveRecord.php(161): CComponent->__set('status', 'new')
#1 /Library/WebServer/Documents/tnl/tnl/protected/modules/audit/components/AuditErrorHandler.php(125): CActiveRecord->__set('status', 'new')
#2 /Library/WebServer/Documents/tnl/protected/modules/audit/components/AuditErrorHandler.php(111): AuditErrorHandler->logError(Object(CErrorEvent))
#3 /Library/WebServer/Documents/tnl/framework/base/CApplication.php(816): AuditErrorHandler->handle(Object(CErrorEvent))
#4 /Library/WebServer/Documents/tnl/framework/YiiBase.php(427): CApplication->handleError(2, 'include(FileFor...', '/Library/WebSer...', 427, Array)
#5 /Library/WebServer/Documents/tnl/framework/YiiBase.php(427): YiiBase::autoload()
#6 [internal function]: YiiBase::autoload('FileForm')
#7 [internal function]: spl_autoload_call('FileForm')
#8 /Library/WebServer/Documents/tnl/protected/modules/audit/components/AuditErrorHandler.php(473): unserialize('a:187:{s:8:"fil...')
#9 /Library/WebServer/Documents/tnl/protected/modules/audit/components/AuditErrorHandler.php(336): AuditErrorHandler->getShrinkedSession()
#10 /Library/WebServer/Documents/tnl/protected/modules/audit/components/AuditErrorHandler.php(316): AuditErrorHandler->recordAuditRequest()
#11 /Library/WebServer/Documents/tnl/protected/modules/audit/components/AuditErrorHandler.php(72): AuditErrorHandler->getAuditRequest()
#12 /Library/WebServer/Documents/tnl/framework/base/CModule.php(387): AuditErrorHandler->init()
#13 /Library/WebServer/Documents/tnl/framework/base/CModule.php(523): CModule->getComponent('errorHandler')
#14 /Library/WebServer/Documents/tnl/framework/base/CApplication.php(163): CModule->preloadComponents()
#15 /Library/WebServer/Documents/tnl/framework/YiiBase.php(125): CApplication->__construct('/Library/WebSer...')
#16 /Library/WebServer/Documents/tnl/framework/YiiBase.php(98): YiiBase::createApplication('CWebApplication', '/Library/WebSer...')
#17 /Library/WebServer/Documents/tnl/www/data/index.php(24): YiiBase::createWebApplication('/Library/WebSer...')
#18 {main}

@cornernote
Copy link
Owner

Hi @MickeyD,

In recent versions of AuditModule a field was added to audit_error called status (varchar(32)). Please ensure you have this field in your table.

In addition, a field was added to audit_error called extra (blob). This field is not required, but it will be good to have it just incase.

Let me know if you still encounter issues.

@csa12
Copy link
Author

csa12 commented Jun 4, 2014

Thanks,

Adding the following 2 new columns solved the problem. (deleted the Audit tables and had the module (re)create them.

  • hash varchar(16)
  • status varchar(32)

Although it's strange that other browsers and previous Safari versions didn't give any error/warning but Safari 7.0.4 did.

@csa12 csa12 closed this as completed Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants