“Error creating thumbnail: Unable to save thumbnail to destination” (will be in Portuguese by default: “Erro ao criar miniatura: Não foi possível salvar a miniatura no destino”)
Other Information
I’m moving my wiki from Dokuwiki to Mediawiki and everything is fine, the only problem is that the website will not display any images in a page. I tried uncommenting and changing the cache location in localsettings.php to something valid (I tried $ip/margarina.rf.gd/htdocs/mediawiki/cache) but it didn’t work, and I also tried changing the cache type to database but it did not change anything. Please note that the file was uploaded to the server as I can see it when accessing the server files via FTP. I really don’t know what to do as everyone I saw online that came across this same error had very different enviroments and solutions that are not working for me.
Kinda off-topic, but if any Mediawiki user come across this post, does your inode usage get higher after installing and configuring Mediawiki? My inode usage is very high with just the installation of Mediawiki, but I guess that’s fine as Mediawiki does not save pages as files.
Edit: I see that there are a lot of problems with Mediawiki in InfinityFree forum, is Mediawiki too much for the free servers? Should I stick with Dokuwiki for now?
Not a MediaWiki user, but I can tell you that MediaWiki is a VERY big software package where even a single installation will use up a big chunk of your inode allocation. It doesn’t have to stop you from using MediaWiki, but please keep this in mind if you intend to have big plugins, lots of uploads, or other websites on the same account.
I had a quick look at your LocalSettings and I see a number of issues.
$wgCacheDirectory = "$IP/htdocs/mediawiki/cache";
I don’t know what you were trying to do here. The “$IP” variable does not exist, and the consequence is that cache is now being created in the htdocs/mediawiki/htdocs/mediawiki/cache directory.
This will not work. The directory listed here is not writable by your website. A quick look at the documentation makes me think you should just remove it, the default behavior should be fine.
Yeah Mediawiki is pretty heavy but our wiki is pretty small and I like to mess round with different and more complex software sometimes, I will not install any heavy plugin, I need basic wiki functionality only.
Eh… I assumed the $IP was something the Mediawiki software would figure out, I don’t really know PHP.
That makes sense, I just didn’t know how it worked.
I didn’t try that, my guess was that by default it was using
/margarina.rf.gd/htdocs/mediawiki/cache
Because this directory already existed without any change, and I assumed it was confused about the directory because the way subdomains have their own directory. Again, I just assumed stuff because I had no idea how to fix this.
EDIT: I didn’t notice that you were talking about whole different values in the config. I’ll try changing the temp directory to something valid.
By default it was commented and I was getting the same error, do you mean I should leave it uncommented with the default value of “$IP”?
Making a new reply just to mark as solution so if any other person have this problem they know what I have changed to make it work. $wgTmpDirectory was set - by default (I’m pretty sure, I didn’t even know this directory existed) - to $wgTmpDirectory = "/home/vol7_2/infinityfree.com/if0_37394496/tmp_3uv7g6";, I had to change it to something valid (like htdocs/mediawiki/temp) as Admin said.