Files (images) become corrupted after upload (?)
- Status
- Closed
- Subject
- Files (images) become corrupted after upload (?)
- Version
- 20.x Regression
21.x
21.x Regression - Category
- Regression
- Feature
- File Gallery (elFinder or standard UI)
- Resolution status
- Not enough information
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
I’ve being fighting with a weird phenomena since I’m trying to upgrade Tikis 20 to Tiki21.
My server is ClearOs 7 and I use php7.2 and file directory a storage.
I upload files, most appear ok and can be displayed.
Once in a while the upload is ok and the image appear in the file gallery but can’t be displayed in a wiki page sometimes the image doesn’t appear in the file gallery itself. ( I see a jpg or a png icon over the file in the file galleries)Metadata shows:
Copy to clipboardMetadata Extraction Time Tuesday February 25, 2020 14:43:57 IST File Data File Type JPEG File Size 8916 bytes Width 80 pixels Height 80 pixels
To solve this:- I re upload (new version)
Sometimes when I upload a new version (or replace since I set archives to none) and it work or sometimes I have a WSoD:
I also get from time to time :
+Error
+Potential cross-site request forgery (CSRF) detected. Operation blocked. Reloading the page may help. - If not solved I delete the files in the file gallery and upload a new image (it create a new file object).
When I copy back the folder on my local server (to test on a clone before upgrading) or create a clone on the same server most of them are not displayed (jpg or a png icon).
On my local OSX if I preview the files from the finder I can see the image, but Tiki doesn’t:Copy to clipboard<img src="https://domaine.fr/dl18?display" alt="The image “https://domaine.fr.fr/dl18?display” cannot be displayed because it contains errors.">
Once everything solved, I do a files:check from the Tiki console.It look ok (the extra file is certainly because of my numerous attempt during the last 3 days but not related to this issue).
I create a dump of the database and copy the Tiki themes folder and files folder on my local (I delete the old one) using Cyberduck (something I’ve being doing for ages) to create a local clone.
I check the files (OSX preview) and I can see the images properly displayed.
I create a new database and dump in the sql file (the database).
I create a new Tiki (git Tiki 20) and do the install process
I place the files folderand the theme folder where it should be.
I place the theme
I re update DB, re-index files, clear cache (you never know)
And check files using the console and I got the same than on my remote.
Look to me like a perfect clone to me.But now, start the chaos. (can’t say there is a pattern) 😊
- A few images are not displayed on the wiki page.
- A few of images show the jpg or a png icon over the file in the file galleries. (images that are displayed in the wiki pages)
I tested this behaviour and got similar results cloning to Tiki20x and to Tiki21x.
In time and after re-uploading problematic files I narrowed the issue to a few images and I re-upload them manually in my clones.We are talking about a few files (53) and I’m enough experimented and wanted to report properly the problem (and I’m stubborn 😊 ) to solve one by one the issues. I doubt Tiki admin upgrading have the same "patience"...
- I re upload (new version)
- Importance
- 8
- Easy to solve?
- 5
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7293
- Created
- Wednesday 26 February, 2020 08:25:56 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Tuesday 10 March, 2020 07:38:33 UTC