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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
include javascript on cPanel installation of nubuilder4.5
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 446 times
- Contact:
Re: include javascript on cPanel installation of nubuilder4.
Try removing this bit:
/public_html/maloprodaja/nubuilder45/
And there's no need to include jquery as it's already included in nuBuilder.
/public_html/maloprodaja/nubuilder45/
Code: Select all
$nuConfigIncludeJS= ['jsqrcode/qrcode.js','jsqrcode/qrcode.min.js';