Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

wpi javascript error main.js line 232

Featured Replies

I see this error every now and then and cannot seem to track it down. I am using the latest wpi 3.5.1 downloaded a few days ago.

wpierror.gif

any ideas?

Dennis

little new to WPI (started last night lol) so bear with me...

i check the main.js file, from what i see it looks like a problem with displaying "simple" or "complex" shadow colors... if you don't know yet, you can open main.js (in the common folder) with notpad and turn off wordwrap and turn on he status bar to check what line you are on.... for the area of 232 I have:

function ViewTip() {

position="main.js";

  Count++

if(Count == 1) {

  if(cssFilters&&FiltersEnabled) {

  for(Index=28; Index<31; Index++) { TipLayer.filters[index].enabled = 0 }

  for(s=0; s<28; s++) { if(TipLayer.filters.status == 2) TipLayer.filters.stop() }

  if(tbody.Transition == 51) tbody.Transition = parseInt(Math.random()*50)

  var applyTrans = (tbody.Transition>-1&&tbody.Transition<24&&tbody.Duration>0)? 1:0

  var advFilters = (tbody.Transition>23&&tbody.Transition<51&&tbody.Duration>0)? 1:0

  var which = (applyTrans)?0:(advFilters)? tbody.Transition-23:0

  if(tbody.Alpha>0&&tbody.Alpha<100) {

      TipLayer.filters[28].enabled = 1

      TipLayer.filters[28].opacity = tbody.Alpha

  }

  if(tbody.ShadowColor&&tbody.ShadowType == "simple") {

      TipLayer.filters[29].enabled = 1

      TipLayer.filters[29].color = tbody.ShadowColor

  }

  else if(tbody.ShadowColor&&tbody.ShadowType == "complex") {

      TipLayer.filters[30].enabled = 1

      TipLayer.filters[30].color = tbody.ShadowColor

  }

  if(applyTrans||advFilters) {

    eval(obj+sv+hl)

      if(applyTrans) TipLayer.filters[0].transition = tbody.Transition

      TipLayer.filters[which].duration = tbody.Duration

      TipLayer.filters[which].apply()

  }

  }

  eval(obj+sv+vl)

  if(cssFilters&&FiltersEnabled&&(applyTrans||advFilters)) TipLayer.filters[which].play()

  if(hs == "sticky") move=0

  }

}

the bracket in red is line 232. I don't know if this is of any help, but you may be able to spot a typo or incorrect value. i'm using 3.5.1 as well.

*NOTE: I would not copy and paste this, i had to use the QUOTE tag so the red bracket would show up.*

oh, and in the useroptions.js file.. i have at the bottom

Style[0]=["#FF00FF","black","#000000","#C0C0C0","","","","","","","","","","",200,"",2,2,10,10,51,0.4,0,"",""];

if it happens to be something you changed in that Tooltips section. just edit and save if need be.

Edited by Bi0haZarD

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.