Not logged in. · Lost password · Register
Forum: General Help and Support Development RSS
Howto display feedback/result info from plugin to user
Avatar
og #1
Member since May 2006 · 437 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Subject: Howto display feedback/result info from plugin to user
I'm developing a plugin which should, under some circumstances display a message to the user. Something like "msg()". At the time the plugin will output the information, the page has still not rendered and if e.g. msg() print something to the browser direclty, the session headers could not be sent and i see only a white page with my feedback information on it.
Oli...
Avatar
og #2
Member since May 2006 · 437 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Uh, found my error! I used print_r() inside msg() without giving it the "true" param to return a string. Instead it write to STDOUT and kills the session.

Now i use "msg(print_r($arr,true),0);" and all works like expected. SORRY!
Oli...
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-26, 15:38:43 (UTC +01:00)