-
Notifications
You must be signed in to change notification settings - Fork 1.8k
External javascript not being loaded/executed in headers in 0.12.2.1 on OS/X #2183
Comments
Hello, It works as expected in 0.12.1. Regards |
@sle-odoo: can you do a |
@sle-odoo: can you post a minimal test case which can reproduce this issue? I'll try a bisect and see if I can track down the offending commit. Also, is it random or always happens? |
@ashkulz you can use the test case of the @johnedo1234, it's really the same thing. Yes, it always happen. At least during my hundreds of tests :) |
@sle-odoo: does this happen on local files or on files served via HTTP/HTTPS? I'm not able to reproduce it, see the test case:
|
Yes, the problem occurred using HTTP on OS/X. Looks like you might be testing with a 32-bit Windows Debug build. Try a 64-bit Release build if that’s the case. |
@johnedo1234: do you mean to say it happens only for release builds? or is it a 64-bit issue? @sle-odoo: how does it happen for you? |
I just observed that you're testing against a Windows 32-bit debug build, and the original report was an OS/X 64-bit release build. It could easily be a debug/release issue, or a 32/64 bit issue, or a Windows/Posix issue, so I'd try all of those permutations rather than just a win32 debug build before concluding it can't be reproduced. |
@johnedo1234: I think that it is up to you and @sle-odoo to help me reproduce it, as it demonstrably does not work in the environment I am using right now (not everybody has access to an OS X machine). |
Try reproducing on a 64-bit windows release build. If that doesn't work, get yourself a Debian Jessie VM and test an x64 release build on there. |
@johnedo1234: instead of giving me instructions on what to do, why don't you show the steps to reproduce the issue with a public URL? Instructing the maintainer of an open-source project to reproduce an issue is in bad taste; the reporter has to do the legwork if he/she wants it to be fixed. |
@ashkulz 2183_h.html
2183_f.html
2183_m.html
wkhtmltopdf --header-html 2183_h.html 2183_m.html 2183.pdf > header + main Important note: once i inline the subst.js script, it is working as expected. Also, if i don't require the same file in the header (subst.js), the footer and the header are showing. So the issue is there, somewhere and this time it is reproducible. I'm still using debian jessie x64. Thanks in advance |
@sle-odoo: good that it is now reproducible with local files, will look at it this evening. |
Ok, bisecting it identifies e02ff7e as the culprit. I suspect that the default |
A preview for the next release Please note that the above downloads will be removed after the |
So if there is a fix to the vanishing footer, what version of the executable should I be pointing to regarding 64-bit Linux (CentOS 6) - built on CentOS 6.6? I randomly have a vanishing footing on the CentOS version with the latest stable build (12.2.1), but have no problems with the Windows 7 version (64 bit 12.2.3). It would be nice to have the CentOS version of the stable build match the one for Windows 7. Thanks. |
@Jovve: use the testing release, it has a generic linux binary which should work on all distros. |
Note that the preview downloads mentioned above have been removed. |
It's back. Just noticed this on Odoo15. Ubuntu 20.04. |
header.html:
header.js:
"header" is not output to the log.
As a result, if the page numbering logic is stored in an external javascript file, it won't be executed and page numbering won't work.
This is broken in 0.12.2.1 32-bit on OS/X, but it works in 0.12.1 32-bit on OS/X.
Please help!
The text was updated successfully, but these errors were encountered: