0
Welcome Guest! Login
0 items Join Now

TypeError: Cannot read property '0' of null

  • TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • Using
      Gantry 5.4.17
      Joomla 3.7.5
      running on XAMPP PHP 7.0.

      The error occurs in

      /media/gantry5/assets/js/main.js

      This happens whenever I load the image manager in an article on the front end.

      The full error is:

      Uncaught TypeError: Cannot read property '0' of null
      at constructor.top (main.js?59a47b03:876)
      at new constructor (main.js?59a47b03:81)
      at main.js?59a47b03:34
      at HTMLDocument.t (main.js?59a47b03:505)
      jquery-migrate.js?7f9ded2b57ab10c2e3b485f305e27794:23 JQMIGRATE: Migrate is installed with logging active, version 1.4.1
      main.js?59a47b03:876 Uncaught TypeError: Cannot read property '0' of null
      at constructor.top (main.js?59a47b03:876)
      at new constructor (main.js?59a47b03:81)
      at main.js?59a47b03:34
      at HTMLDocument.t (main.js?59a47b03:505)

      Cheers
      Paul
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      Give me exact steps to recreate the issue please.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • Hi MrT, thanks I really appreciate your help!

      Login posted privately.

      Steps to reproduce:

      1. Go to site front end
      2. Use top right login icon to log in with your superuser id
      3. From the main menu (middle of screen, slightly above center), navigate to Products -> Controllers
      4. From the cards listing, click on the first published card, which should be an FCS
      5. Because you are logged in, see the tiny edit icon to the right of the article title, and edit the article
      6. On the Images and URLs tab, click the Select button for the Intro Images
      7. See the javascript error on the modal.

      As far as I can tell, its on the higher level iframe wrapper, not the folder iframe.

      The site styling is wonky as I have disabled all template overrides for

      com_media
      layouts/joomla/form/field/media.php
      all custom js being loaded

      Thanks again,
      Paul
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • I am not getting any error? Try clearing your browser cache.

      What browser are you using?

      Regards, Mark.
    • Last Edit: 6 years 7 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • This is from CHrome Version 60.0.3112.113 (Official Build) (64-bit) although it happens in FF also

      Thanks for looking :-)
    • Last Edit: 6 years 7 months ago by Paul Adamson. Reason: added better snip
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: TypeError: Cannot read property '0' of null

    Posted 6 years 7 months ago
    • Ok I reproduced this myself on a Hydrogen local install - so I will raise a bug ticket about this.

      https://github.com/gantry/gantry5/issues/2102

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.059 seconds