Page 1 of 1

Detail View Uncaught Reference Error

Posted: 2018-12-05 00:31
by omackeytech
I regenerated a project I started in 2014 and have been revising it as I go.

With the current regeneration, I found 2 issues, this is the second. The other I will explain when I duplicate it.

When I go to open the detail view of a row I get a blank screen, Chrome says it's an "Uncaught ReferenceError: $j is not defined"

I attached a screenshot.

Any idea what might cause this?

AppGini 5.72 rev 1038

Re: Detail View Uncaught Reference Error

Posted: 2018-12-05 12:58
by a.gneady
This would be caused by the browser unable to find jQuery. Could you please, in the inspector window, switch to the 'Network' tab and make sure the 'All' tab is selected. Then reload the page using F5 and check to see if any errors are reported. My guess is that you need to upload jquery file.

Re: Detail View Uncaught Reference Error

Posted: 2018-12-05 20:04
by omackeytech
Not sure what to look for, here it is...

Re: Detail View Uncaught Reference Error

Posted: 2018-12-06 00:10
by omackeytech
I loaded a chrome extension "jQuery Everwhere" now I can load one of my three tables. The one that was causing the problem still does not open. Same error, a different result from 'network'. See attached.

Re: Detail View Uncaught Reference Error

Posted: 2018-12-07 03:02
by omackeytech
I tried almost everything I could think of.
Then it dawned on me, jquery files were part of the AppGinni setup files.
I reloaded AppGinni, regenerated code and now everything works.

Guess my jQuery was corrupt.

Thanks for pointing me in the right direction.....

Brian

Re: Detail View Uncaught Reference Error

Posted: 2018-12-10 02:40
by omackeytech
It appears now on both my production copy and test server, but not on android devices. I attached what is happening on my test server, also can duplicate on my production server. It happens on Windows in both cases.

This occurs when I click 'Add New' on the Child table.

Using Chrome Version 71.0.3578.80 (Official Build) (64-bit). XAMPP 3.2.1 on the test server.

Any idea where to go from here?

Re: Detail View Uncaught Reference Error

Posted: 2018-12-10 03:04
by peebee
I suspect your /common.js file may also not be the current version?

I'd suggest generate a fresh set of AppGini files and make sure ALL of the .js files (common.js and resources/jquery/js) are all overwritten with the latest version