Jump to content

[resolved] PW fresh installation halts because of javascript error: "undefined reading 'toggleBehavior'"


PascalKonings
 Share

Recommended Posts

Hi,

I've been developing PW websites since 2011, so I'm not a newbie.

I just got a new development machine (Mac mini m4) and started reinstalling/transferring my projects. On my MAMP 6.9 installation all moved projects are running just fine, no errors there. However, installing a fresh copy of PW (doesn't seem to matter which version) immediately shows a console error on the first page of installation and therefor preventing me from installing PW altogether.

The error is:

main.js:843 Uncaught TypeError: Cannot read properties of undefined (reading 'toggleBehavior')
    at Object.setupInputfields (main.js:843:62)
    at Object.init (main.js:15:8)
    at (index):76:25

I'm not sure why this is happening, but I can't seem to find anything on this error either. First I thought, maybe something is off on my new machine, but on my old machine the installer gives me the same error. I've tried downloading from github (zip) and the download link on the website, both are triggering this error. 

Does anyone have a clue here?

 

Link to comment
Share on other sites

I get the same error, but I can install just fine. I don't think the dev environment plays a role there, it's the browser running the JS. Why is the error preventing you from continuing? The installation page should still be there. However, you should be able to comment out line 843 in wire/modules/AdminTheme/AdminThemeUikit/scripts/main.js with no ill effects if Safari for some weird reasons prevents the page from working because of the error.

  • Like 2
Link to comment
Share on other sites

16 hours ago, BitPoet said:

I get the same error, but I can install just fine. I don't think the dev environment plays a role there, it's the browser running the JS. Why is the error preventing you from continuing? The installation page should still be there. However, you should be able to comment out line 843 in wire/modules/AdminTheme/AdminThemeUikit/scripts/main.js with no ill effects if Safari for some weird reasons prevents the page from working because of the error.

Aah yes, it indeed looks like the error doesn't affect the installation. It seems my wire folder was not copied entirely after moving them, so I removed it and copied it again and now the install is working as it should, even with the javascript error remaining 🙂 

  • Like 1
Link to comment
Share on other sites

  • PascalKonings changed the title to [resolved] PW fresh installation halts because of javascript error: "undefined reading 'toggleBehavior'"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...