Osclasswizards them...
 
Notifications
Clear all

[Solved] Osclasswizards theme - JS error in Admin Dashboard

6 Posts
3 Users
2 Reactions
97 Views
Maximus
(@maximus)
Posts: 57
Reputable Member
Topic starter
 

Not sure this is a Osclass 5 or 8 issue or whatever, so i'm posting it here.

While checking with F12 some other topic issue, i saw a js crash in the admin dashboard. Switching to the default theme, removed the error. So this is an Osclasswizards issue.

The error is related to fancybox

/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later

and ONLY appears to the main admin Dashboard. Since the media helper is 1.0.6 and there is NO new version, i don't think we can fix this. Maybe some developer can, i don't know.

And that version of fancybox is the last, the script has changed the name and there is no upgrade path.

So this is what it is. No harm is done with this js crash. We can leave it as it is.

 
Posted : November 2, 2022 19:34
Topic Tags
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

This doesn't come from Osclasswizards theme. I have that error also, switched to Osclasspoint theme and the error is still there.

It must come from something else.

 
Posted : November 2, 2022 20:02
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

This error comes from Osclasspoint

Backoffice widget settings

If you hide some of them, the error appears. So NOT an Osclasswizards issue.

 
Posted : November 2, 2022 20:09
(@tango)
Posts: 58
Trusted Member
 
Posted by: @maximus

Not sure this is a Osclass 5 or 8 issue or whatever, so i'm posting it here.

While checking with F12 some other topic issue, i saw a js crash in the admin dashboard. Switching to the default theme, removed the error. So this is an Osclasswizards issue.

The error is related to fancybox

/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later

and ONLY appears to the main admin Dashboard. Since the media helper is 1.0.6 and there is NO new version, i don't think we can fix this. Maybe some developer can, i don't know.

And that version of fancybox is the last, the script has changed the name and there is no upgrade path.

So this is what it is. No harm is done with this js crash. We can leave it as it is.

A few days ago, I got a different JS error related to FancyBox when I installed a Profile Picture plugin (the same, it appeared only in the admin dash).

The only way to fix it was to update the default Fancy included in Bender from v2.0.4 (12/12/2011), to 2.1.7 (Tue, 28 Feb 2017).

https://github.com/MercanoG/Osclass-Enterprise/commit/7d1963100ce502c3a2d862e10f72bdcd76b4134a

You can give this a try.

= Osclass Enterprise =

 
Posted : November 2, 2022 20:16
Editor reacted
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

@tango The issue the OT wrote doesn't come from that theme.

BUT THANKS for the tip, since Osclasswizards uses fancybox 2.15. Maybe we can update the Osclasswizards theme a bit, with Bootstap 4.3.1 and fancybox 2.17.

And test if it works.

@maximus go ahead, you are the brave one.

 
Posted : November 2, 2022 20:29
Maximus
(@maximus)
Posts: 57
Reputable Member
Topic starter
 

yeap, it seems it doesn't come from the theme, but from Osclasspoint script.

Sorry about that. I will check all those scripts you mentioned and see what i can do. But probably i can only check and report if they work. I can't do any modifications to the theme and post it online.

 
Posted : November 2, 2022 21:16
Editor reacted