include javascript on cPanel installation of nubuilder4.5

Questions related to using nuBuilder Forte.

include javascript on cPanel installation of nubuilder4.5

Unread postby slobodan » Thu Jul 15, 2021 7:41 pm

I installed nubuilder4.5 via cPanel. I moved my application from xampp to the server, but I have a problem setting the include option in the nuconfig.php file. I tried a lot of combinations by referring to the file system and via https, and my application persistently reports that the function from that file is undefined. Do you have any advice, what should I do?
(Of course, it works on xampp)

File system path to js files: $nuConfigIncludeJS=
['/public_html/maloprodaja/nubuilder45/jsqrcode/qrcode.js','/public_html/maloprodaja/nubuilder45/jsqrcode/qrcode.min.js','/public_html/maloprodaja/nubuilder45/jsqrcode/jquery.min.js'];

Javascript error message from form:

Uncaught ReferenceError: QRCode is not defined
<anonymous> https://maloprodaja.slobodan.eu/nubuilder45/index.php line 2 > injectedScript:72
jQuery 3
nuAddJavascript https://maloprodaja.slobodan.eu/nubuild ... 15918:3787
nuBuildForm https://maloprodaja.slobodan.eu/nubuild ... 115918:196
successCallback https://maloprodaja.slobodan.eu/nubuild ... 115918:125
success https://maloprodaja.slobodan.eu/nubuild ... 5115918:17
jQuery 6
nuAjax https://maloprodaja.slobodan.eu/nubuild ... 15115918:8
nuForm https://maloprodaja.slobodan.eu/nubuild ... 115918:130
onclick https://maloprodaja.slobodan.eu/nubuilder45/index.php:1
slobodan
 
Posts: 21
Joined: Sat May 08, 2021 8:50 pm
nuBuilder Version: 4.5

Re: include javascript on cPanel installation of nubuilder4.

Unread postby kev1n » Thu Jul 15, 2021 7:48 pm

Try removing this bit:
/public_html/maloprodaja/nubuilder45/

Code: Select all
$nuConfigIncludeJS= ['jsqrcode/qrcode.js','jsqrcode/qrcode.min.js';


And there's no need to include jquery as it's already included in nuBuilder.
kev1n
nuBuilder Team
 
Posts: 1996
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5


Return to General

Who is online

Users browsing this forum: No registered users and 24 guests