Error creating thumbnail

From emboxit
Jump to: navigation, search

After webhosting migration as below:

Affected: Server wokingham.redbackinternet.net 109.75.171.200.

NOTE: You're receiving this e-mail as your sites are hosted on this server. In case your web site(s) no longer resides on this server, please simply disregard this e-mail.

Dear Nikolaos Chalikias (emboxit),


As per scheduled date wokingham.redbackinternet.net server migration has been completed. If you come across any issue or problem, please contact the technical support department right away.  The contact details are as below

Helpdesk : Please raise a helpdesk ticket from https://support.webhosting.uk.com/index.php?x=&mod_id=1
Live-Chat: Please initiate a live-chat request from http://www.webhosting.uk.com/ (Extreme Right Of The Page)
Email: Please email support@webhosting.uk.com
Phone : Please call our toll-free number 0808-262-0855
International : +44 0191-303-8069
 
We thank you for your patience and co-operation. It is immensely appreciated.
 
Regards,
The Support Team.
http://webhosting.uk.com

I experienced:

Error creating thumbnail: Unable to save thumbnail to destination

in new wikipages like N-node24 V2 Design and in some images from old pages like Flightcase

  • Chatting with Webhosting did not solve the issue and they opened a ticket
  • I tried some solutions suggested in pages I found by Googling with no result except this one:
file /includes/GlobalFunctions.php
replace function wfTempDir() by

function wfTempDir() {
foreach( array( 'TMPDIR', 'TMP', 'TEMP' ) as $var ) {
$tmp = getenv( $var );
if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) &&
is_writable( $tmp ) ) {
return $tmp;
}
}
if (ini_get('upload_tmp_dir')!==false) {
$tmp = ini_get('upload_tmp_dir');
if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) &&
is_writable( $tmp ) ) {
return $tmp;
}

}
if( function_exists( 'sys_get_temp_dir' ) ) {
$tmp = sys_get_temp_dir();
if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) &&
is_writable( $tmp ) ) {
return $tmp;
}
}
# Usual defaults
return wfIsWindows() ? 'C:\Windows\Temp' : '/tmp';
}
  • Other solutions might work too if after the changes try to edit and save a page. I had to do this for the worked solution to work with N-node24 V2 Design.