Map Controls

120 views
Skip to first unread message

mdtayl...@gmail.com

unread,
Apr 10, 2021, 10:15:23 AM4/10/21
to Open Source CAD

This week I had to rebuild there server that my Tickets install is hosted on. Rather than do a restore I simply did a new installation.

CentOS 7
php 7.4
MariaDB 5.5
Tickets 3.31A

Even though I have some units marked as available, and some not available, and the database correctly shows the unit status, the map control recognizes all available units as unavailable.

Behavior noted in both Firefox and Chrome, both locally and remote.


Any ideas
Mark


mdtayl...@gmail.com

unread,
Apr 12, 2021, 1:14:05 PM4/12/21
to Open Source CAD
Would someone with a working system please check their Unit Status database entries and see if they match mine please? I cannot find anything that is causing this behavior. Go to Settings, then scroll down to Units Configuration and click on Unit Statu to see this screen:  https://www.screencast.com/t/YiSxkhGUdDwm

Please let me know if your differs from mine, and how.

Thanks
Mark

Yves Gougeon

unread,
Apr 12, 2021, 1:17:01 PM4/12/21
to open-so...@googlegroups.com
Hello Friend
I have seen this issue on the latest PHP version, check with Arnie ifhe solved the issue. 
PHP 7.4 seems to cause some displaying issues. 
I had to rebuild on windows XAMPP with PHP version 7.1 instead.

Have anybody seen this 

--
You received this message because you are subscribed to the Google Groups "Open Source CAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-source-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/open-source-cad/154cd95e-18b6-45c2-8772-295e27635eecn%40googlegroups.com.


--

Arnie Shore

unread,
Apr 12, 2021, 1:42:26 PM4/12/21
to Open Source CAD

Mark, what Yves Gougeon referred to was that I just spotted his use of an invalid map coordinates format, integers rather than decimal fractions. 

 

Correcting that in the database cleared his display problem.


I don't think that is the issue in your case, unfortunately.


AS

mdtayl...@gmail.com

unread,
Apr 12, 2021, 5:01:41 PM4/12/21
to Open Source CAD
Arnie, here are the two lines repeated over and over in the httpd error_log:

[Mon Apr 12 15:59:07.266780 2021] [php7:notice] [pid 1782] [client 10.1.11.219:38237] PHP Notice:  Trying to access array offset on value of type bool in /var/www/html/tickets/ajax/sit_responders.php on line 247, referer: http://10.1.11.17:8081/tickets/main.php?log_in=1
[Mon Apr 12 15:59:07.266843 2021] [php7:notice] [pid 1782] [client 10.1.11.219:38237] PHP Notice:  Trying to access array offset on value of type bool in /var/www/html/tickets/ajax/sit_responders.php on line 248, referer: http://10.1.11.17:8081/tickets/main.php?log_in=1

Can you make anything of this?
Mark

mdtayl...@gmail.com

unread,
Apr 12, 2021, 5:15:35 PM4/12/21
to Open Source CAD
And this one also, and is more likely...

[Mon Apr 12 08:06:18.174887 2021] [php7:warn] [pid 32590] [client 136.244.36.15:48792] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/tickets/incs/status_cats.inc.php on line 299, referer: xxxxxxxxxx/tickets/units.php?func=responder&edit=true&id=39

AndyH

unread,
Apr 13, 2021, 5:13:27 AM4/13/21
to Open Source CAD
Mark.

Have a go with the enclosed. Revised those lines to check for $row_track not being false.

Cheers
Andy
sit_responders.php

mdtayl...@gmail.com

unread,
Apr 13, 2021, 5:25:57 PM4/13/21
to Open Source CAD
You know, sometimes you just don't want to admit how you fix something because the possibility exists that sometimes it is you that caused it in the first place. I don't know how but the 'Hide' value was changed from "Yes" to "No" for the Unavailable status. All is working correctly.

Andy, I don't know if your fix did anything or not. I never noticed a change. But, after a day or two I'll try and remember to check the server logs again.


Thanks
Mark

AndyH

unread,
Apr 14, 2021, 4:53:08 AM4/14/21
to Open Source CAD
Mark.

No problem with that, Tickets has so much on it that it is easy to overlook and change something. The fix was valid anyway as it was that which was causing those errors (although those errors weren't affecting the display but still worth doing anyway. I'm going to start building the next version and will add that one in and anything else of that sort that PHP7.4 doesn't like (this is a PHP change that caused the problem although the coding fixed was an area I should have done differently in the first place.

Cheers
Andy

Yves Gougeon

unread,
Apr 14, 2021, 8:51:05 AM4/14/21
to open-so...@googlegroups.com
Let us know when the new code is available because running on linux then running on Windows.


--
You received this message because you are subscribed to the Google Groups "Open Source CAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-source-c...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages