Blank screen after submitting of the message

Phoca Guestbook - creating guestbooks in Joomla! CMS
rtrzicky
Phoca Member
Phoca Member
Posts: 11
Joined: 02 Jan 2018, 14:43

Blank screen after submitting of the message

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank screen after submitting of the message

Post by Jan »

Hi, can you paste the exact error message?
Which version of PHP do you run?
Thank you, Jan
If you find Phoca extensions useful, please support the project
rtrzicky
Phoca Member
Phoca Member
Posts: 11
Joined: 02 Jan 2018, 14:43

Re: Blank screen after submitting of the message

Post 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
rtrzicky
Phoca Member
Phoca Member
Posts: 11
Joined: 02 Jan 2018, 14:43

Re: Blank screen after submitting of the message

Post by rtrzicky »

I tried other PHP versions. Version 7.0.(19) behaves the same way. The problem disappears with version 5.6(.30).
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank screen after submitting of the message

Post 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
If you find Phoca extensions useful, please support the project
rtrzicky
Phoca Member
Phoca Member
Posts: 11
Joined: 02 Jan 2018, 14:43

Re: Blank screen after submitting of the message

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank screen after submitting of the message

Post by Jan »

Ok, great to hear it, it is solved, thank you for the donation.

Jan
If you find Phoca extensions useful, please support the project
Post Reply