Template for dynamic web page view version 4.0
Hi guys, I´ve discovered the problem with "Loading DataBase" in Firefox or Chrome. For any reason, using Filmaffinity Script (or another) to download data of films, it produces an error. Why? I don´t know. If you use CinEOL Script or IMDB Script, the Database loads fine in Firefox or Chrome. Try it yourself.
Now, what?
1) We use another script that works (CinEOL, IMDB...)
2) We wait until the programmers of fail scripts repair them. We should advise in official topic.
Probably, FilmAffinity and others web have changed their "structure" and scripts can´t retrieve the information properly. Surely, this causes a "fail" in movies.xml structure, and this template can´t read it properly, returning the famous "Loading DataBase" which doesn´t finish.
Now, what?
1) We use another script that works (CinEOL, IMDB...)
2) We wait until the programmers of fail scripts repair them. We should advise in official topic.
Probably, FilmAffinity and others web have changed their "structure" and scripts can´t retrieve the information properly. Surely, this causes a "fail" in movies.xml structure, and this template can´t read it properly, returning the famous "Loading DataBase" which doesn´t finish.
I have the same problem as srxela. I think that is an exportation problem because even chrome shows an error when you try to open the XML. This error is because the filmaffinity script imports comments like "Puntuación: (???? sobre 4)" containing an invalid character (shown as ENQ in notepad++). If I replace this character by a space or something valid in XML, this template works fine.
What character set do you use for the XML file?
(written in the header of the file, can also be set in File->Properties in AMC)
If you use windows-1252 rather than iso-8859-1 it should solve most of the special characters problems.
But there may still be errors of course.
If you open the XML file in a web browser you can easily find where are the errors. You can correct them in your catalog, but if they often occur it would be better to correct the script. If an example of which movie imported by which script cause which invalid character, it is easy to fix.
(written in the header of the file, can also be set in File->Properties in AMC)
If you use windows-1252 rather than iso-8859-1 it should solve most of the special characters problems.
But there may still be errors of course.
If you open the XML file in a web browser you can easily find where are the errors. You can correct them in your catalog, but if they often occur it would be better to correct the script. If an example of which movie imported by which script cause which invalid character, it is easy to fix.
From what I can see, there's no errors.
At the top there's this message:
Below that is the contents with each film, it used to open fine before but not lately, I haven't made any changes either.
At the top there's this message:
Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
1. Install the wamp server and run !!! ( http://www.wampserver.com/ )parry wrote:Anyone know a fix for this?
2 . copy files into c:\wamp\www\bergware4\
3 . and run... => localhost/bergware4/index.html
Sorry my english
I also have this problem recently. please help
I've tried restoring past xml, deleting all the xml content except one movie and still happens the same. Deleting comments, strange characters, changing encoding.. nothing works
opening XML on chrome, firefox or IE doesn't report any errors
T_T
EDIT: opening console on chrome while template is in ''Database loading...'' i've seen this message: Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
Maybe that helps for some expert...
EDIT2: SOLVED! the previous edit leaded me to the solution: on the console where I saw that error I clicked on movies***.js and it showed an error on LOCALE file. Opened my locale file on Chrome and it showed an error. Fixed that error and template works. And I get the info from Filmaffinity
I've tried restoring past xml, deleting all the xml content except one movie and still happens the same. Deleting comments, strange characters, changing encoding.. nothing works
opening XML on chrome, firefox or IE doesn't report any errors
T_T
EDIT: opening console on chrome while template is in ''Database loading...'' i've seen this message: Uncaught TypeError: Cannot call method 'getElementsByTagName' of null
Maybe that helps for some expert...
EDIT2: SOLVED! the previous edit leaded me to the solution: on the console where I saw that error I clicked on movies***.js and it showed an error on LOCALE file. Opened my locale file on Chrome and it showed an error. Fixed that error and template works. And I get the info from Filmaffinity
-
- Posts: 17
- Joined: 2011-05-08 19:18:08
- Location: Brasil
- Contact:
Re: Template for dynamic web page view version 4.0
Ok.. does someone still have the source files?
Re: Template for dynamic web page view version 4.0
Re: Template for dynamic web page view version 4.0
i updated my browser and now my xml won't load from local harddrive
the error message:
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Access to XMLHttpRequest at 'file:///E:/HTML/Film/languages/locale.NL.xml' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
the bold italic text gives an error (from movies.js):
function loadFile(source){
if (window.ActiveXObject){
var xmlfile=new ActiveXObject('Microsoft.XMLDOM');
xmlfile.async=false;
xmlfile.load(source);
return xmlfile;
}else if (window.XMLHttpRequest){
var xmlfile=new window.XMLHttpRequest();
xmlfile.open('GET',source,false);
xmlfile.send('');
return xmlfile.responseXML;
}else{
return null;
}
}
who has a solution?
thanks in advanced
the error message:
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Access to XMLHttpRequest at 'file:///E:/HTML/Film/languages/locale.NL.xml' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
the bold italic text gives an error (from movies.js):
function loadFile(source){
if (window.ActiveXObject){
var xmlfile=new ActiveXObject('Microsoft.XMLDOM');
xmlfile.async=false;
xmlfile.load(source);
return xmlfile;
}else if (window.XMLHttpRequest){
var xmlfile=new window.XMLHttpRequest();
xmlfile.open('GET',source,false);
xmlfile.send('');
return xmlfile.responseXML;
}else{
return null;
}
}
who has a solution?
thanks in advanced