Closed (outdated)
Project:
Transaction
Version:
6.x-0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2009 at 21:15 UTC
Updated:
17 Jan 2018 at 12:59 UTC
Jump to comment: Most recent
I've got code like that:
$txn = new Transaction();
// printing all errors in drupal-like form
set_error_handler(create_function('$errno,$errstr,$errfile,$errline','drupal_set_message($errstr);'));
// or simply tring to print any message
drupal_set_message('Hello word!');
$results=module_invoke_all('name');
// other code
If I have and error in hook_name no message will displayed. If I comment
// $txn = new Transaction();
then errors and message will be displayed correctly.
Do you know, why it happens? Hot to solve it?
Comments
Comment #1
dealancer commentedForgot to mention, in other code I've got:
I've read the drupal_goto saves not shown messages generated by drupal_set_message in db.
Comment #2
manuel.adanIt was related to the old module scope.