FreePBX 15.0.16.52 distro. Upgraded a whole bunch of modules yesterday, upgrade went fine. Today, most of the GUI pages do not load, giving me “undefined” error in the red banner on top. This is from console:
undefined pbxlib_2a0a532429c7d4eec39dfc7739085959d3f0d37a.js (139,132)
Is there a specific module that introduced the error? Any help on how to recover?
Have been trying to reinstall Framework module (since the errors seem to mention its version), but to no avail. Pretty much all GUI functions don’t work with the same UNDEFINED failure pointing to the following code:
pbxlib_2a0a532429c7d4eec39dfc7739085959d3f0d37a.js (139,132), which looks like this in the Debugger:
Hi. Yes, still an issue. Pretty much the only module that does NOT give me an undefined error is Module Admin. Every other GUI menu gives me an “undefined” red banner on top.
I did not observe any failures when installing framework or other modules, everything was going without problems. The upgrade went fine, I assumed the issues are related to post-upgrade, as that was I was finding through online reading. When I referred to errors, I meant the console trace output that I pasted earlier in the chain. All the upgrades were performed via fwconsole and went without any errors.
The /var/log/asterisk/freepbx.log just shows a bunch of freePBX.INFO warnings about depreciated functions for various modules:
[2020-May-26 17:27:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:01] [freepbx.INFO]: Deprecated way to add Console commands for module zulu, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:13] [freepbx.INFO]: Deprecated way to add Console commands for module zulu, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-May-26 17:27:14] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2020-May-26 17:27:14] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
There is nothing new added to httpd/error_log when I tried to access freePBX dashboard with the undefined failure just now.
Can you try running ‘fwconsole chown’, and see if that makes a difference? Assuming the issue still happens, can you tell us the web browser that’s being used?
Also see if reinstalling framework helps: ‘fwconsole ma downloadinstall framework’
nope, no difference, same issue. I’m using Microsoft Edge and Microsoft Explorer browsers that came with the Win10 installation image (the system runs in a Windows VM on top of ESXI 6.5).
This used to work prior to the module upgrades (I’ve upgraded the system via yum and then about 57 or so modules via fw console.
reinstalled framework, no help there. I’m thinking of redeploying freePBX 14, but I hate having to go through the entire reconfig…
This is definitely a strange one. I’m still trying to find out if there is any further troubleshooting we can do for this. It seems like something that should be resolvable. I know you said this happens on most pages, but can you name a couple of them?
Hi -
As I mentioned, the only page that works is Module Admin. Anything else gives me the Undefined error - dashboard, system admin, connection menu items…
For further troubleshooting, can you try disabling “Use Packaged Javascript Library” in Settings->Advanced Settings. It should be set to Yes by default. After disabling it try going to one of the pages and get the logs as you did in your first post of this thread. Hopefully some further details show up. After getting that, try toggling “Enable jQuery Migrate” from the same page to see if it makes a difference.
I agree that a different browser is worth trying just to rule somethings out, even if it’s not specifically MS Edge causing an issue. If there is no difference, can you try reinstalling the framework and core modules again, but with the --force parameter included? I’m not sure if it was redownloading the modules before, but --force will ensure that it does this time.
Ex:
fwconsole ma downloadinstall framework --force
fwconsole ma downloadinstall core --force
If you are on the edge versions for those, you’ll want to include the --edge option as well.
I tried Firefox, same result. redownloaded/reinstalled framework/core, no help.
Any other ideas? Looks like running out of options and would have to reinstall.
If reinstalling, would you recommend to go with freePBX 14 as a more stable version, as freePBX 15 let me down…
Unfortunately, I’m still trying to get some input from other team members about this odd case. I you need to come up with something quick. I would say FPBX14 is a good version, but I wouldn’t really consider this expected behavior for any version, and can’t say if this issue might happen again.
Have you tried accessing the admin from any other systems? I tried looking into the “SCRIPT5 Access denied” message that showed up. It seems like it could be related to MS browsers. I know you said Firefox also has the issue, but it still made me lean closer to this possibly being a client side issue. Just for good measure, can you let us know the MS Edge and Firefox versions you’re using? And do you know if they’re set up with any non-default security settings?