Error when loading Viewer v3.2.1 - autodesk-forge

I'm getting an error when loading the Forge Viewer v3.2.1.
I've just tried with v3.1.1 and it's working fine.
The error thrown in the console is:
ERROR TypeError: WGS is undefined
Autodesk.Viewing.Private.initializeLegacyNamespaces#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:12:10590
e#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:42:7197
j#https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3D.min.js?v=v3.2.1:42:5825
It was working fine yesterday, and I haven't touched my code, so I assume it is a bug.
Thanks.

The url you should use is https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.min.js?v=3.2.1. My apps are using this and it works fine.

I'm loading this version like this:
https://developer.api.autodesk.com/derivativeservice/v2/viewers/viewer3D.min.js?v=3.2.*
Add the script like that it is working for me.

Related

Uncaught TypeError: P.addInstancingSupport is not a function [autodesk-forge]

This morning I started getting this error when I try to display the model in my viewer, the code was working fine till last night. Upon looking into details, I see this error:
Uncaught TypeError: P.addInstancingSupport is not a function
at Aa (viewer3D.min.js:14)
at a.initialize (viewer3D.min.js:14)
at a.e.initialize (viewer3D.min.js:19)
at a.initialize (viewer3D.min.js:21)
at a.e.start (viewer3D.min.js:19)
at d.selectItem (viewer3D.min.js:21)
at onDocumentLoadSuccess (ForgeViewer.js:45)
at viewer3D.min.js:21
at j (viewer3D.min.js:20)
at XMLHttpRequest.p (viewer3D.min.js:4)
The error seems to be stemming from 'viewer3D.min.js'. I am fairly new to coding.
What version of the Viewer are you using? You can run LMV_VIEWER_VERSION from your console in Chrome Dev Tools. If the version is "1.X" you might want to check this https://forge.autodesk.com/blog/view-and-data-api-will-be-switched-next-week?linkId=40492041
Probably I will need to check more code in order to determine what could be going wrong, but I have a feeling you might be using an older version that just got deprecated.
Thanks! it worked.
I had to change the references from V1 to V2 for viewer scripts.

CORS not working with withCredentials=true sync ajax call on chrome

I am trying to make a cross domain ajax sync call with withCredentials=true, i am not getting any error, the browser just got stuck. My chrome version is 40.0.2214.115 m.
I also tried same with latest version (35.0) of firefox and facing same issue " Invalid access error a parameter or an operation is not supported by the underlying object".
What could be the possible reason, any input would be helpful.

Call to undefined method ModelReportCustomer

ok so i upgraded from opencart 1.5.3.1 to 2.0.1.1 and front end it working fine, im having an issue, however, with the admin backend. when i go the admin url it loads and allows me to input my credentials. once i do that im presented with the following error:
Fatal error: Call to undefined method ModelReportCustomer::getTotalCustomersOnline() in /newstaging/admin/controller/common/header.php on line 77
any help please?
did you load the model?
$this->load->model('report/customer')
Also make sure your admin/model/report/customer.php exists

How to solve authentication problems in facebook

I am creating an application that until yesterday seemed to work, but this morning, performing a function as I always do, it turns out this message:
"Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. Thrown in ../base_facebook.php on line 1254"
Where am I doing wrong?
you Try to clean the cookies and cache from your firefox browser and try to execute your application once again...and check if you are app works in firefox this time...

Minimizing chrome app window

Running into some issues with windows in chrome packaged apps. In the docs it says windows have the function close() and minimize()
window.close(); //works fine
However, when I try to minimize I get this:
window.minimize(); //Uncaught TypeError: Object [object global] has no method 'minimize'
Any ideas?
After fiddling I figured it out:
chrome.app.window.current().minimize();
Works fine now