TheMightyDude wrote: ↑Sun May 24, 2020 02:56 UTC
Ok, for the first issue, for the records in movement_log does their ship_id the ship_id in the ships table?
If so it seems like there might be an issue in maps.php or a caching issue.
The second issue could be one of 2 issues.
1: the Create Universe had an error or didn't complete.
2: the language for login2.php are not loading in the required variables.
Both are strange due to I have absolutely no issues what so ever, but I will try and look into it.
OK, bnt_ships table, record ship_id does tally with the record ship_id in table bnt_movement_log
I just made a movement to sector 990 and examined the table movement_log, and event_id = 407, ship_id = 1 (my ship), sector_id = 990, and time shows current date and time I made the move. but nothing shows on the map.
I'm using Chrome with a lot of anti adware extensions, but just in case it might be a browser issue, I tried it in Edge, Firefox and Opera all with no extensions and have the same result with the map.
I have just had this zany idea, what if there's a PHP module that should be installed, but your scripts are not checking that it's there and tries to make a call to it, and with display_errors = Off nothing will show? (I did try with display_errors = On, same result), so listed below are all the modules that are installed in PHP v7.2
Code: Select all
[PHP Modules]
I set the PHP error logging to :- E_ALL & ~E_DEPRECATED & ~E_STRICT and boy this is what I get on the map page, around 12 pages of:-
Notice: Undefined variable: l_unknown in /var/www/bnt/galaxy.php on line 91
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
I set the PHP error logging to E_ALL & ~E_DEPRECATED & ~E_STRICT and boy this is what I saw on the map page, around 12 pages of:-
Notice: Undefined variable: l_unknown in /var/www/bnt/galaxy.php on line 91
and this is at the bottom of all those pages:-
Code: Select all
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 108
: Special Port <- Special Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 109
: Ore Port <- Ore Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 110
: Organics Port <- Organics Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 111
: Energy Port <- Energy Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 112
: Goods Port <- Goods Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 113
: No Port <- No Port
Notice: Undefined variable: l_port in /var/www/bnt/galaxy.php on line 114
: Unexplored <- Unexplored
Also at the top of the map page is:-
Warning: mysqli_free_result(): Couldn't fetch mysqli_result in /var/www/bnt/backends/adodb/drivers/adodb-mysqli.inc.php on line 1066
Then at the top of the main page is:-
Notice: Undefined variable: l_zname_1 in /var/www/bnt/main.php on line 176
Also with PHP error logging set and display_error = On, there's a lot of undefined variables showing on every page.
OK, I give up, (throws computer in the trash lol), all these errors did show, but when I moved the current bnt installation to a new folder '/var/www/bnt-test' then installed the older version v0.663 (no b) in the bnt folder but using the same DB, but PHP switched to 5.6, set an Apache doc alies to point to it, then I switch PHP back to 7.2 and ran the v0.663b code from a different folder, but mind you, I did set the entire folder and its contents to world writable (0777) and now it all seems to work fine, the map shows all the places that's been visited.