musicmaster Posted November 16, 2019 Posted November 16, 2019 (edited) I have the problem that my logo keeps being deleted. I have uploaded it many times but usually it disappears after a few hours. The file - with a name like mysite-logo-1546274668.jpg - matches the template name {$logo_url}. I solved it for the website by hard coding another url in header.tpl. However, the pdf files are harder to solve in a neat way. They want a local path from the root of the harddisk - not an url - and I can't find a template variable that provides that. I tried replacing the extension in the filename but it looks like there is some check for the existence of the file. So {$logo_path} - as it is called in the pdfs - is empty when the image isn't there. So my questions are: - what could be deleting my logo? - how can I refer to images in the pdf header? I am running Panda 1.5.2 (the latest version) on the bleeding edge of two weeks ago. Edited November 16, 2019 by musicmaster
Traumflug Posted November 16, 2019 Posted November 16, 2019 Antivirus on the server could delete such a logo. Solution is to turn this off. Antivirus on Linux is pointless.
musicmaster Posted November 16, 2019 Author Posted November 16, 2019 5 hours ago, Traumflug said: Antivirus on the server could delete such a logo. Solution is to turn this off. Antivirus on Linux is pointless. Unfortunately this is not an option on this server. I tried changing the image a bit but that didn't have any effect.
Traumflug Posted November 17, 2019 Posted November 17, 2019 I recently investigated such an installation and found that some files simply get deleted. This is what the hoster wrote: "Unfortunately, these files are deleted because our Firewall system consider them as suspicious. To my regret, they cannot be whitelisted. It is necessary to check these files and change the script." Notably, deleted files in question weren't uploaded directly through the network, but as a ZIP (module) package, so it's certainly not a firewall issue. Unpacking the ZIP resulted in 2 or 3 of the files missing, all others unpacked fine. I simply see no other choice than to turn off this "firewall", or if this is no option, to change hosting. If a hoster deletes files without telling the exact rules by which this is done, there is no chance to build a reliable system. That said, in the investigated case it worked to upload logos from another device. Uploaded from a desktop PC in the U.S. deleted the file, upload from a PC in the EU, or from a mobile device, worked. Totally bonkers.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now