Closed dadinugroho closed 10 years ago
@dadinugroho
include(error, warning, profile, audit.php): failed to open stream: No such file or directory
Your config looks fine. Try removing the log
section of the config, just to see if that helps.
How to set the alias for audit?
You have already done that in this line:
'audit' => realpath(__DIR__ . '/../modules/audit'), // change if necessary
also how to link it to yiistrap?
As you use yiistrap as your bootstrap wrapper, you shouldn't need to do anything. But you should remove this line as it's only needed if you use a different bootstrap wrapper:
'yiiStrapPath' => 'bootstrap',
@cornernote Thank you for prompt response. I can get rid of the log error. However, when try to access the audit (my project server is myinv-app.lan, so access it as myinv-app.lan/audit), I got another error message,
Property "AuditModule.gridViewWidget" is not defined.
I think I have defined it on the config/main.php. When I checked the AuditModule, there is not gridViewWidget property. I tried to comment these lines
// The widget used to render grid views.
// 'gridViewWidget' => 'bootstrap.widgets.TbGridView', // The widget used to render detail views. // 'detailViewWidget' => 'zii.widgets.CDetailView', // Defines the access filters for the module.
But, now the error message is changed to
CErrorHandler and its behaviors do not have a method or closure named "hasAuditRequest".
Again, I remove errorHandler from preload array, error message is still the same.
Any help on this? And why the log part is not working on my project?
Thanks a lot.
Do you have the latest development version or a release version?
I just made a 1.1.5 release. Please try with that.
I am using 1.1.4 the release version
Please update and let me know how you go On 18/05/2014 9:41 AM, "dadinugroho" notifications@github.com wrote:
I am using 1.1.4 the release version
— Reply to this email directly or view it on GitHubhttps://github.com/cornernote/yii-audit-module/issues/6#issuecomment-43427731 .
I have updated the module, but still got the error message
CErrorHandler and its behaviors do not have a method or closure named "hasAuditRequest". – /home/dadinugroho/projects/myinv-app/protected/modules/audit/views/request/footer.php(33): CComponent->call("hasAuditRequest", array())
28 29 /* @var AuditErrorHandler $errorHandler / 30 $errorHandler = $app->getErrorHandler(); 31 32 $output = array(); 33 if ($errorHandler->hasAuditRequest()) { 34 $auditRequest = $errorHandler->getAuditRequest(); 35 if ($isAdmin) 36 $output[] = CHtml::link($auditRequest->id, array('/' . $audit->id . '/request/view', 'id' => $auditRequest->id)); 37 else 38 $output[] = $auditRequest->id;
Hello,
In a TestController, try this...
echo Yii::getPathOfAlias('audit');
Is the path as expected?
-- Brett
On Sun, May 18, 2014 at 9:57 AM, dadinugroho notifications@github.comwrote:
I have updated the module, but got this error message
Alias "audit.AuditModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
— Reply to this email directly or view it on GitHubhttps://github.com/cornernote/yii-audit-module/issues/6#issuecomment-43427986 .
yes, it is.
/home/dadinugroho/projects/myinv-app/protected/modules/audit
Alias "audit.AuditModule" is invalid. Make sure it points to an existing PHP file and the file is readable.
Do you have a file and line where this error is triggered from?
If you are available, add me on skype (username: cornernote). If it's ok I would like to remote into your computer (teamviewer or ssh or something) to understand and assist with this issue so that I can improve the documentation for others who experience similar issues.
-- Brett
On Sun, May 18, 2014 at 10:02 PM, dadinugroho notifications@github.comwrote:
yes, it is.
/home/dadinugroho/projects/myinv-app/protected/modules/audit
— Reply to this email directly or view it on GitHubhttps://github.com/cornernote/yii-audit-module/issues/6#issuecomment-43438670 .
The error on Audit log route is fixed. However, the error whenever I tried to open the myinv-app.lan/audit is still there, which is
CErrorHandler and its behaviors do not have a method or closure named "hasAuditRequest".
However, the rest of the code seems ok.
My skype is adinugro.
Hi cornerstone,
I tried to debug the code. Below is the line that produce error message.
/modules/audit/views/request/__footer.php:
$errorHandler = $app->getErrorHandler(); echo 'Test' . get_class($errorHandler);
I tried to check the class of $errorHandler. It should be an AuditErrorHandler.php, but the echo shows CErrorHandler. Is that may be the caused? If I comment the code it did not show any error.
Hey,
You have errorHandler component defined twice in your config. Remove the default one and leave the one you added with the audit module.
-- Brett
On Mon, May 19, 2014 at 1:40 PM, dadinugroho notifications@github.comwrote:
Hi cornerstone,
I tried to debug the code. Below is the line that produce error message.
/modules/audit/views/request/__footer.php:
$errorHandler = $app->getErrorHandler(); echo 'Test' . get_class($errorHandler);
I tried to check the class of $errorHandler. It should be an AuditErrorHandler.php, but the echo shows CErrorHandler. Is that may be the caused? If I comment the code it did not show any error.
— Reply to this email directly or view it on GitHubhttps://github.com/cornernote/yii-audit-module/issues/6#issuecomment-43464772 .
Ah, great. It works now. Thanks you so much. I am still having another problem, though. The field changes setting. Let me open the new issue rather than put it in here since it is not related to the title anymore.
Thank you so much.
Hello Guys
I have one problem when is exhibition page the connection server fail/falls???? someone please could me help???
thanks
@vinao please open a new issue and provide steps so that I can replicate your error.
Hi cornernote,
Great yii module, Please help me on making this working, I am using manual install and always got this error message...
include(error, warning, profile, audit.php): failed to open stream: No such file or directory
How to set the alias for audit? also how to link it to yiistrap?
Thank you very much.