Yii Framework Forum: Flash messages behave inconsistently - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Flash messages behave inconsistently An Apache/PHP configuration problem? Rate Topic: -----

#1 User is offline   François Gannaz 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 87
  • Joined: 24-November 09

Posted 27 July 2012 - 03:33 AM

Hi

I'm using Yii 1.1.10. The flash messages work normally on the development server (Debian x64, Apache 2.2 prefork, mod_php 5.4.4).

But on the test server (RHEL i686, Apache 2.2 prefork, mod_php 5.3.3), with the same PHP code, the flash messages behave strangely. In FF13, they are sometimes displayed on two consecutive pages. In Opera12, they do not appear on the first page after a HTTP redirection, but on the next one (i.e. the flash messages are always one page late).

Has anyone already experienced something similar?

I tried to compare the php.ini, but nothing stroke me. Flash messages are kept in user sessions, so I checked their parameters, but they were the same on the 2 servers (notably save_handler=files). I'm running out of ideas of what to check, please help.

--
François
0

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 358
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 27 July 2012 - 01:56 PM

Had similar problems before.

Maybe this property can help you: http://www.yiiframew...ateFlash-detail
0

#3 User is offline   François Gannaz 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 87
  • Joined: 24-November 09

Posted 30 July 2012 - 03:44 AM

View PostCeBe, on 27 July 2012 - 01:56 PM, said:

Had similar problems before.

Maybe this property can help you: http://www.yiiframew...ateFlash-detail


Thanks for your reply.

When you had similar problems, did this fix them for you?

I knew this property existed. Maybe it could help Firefox display the flash message in only one page, but I can't imagine how it would fix Opera's behavior where flash messages are display one request too late. I'll try it though.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users