Page 1 of 1

include javascript on cPanel installation of nubuilder4.5

Posted: Thu Jul 15, 2021 12:11 pm
by slobodan
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

Re: include javascript on cPanel installation of nubuilder4.

Posted: Thu Jul 15, 2021 12:18 pm
by kev1n
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.