Page 1 of 1
Blank screen after submitting of the message
Posted: 02 Jan 2018, 15:17
by rtrzicky
Hi there,
I encountered this problem after submitting new message, GB version 3.0.6, Joomla 3.8.3.
It is caused by "break" command not in loop in "components/com_phocaguestbook/controllers/phocaguestbook.php", line 200, in cases where blocked ip addresses are checked.
I replaced "break" with "return false" as work around. Please, can you check it and fix it for new release?
With best regards
Radek
Re: Blank screen after submitting of the message
Posted: 03 Jan 2018, 00:40
by Jan
Hi, can you paste the exact error message?
Which version of PHP do you run?
Thank you, Jan
Re: Blank screen after submitting of the message
Posted: 06 Jan 2018, 12:09
by rtrzicky
Hi, I'm running on PHP 7.1.
Error message is:
Fatal error: 'break' not in the 'loop' or 'switch' context in /...here_was_path_to_root.../components/com_phocaguestbook/controllers/phocaguestbook.php on line 200
Radek
Re: Blank screen after submitting of the message
Posted: 06 Jan 2018, 16:16
by rtrzicky
I tried other PHP versions. Version 7.0.(19) behaves the same way. The problem disappears with version 5.6(.30).
Re: Blank screen after submitting of the message
Posted: 06 Jan 2018, 21:08
by Jan
Hi, yes, in PHP 7 the break command cannot be on specific places.
But are you really sure you run the 3.0.6 or did you make there some modifications? Because I don't see any break on line 200
components/com_phocaguestbook/controllers/phocaguestbook.php
Jan
Re: Blank screen after submitting of the message
Posted: 06 Jan 2018, 21:54
by rtrzicky
OK, it's a shame...
I'm sorry and I apologize for your time, you are right, I had version 3.0.3 installed. I did many updates and I updated guestbooks too but it seems not on this server. I must search in protocols how it can happen...
I will send you some donation :-) (which I planned to do anyway, so I have a one more reason :-))
Radek
Re: Blank screen after submitting of the message
Posted: 14 Jan 2018, 02:28
by Jan
Ok, great to hear it, it is solved, thank you for the donation.
Jan