4.5 issues

Questions related to using nuBuilder Forte.

4.5 issues

Postby treed » Thu Jan 14, 2021 1:25 pm

Hello all, got my new server up and running Ubuntu 20.04, php 7.4 and mariadb. Well there seems to be a major installation with my system. None of the windows open as expected. For example if trying to open the debug screen from the hamburger menu on the main screen I get a greyed out screen, same when clicking on a lookup and and it seems anything that tries to make a popup window. HELP. I just updated to the latest files from source forge.
treed
 
Posts: 81
Joined: Mon May 18, 2020 7:32 am

Re: 4.5 issues

Postby kev1n » Thu Jan 14, 2021 1:30 pm

Hi,

Do you see any error messages in the developer console or in the server log file?

And is this a new installation or did you update a previous version?
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1193
Joined: Mon Oct 15, 2018 2:13 am

Re: 4.5 issues

Postby treed » Fri Jan 15, 2021 1:58 am

Error from console:
Uncaught SyntaxError: Unexpected token '<'
[Violation] Forced reflow while executing JavaScript took 78ms
(index):1 Refused to display 'https://dbs.winecountry-bbq.com/index.php?opener=16106413306461002&browsefunction=browse&iframe=1' in a frame because it set 'X-Frame-Options' to 'deny'.

I'll be looking into x frame options. This is a new installation and the dataset was updated from the previous version. Also the first time I saw this behavior was when testing the email setup.
treed
 
Posts: 81
Joined: Mon May 18, 2020 7:32 am

Re: 4.5 issues

Postby kev1n » Fri Jan 15, 2021 2:17 am

Your link rel in the header is in the wrong place. Try placing it like this:


Code: Select all
function nuHeaderTest() {
  console.log('Functions placed here are available anywhere in nuBuilder Forte.');
}

// nuOnLoad() will be run after each Browse and Edit Form loads.

function nuOnLoad() {

if(nuFormType() == 'edit'){
     // Edit Form loaded
} else
if(nuFormType() == 'browse'){
     // Browse Form loaded
}

}

</script>

<!-- Define your own styles, override styles from nubuilder4.css -->

<link rel='shortcut icon' href='http://dbs.winecountry-bbq.com/favicon.ico'>

<style>

/*.nuActionButton {background-color:#0073aa;} */



</style>


<script>
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1193
Joined: Mon Oct 15, 2018 2:13 am

Re: 4.5 issues

Postby treed » Fri Jan 15, 2021 2:45 am

Ah, the plot thickens and I left out some critical information I am trying to run the site under SSL and when changing the header setup it won't save and I get the message Use SSL cannot be left blank. I think that is the root of the issue.

Also how do you make those nice code windows???
treed
 
Posts: 81
Joined: Mon May 18, 2020 7:32 am

Re: 4.5 issues

Postby kev1n » Fri Jan 15, 2021 2:48 am

Switch to the Email Settings tab and set SSL either to yes or no.
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1193
Joined: Mon Oct 15, 2018 2:13 am

Re: 4.5 issues

Postby kev1n » Fri Jan 15, 2021 2:52 am

You can use the Code tag button.
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (85)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
nuBuilder Team
 
Posts: 1193
Joined: Mon Oct 15, 2018 2:13 am

Re: 4.5 issues

Postby treed » Fri Jan 15, 2021 3:22 am

Ok, that resolved the saving issue, still working on the x-frame issue. I changed the setting in the apache config file and it said there were conflicting settings and it was defaulting to deny.
treed
 
Posts: 81
Joined: Mon May 18, 2020 7:32 am

Re: 4.5 issues

Postby treed » Fri Jan 15, 2021 7:52 am

Well it only took half of my day, but I've got it! The solution was:
Code: Select all
What did it for me was the following, I've added the following directive in both the http <VirtualHost *:80> and https <VirtualHost *:443> virtual host blocks:

ServerName your-app.com
ServerAlias www.your-app.com

Header always unset X-Frame-Options
Header set X-Frame-Options "SAMEORIGIN"
The reasoning behind this? Well by default if set, the server does not reset the X-Frame-Options header so we need to first always remove the default value, in my case it was DENY, and then with the next rule we set it to the desired value, in my case SAMEORIGIN. Of course you can use the Header set X-Frame-Options ALLOW-FROM ... rule as well.
treed
 
Posts: 81
Joined: Mon May 18, 2020 7:32 am


Return to General