Template for dynamic web page view version 4.0

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
zaza
Posts: 1
Joined: 2013-06-23 06:48:06

Post by zaza »

got the same problem it doesn't work on all devices
srxela
Posts: 3
Joined: 2013-07-24 15:25:57

Post by srxela »

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.
Theil
Posts: 1
Joined: 2013-08-12 18:06:07

Post by Theil »

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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

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.
parry
Posts: 15
Joined: 2010-01-12 21:08:34

Post by parry »

I'm having this problem as well, I can't open it in Chrome but it loads in Safari. I'm using IMDB to obtain film information.

How would I figure out what the cause is and how to fix it?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

parry wrote:I can't open it in Chrome
If you open the XML file directly, do you have an error message?
parry
Posts: 15
Joined: 2010-01-12 21:08:34

Post by parry »

From what I can see, there's no errors.

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.
Below that is the contents with each film, it used to open fine before but not lately, I haven't made any changes either.
parry
Posts: 15
Joined: 2010-01-12 21:08:34

Post by parry »

Anyone know a fix for this?
kgytopi
Posts: 51
Joined: 2007-11-02 22:13:31
Location: Hungary, Budapest

Post by kgytopi »

parry wrote:Anyone know a fix for this?
1. Install the wamp server and run !!! ( http://www.wampserver.com/ )

2 . copy files into c:\wamp\www\bergware4\

3 . and run... => localhost/bergware4/index.html


Sorry my english
carlosmg2
Posts: 39
Joined: 2009-08-18 19:21:08
Contact:

Post by carlosmg2 »

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
Suskis
Posts: 10
Joined: 2010-02-09 11:38:01

Post by Suskis »

what about the “movies_xxx” name for pictures? I have over 4000 movies, so I suspect “movies_xxx” will not work, being only 3 digits long?
tiagoaquino
Posts: 17
Joined: 2011-05-08 19:18:08
Location: Brasil
Contact:

Re: Template for dynamic web page view version 4.0

Post by tiagoaquino »

Ok.. does someone still have the source files?
kgytopi
Posts: 51
Joined: 2007-11-02 22:13:31
Location: Hungary, Budapest

Re: Template for dynamic web page view version 4.0

Post by kgytopi »

tiagoaquino wrote: 2019-01-12 12:01:29 Ok.. does someone still have the source files?
Hi!
It's working for me!
https://drive.google.com/open?id=1Hkl97 ... oWKoVUxasZ
spiderman
Posts: 51
Joined: 2008-08-14 17:58:38

Re: Template for dynamic web page view version 4.0

Post by spiderman »

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
Post Reply