Help
Ask questions about how to do or fix things in Arrowchat
User avatar
Alexsandro
Customer
 
Posts: 3
Joined: 27 Nov 2018, 03:45

 

by Alexsandro 26 Apr 2020, 13:19

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
User avatar
Jason
Customer
 
Posts: 2329
Joined: 12 Dec 2009, 16:06

 

by Jason 26 Apr 2020, 14:09

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.
User avatar
Alexsandro
Customer
 
Posts: 3
Joined: 27 Nov 2018, 03:45

 

by Alexsandro 26 Apr 2020, 14:23

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.
User avatar
Jason
Customer
 
Posts: 2329
Joined: 12 Dec 2009, 16:06

 

by Jason 26 Apr 2020, 14:55

We won't be able to diagnose this without digging into the files and seeing what the problem is.
User avatar
Alexsandro
Customer
 
Posts: 3
Joined: 27 Nov 2018, 03:45

 

by Alexsandro 26 Apr 2020, 15:20

I will try to update PHP to a newer version.
Which PHP version can you recommend for ArrowChat 3.0?
User avatar
Jason
Customer
 
Posts: 2329
Joined: 12 Dec 2009, 16:06

 

by Jason 26 Apr 2020, 15:36

PHP 7+ is the best. Not just for ArrowChat, but for security reasons as well.
User avatar
Jason
Customer
 
Posts: 2329
Joined: 12 Dec 2009, 16:06

 

by Jason 27 Apr 2020, 12:47

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.
User avatar
Wosullivan
Customer
 
Posts: 9
Joined: 15 Aug 2016, 12:49

 

by Wosullivan 28 Apr 2020, 16:49

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
User avatar
Wosullivan
Customer
 
Posts: 9
Joined: 15 Aug 2016, 12:49

 

by Wosullivan 28 Apr 2020, 17:20

hmm, also got a data after main package error unzipping the 3.0 files...

fwiw....