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
Blank screen after submitting of the message
-
- Phoca Member
- Posts: 11
- Joined: 02 Jan 2018, 14:43
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank screen after submitting of the message
Hi, can you paste the exact error message?
Which version of PHP do you run?
Thank you, Jan
Which version of PHP do you run?
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 02 Jan 2018, 14:43
Re: Blank screen after submitting of the message
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
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
-
- Phoca Member
- Posts: 11
- Joined: 02 Jan 2018, 14:43
Re: Blank screen after submitting of the message
I tried other PHP versions. Version 7.0.(19) behaves the same way. The problem disappears with version 5.6(.30).
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank screen after submitting of the message
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 02 Jan 2018, 14:43
Re: Blank screen after submitting of the message
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
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
- Jan
- Phoca Hero
- Posts: 48536
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Blank screen after submitting of the message
Ok, great to hear it, it is solved, thank you for the donation.
Jan
Jan
If you find Phoca extensions useful, please support the project