Detail View Uncaught Reference Error

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
omackeytech
Veteran Member
Posts: 35
Joined: 2014-06-04 13:18

Detail View Uncaught Reference Error

Post by omackeytech » 2018-12-05 00:31

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
Attachments
Reference Error.jpg
Reference Error.jpg (202.25 KiB) Viewed 3385 times

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Detail View Uncaught Reference Error

Post by a.gneady » 2018-12-05 12:58

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.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

omackeytech
Veteran Member
Posts: 35
Joined: 2014-06-04 13:18

Re: Detail View Uncaught Reference Error

Post by omackeytech » 2018-12-05 20:04

Not sure what to look for, here it is...
Attachments
Network.jpg
Network.jpg (87.73 KiB) Viewed 3364 times

omackeytech
Veteran Member
Posts: 35
Joined: 2014-06-04 13:18

Re: Detail View Uncaught Reference Error

Post by omackeytech » 2018-12-06 00:10

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.
Attachments
jquery load.jpg
jquery load.jpg (119.58 KiB) Viewed 3353 times

omackeytech
Veteran Member
Posts: 35
Joined: 2014-06-04 13:18

Re: Detail View Uncaught Reference Error

Post by omackeytech » 2018-12-07 03:02

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

omackeytech
Veteran Member
Posts: 35
Joined: 2014-06-04 13:18

Re: Detail View Uncaught Reference Error

Post by omackeytech » 2018-12-10 02:40

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?
Attachments
Jquery Error.png
Jquery Error.png (208.86 KiB) Viewed 3297 times

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 352
Joined: 2013-03-21 04:37

Re: Detail View Uncaught Reference Error

Post by peebee » 2018-12-10 03:04

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

Post Reply