info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Reuven@reuven
Reuven - 0 likes
- iionly@iionly
iionly - 0 likes
- Reuven@reuven
Reuven - 0 likes
- iionly@iionly
iionly - 0 likes
- Reuven@reuven
Reuven - 0 likes
- Reuven@reuven
Reuven - 0 likes
You must log in to post replies.I gave instructions on when to update Elgg:
From Elgg Docs:
How to synchronize:
Edit engine/settings.php
Backup DB on old server
Copy to new server
Insert to DB
Edit engine/settings.php
Backup DB on old server
Copy to new server
Insert to DB
Thank you.
I think I duplicated the site correctly.
The question is why Elgg creates this kind of icon address:
https://mysite.com/serve-file/e0/l1626657314/di/c0/gLVy3eiFhLTcpASTINJv-G6OPiNSUlRGBTHS5MOcKY4/1/4164/icons/icon/master.jpg
And not this kind of address:
https://mysite.com/cache/1626657208/default/icons/default/master.png
Thanks
Are you comparing the same kind of images on the same version of Elgg?
There are filetype icons used for non-image files and image previews (thumbnails) for image files. For the first type of files the same image icon is used for every file of the same type whereas the image file thumbnails are different for every single file. The image icon files used are located somewhere within the Elgg install directory (and cached in the data directory cache folder). The thumbnail files are saved in the data directory and served from there.
Additionally, the functionality behind the serving of files/ image files has changed in Elgg 2.3 compared to older versions of Elgg (2.2 or earlier). I think on Elgg 2.2 you got the "cache" urls for every type of file whereas Elgg 2.3 uses the "serve-file" urls for uploaded files/thumbnails. The difference with the "serve-file" urls is that they are semi-permanent (for the current session) or permanent (can be used to link to a specific file). I'm not sure at the moment how to identify the permanent urls (maybe the urls with "serve-file" ARE the permanent urls actually. In any case, the urls with "cache" are not permanent, i.e. if you flush the cache, the corresponding icon files are cached again when they are used within a page but the cache url will be different.
Thank you iionly.
It is not clear to me why two identical installation have different behavior. The old sit is on a shared host the new one on a VPS.
Since I'm quite new to the VPS I suspect that I did not configure it correctly, or some module is missing. Could you please mention some of the main important points regarding Elgg 2.3 on VPS ?
Thank you very much
The difference in URL is definitely not a matter related to the configuration of your VPS server.
It might be that the cache settings of Elgg ("Advanced Settings" in the admin area of your site) differ between the old site and new site and this might cause different URLs (e.g. with caching disabled or some caching options at least) the caching of the files might not be possible in the first place, so you won't get a "cache" URL.
Apart from the caching options available on the Advanded Settings you might also want to create the symbolic link in the root folder of your Elgg installation. At least for me it never worked to let Elgg create it automatically. Nonetheless, the Advanced Settings page will tell you where the "cache" link would have to point to exactly within the data directory.
Thank you iionly.
I'm going to check this.
Thank you very much Nikolai and iionly. I learn a lot from your answers.
However, I reinstalled the site from scratch and the initial tests show that it works well. The problem with the images disappeared.
All the best.