Page 1 of 1

Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 13:19
by Alexsandro
The chat is successfully installed, but it is not possible to get into the admin panel and configure it because the empty() function is used in source code.
Error - PHP Fatal error: Can't use function return value in write context
https://www.php.net/manual/en/function.empty.php

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 14:09
by Jason
Empty is available in PHP 5, but I think I may see what's going on here. Can you please open up a support ticket with your FTP info and admin access.

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 14:23
by Alexsandro
No, I can't.
I replace
Code: Select all
if (!empty(get_var('token'))) 
to
Code: Select all
$tok = get_var('token');
	if (!empty($tok))
in admin php files, and I can login into admin panel now.
But when I try add a chatroom, or change any other settings, I got blank page with no errors in the php errorlog.

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 14:55
by Jason
We won't be able to diagnose this without digging into the files and seeing what the problem is.

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 15:20
by Alexsandro
I will try to update PHP to a newer version.
Which PHP version can you recommend for ArrowChat 3.0?

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 26 Apr 2020, 15:36
by Jason
PHP 7+ is the best. Not just for ArrowChat, but for security reasons as well.

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 27 Apr 2020, 12:47
by Jason
I was able to install PHP 5.4 on our server and experienced the issue. There are two problems which I have corrected in the v3.0.1 update.

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 28 Apr 2020, 16:49
by Wosullivan
I was able to install PHP 5.4 on our server and experienced the issue. There are two problems which I have corrected in the v3.0.1 update.
the latest available download link still seems to be 3.0....
did we miss something?

thank you

Re: Arrowchat v3.0 does not work on PHP 5.4

PostPosted: 28 Apr 2020, 17:20
by Wosullivan
hmm, also got a data after main package error unzipping the 3.0 files...

fwiw....