Getting Internal server error on on_update event

QuestionsGetting Internal server error on on_update event
Jie asked 1 year ago

I added an on_update event to my grid but i am always getting an internal server error. My code is below:

$e[“on_update”] = array(“update_client”, null, true);
$g->set_events($e);

function update_client($data)
{
$myfile = fopen(‘storage/logs/text4.txt’, ‘w’);
$result = print_r($data, true);
fwrite($myfile, $result);
fclose($myfile);
}

1 Answers
Abu Ghufran Staff answered 1 year ago

For internal server error, you should review the php error log file. It will tell the exact details of the server error.

Share those details as well if you are unable to solve.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

16 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?