How to set up a retro in 2025 (IIS) (Nitro HTML5) - (Part 3)

FunkyBohh

Member
Jun 21, 2011
181
6
I'm having a issue I got everything working correctly but when I load the Nitro client, I get a error because for some reason it try's to pull a "http" link when on Cloudflare I won't allow "http" only "HTTPS". I can't find the code anywhere to change the "http" to "https"
here is a snippet in the Google Chrome console;

Code:
function getOnlineUserCount() {
        --THIS IS WHERE I NEED TO CHANGE TO "HTTPS" FROM "HTTP"---        fetch('http://MYHOTEL.ORG/api/online-count')
                    .then(function(response) {
                        return response.json();
                    })
                    .then(function(response) {
                        document.getElementById('online-count').innerHTML = response.data.onlineCount;
Go to your .env file and find force https and set it to true.
 

Solid

Active Member
May 1, 2012
126
31
Go to your .env file and find force https and set it to true.
I had to go in and change it directly found it in the theme folder.
Post automatically merged:

Other than that i'd like to say thank you Object very nice release. I've been in the retro scene sense 2012, back and forth came back this year and found this. Amazing <3
 

kiyenshi

New Member
Apr 11, 2024
2
0
Nahh, not yet. I've switched to domain & Cloudflare but still getting ERR_CONNECTION_REFUSED & Uncaugt (in promise) TypeError: Failed to fetch at getOnlineUserCount [...]. I've set everything right in Cloudflare and Firewall.

Edit: Finally did it! Only thing now is that I want to change the language in launcher go another language, but I don't know how. Changing the external.txt doesn't work.
how did u fix it? could u pls help me thx
 

fzefgizeoge

New Member
Jun 9, 2018
5
3
When trying to access community/staff or some other pages I get these server errors:
You must be registered for see images attach
 

thepixel

New Member
Jun 19, 2024
1
0
Can you guys help me with this?

You must be registered for see images attach
Current url:

I did run both files on my database:

And, its true, account_created does not have a default value if you insert a new user without saying this field value:
SQL:
`account_created` int(0) NOT NULL,

PHP Version: 8.3.8 (php-8.3.8-nts-Win32-vs16-x64.zip)
MariaDB version: 10.11.6 (mariadb-10.11.6-winx64.msi)

(I tried with PHP 8.2.0 and the error still occurs)

I also tried changing sql mode to:
Code:
[mysqld]
sql-mode=NO_ENGINE_SUBSTITUTION

(did not work aswell)

---
UPDATE:
I finally figure out how to make it work...
First I had to disable strict mode in laravel:
database.php line 55 and 75:
Code:
'strict' => false,

Finally, I had to fix the manifest key in installation.blade.php line 17 because the key 'resources/css/app.scss' did not exists in my manifest.json:
Code:
@vite(['resources/themes/' .  setting('theme') . '/css/app.scss', 'resources/themes/' .  setting('theme') . '/js/app.js'], 'build')
 
Last edited:

Adolfphin

New Member
Feb 19, 2013
4
2
I keep getting ERR_CONNECTION_REFUSED when loading the client (gets stuck at 20%)
You must be registered for see images attach
 

Adolfphin

New Member
Feb 19, 2013
4
2
"https" localhost. If you're using it locally, change https to http
This fixed that error, however now the websocket is getting a failed connection. My port 2096 is open in the firewall and the emulator setting was left as 'localhost' although i tried '*.localhost' too but it still gets blocked.
 

React

Donator
Sep 17, 2023
272
144
This fixed that error, however now the websocket is getting a failed connection. My port 2096 is open in the firewall and the emulator setting was left as 'localhost' although i tried '*.localhost' too but it still gets blocked.
Is anything conflicting the port which you’re using
 

kedoisthebest

New Member
Jun 23, 2024
10
0
im a step back but when i go to my domain to install i get this
Exception
PHP 8.3.811.0.7
Unable to locate file in Vite manifest: resources/css/app.scss.
 

Object

?
Nov 10, 2017
449
372
im a step back but when i go to my domain to install i get this
Exception
PHP 8.3.811.0.7
Unable to locate file in Vite manifest: resources/css/app.scss.
I have been making a bunch of refactorings, could be a mistake on my end, will check it out when im home.
 


Write your reply...

Users who are viewing this thread

Top