Author Topic: i cant change image category  (Read 9357 times)

0 Members and 1 Guest are viewing this topic.

Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
i cant change image category
« on: April 22, 2012, 11:29:59 AM »
i find this thread but we have not same problem. http://www.4homepages.de/forum/index.php?topic=11146.0

when i cant change any image category in admin panel:


Code: [Select]
Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/eurocupp/public_html/admin/images.php on line 193

Fatal error: Call to undefined function filterFileName() in /home/eurocupp/public_html/admin/admin_functions.php on line 114



Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: i cant change image category
« Reply #2 on: April 22, 2012, 12:22:10 PM »
i looked http://www.4homepages.de/forum/index.php?topic=28430.0.

i cant find
Code: [Select]
array_walk($split_words, 'trim_value'); in my search_utils.php

Rembrandt

  • Guest
Re: i cant change image category
« Reply #3 on: April 22, 2012, 12:51:33 PM »
The best way is, update your Galerie system to 1.7.10
The "function trim_value" is first time in the V.1.7.8 in the "includes / functions.php" contain.

mfg Andi

Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: i cant change image category
« Reply #4 on: April 22, 2012, 01:28:43 PM »
Hi rembrandt. my gallery system is 4.7.10 now :S

Rembrandt

  • Guest
Re: i cant change image category
« Reply #5 on: April 22, 2012, 03:43:23 PM »
and bevor? give a little bit more information....

Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: i cant change image category
« Reply #6 on: April 23, 2012, 11:00:11 AM »
i have a problem while changing the image category. it gives an error and the popup window didnt close:


Code: [Select]
Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/eurocupp/public_html/admin/images.php on line 193

Fatal error: Call to undefined function filterFileName() in /home/eurocupp/public_html/admin/admin_functions.php on line 114

my version 1.7.10


Rembrandt

  • Guest
Re: i cant change image category
« Reply #7 on: April 23, 2012, 11:09:45 AM »
seaarch in functions.php:

    
return 'application/octet-stream';
}

insert below:

function trim_value(&$value)
{
    
$value trim($value);
}


search:

	
return @
mkdir($dir$chmod);
}

insert below:

function filterFileName($text$tolower 1$transl null)
{
	
global 
$translit;
	
$transl = ($transl !== null) ? $transl : @$translit;
	
if (
$transl)
	
	
$text strtr(
	
	
	
$text,
	
	
	
 array(
	
	
	
	
// russian Windows-1251
	
	
	
	
"\xc0" => "a",
	
	
	
	
"\xc1" => "b",
	
	
	
	
"\xc2" => "v",
	
	
	
	
"\xc3" => "g",
	
	
	
	
"\xc4" => "d",
	
	
	
	
"\xc5" => "e",
	
	
	
	
"\xa8" => "e",
	
	
	
	
"\xc6" => "zh",
	
	
	
	
"\xc7" => "z",
	
	
	
	
"\xc8" => "i",
	
	
	
	
"\xc9" => "j",
	
	
	
	
"\xca" => "k",
	
	
	
	
"\xcb" => "l",
	
	
	
	
"\xcc" => "m",
	
	
	
	
"\xcd" => "n",
	
	
	
	
"\xce" => "o",
	
	
	
	
"\xcf" => "p",
	
	
	
	
"\xd0" => "r",
	
	
	
	
"\xd1" => "s",
	
	
	
	
"\xd2" => "t",
	
	
	
	
"\xd3" => "u",
	
	
	
	
"\xd4" => "f",
	
	
	
	
"\xd5" => "h",
	
	
	
	
"\xd6" => "c",
	
	
	
	
"\xd7" => "ch",
	
	
	
	
"\xd8" => "sh",
	
	
	
	
"\xd9" => "sch",
	
	
	
	
"\xda" => "",
	
	
	
	
"\xdb" => "i",
	
	
	
	
"\xdc" => "",
	
	
	
	
"\xdd" => "e",
	
	
	
	
"\xde" => "yu",
	
	
	
	
"\xdf" => "ya",
	
	
	
	
"\xe0" => "a",
	
	
	
	
"\xe1" => "b",
	
	
	
	
"\xe2" => "v",
	
	
	
	
"\xe3" => "g",
	
	
	
	
"\xe4" => "d",
	
	
	
	
"\xe5" => "e",
	
	
	
	
"\xb8" => "e",
	
	
	
	
"\xe6" => "zh",
	
	
	
	
"\xe7" => "z",
	
	
	
	
"\xe8" => "i",
	
	
	
	
"\xe9" => "j",
	
	
	
	
"\xea" => "k",
	
	
	
	
"\xeb" => "l",
	
	
	
	
"\xec" => "m",
	
	
	
	
"\xed" => "n",
	
	
	
	
"\xee" => "o",
	
	
	
	
"\xef" => "p",
	
	
	
	
"\xf0" => "r",
	
	
	
	
"\xf1" => "s",
	
	
	
	
"\xf2" => "t",
	
	
	
	
"\xf3" => "u",
	
	
	
	
"\xf4" => "f",
	
	
	
	
"\xf5" => "h",
	
	
	
	
"\xf6" => "c",
	
	
	
	
"\xf7" => "ch",
	
	
	
	
"\xf8" => "sh",
	
	
	
	
"\xf9" => "sch",
	
	
	
	
"\xfa" => "",
	
	
	
	
"\xfb" => "i",
	
	
	
	
"\xfc" => "",
	
	
	
	
"\xfd" => "e",
	
	
	
	
"\xfe" => "yu",
	
	
	
	
"\xff" => "ya",
	
	
	
	
// russian KOI8
/*
	
	
	
	
"\xe1" => "a",
	
	
	
	
"\xe2" => "b",
	
	
	
	
"\xf7" => "v",
	
	
	
	
"\xe7" => "g",
	
	
	
	
"\xe4" => "d",
	
	
	
	
"\xe5" => "e",
	
	
	
	
"\xb3" => "e",
	
	
	
	
"\xf6" => "zh",
	
	
	
	
"\xfa" => "z",
	
	
	
	
"\xe9" => "i",
	
	
	
	
"\xea" => "j",
	
	
	
	
"\xeb" => "k",
	
	
	
	
"\xec" => "l",
	
	
	
	
"\xed" => "m",
	
	
	
	
"\xee" => "n",
	
	
	
	
"\xef" => "o",
	
	
	
	
"\xf0" => "p",
	
	
	
	
"\xf2" => "r",
	
	
	
	
"\xf3" => "s",
	
	
	
	
"\xf4" => "t",
	
	
	
	
"\xf5" => "u",
	
	
	
	
"\xe6" => "f",
	
	
	
	
"\xe8" => "h",
	
	
	
	
"\xe3" => "c",
	
	
	
	
"\xfe" => "ch",
	
	
	
	
"\xfb" => "sh",
	
	
	
	
"\xfd" => "sch",
	
	
	
	
"\xff" => "",
	
	
	
	
"\xf9" => "i",
	
	
	
	
"\xf8" => "",
	
	
	
	
"\xfc" => "e",
	
	
	
	
"\xe0" => "yu",
	
	
	
	
"\xf1" => "ya",
	
	
	
	
"\xc1" => "a",
	
	
	
	
"\xc2" => "b",
	
	
	
	
"\xd7" => "v",
	
	
	
	
"\xc7" => "g",
	
	
	
	
"\xc4" => "d",
	
	
	
	
"\xc5" => "e",
	
	
	
	
"\xa3" => "e",
	
	
	
	
"\xd6" => "zh",
	
	
	
	
"\xda" => "z",
	
	
	
	
"\xc9" => "i",
	
	
	
	
"\xca" => "j",
	
	
	
	
"\xcb" => "k",
	
	
	
	
"\xcc" => "l",
	
	
	
	
"\xcd" => "m",
	
	
	
	
"\xce" => "n",
	
	
	
	
"\xcf" => "o",
	
	
	
	
"\xd0" => "p",
	
	
	
	
"\xd2" => "r",
	
	
	
	
"\xd3" => "s",
	
	
	
	
"\xd4" => "t",
	
	
	
	
"\xd5" => "u",
	
	
	
	
"\xc6" => "f",
	
	
	
	
"\xc8" => "h",
	
	
	
	
"\xc3" => "c",
	
	
	
	
"\xde" => "ch",
	
	
	
	
"\xdb" => "sh",
	
	
	
	
"\xdd" => "sch",
	
	
	
	
"\xdf" => "",
	
	
	
	
"\xd9" => "i",
	
	
	
	
"\xd8" => "",
	
	
	
	
"\xdc" => "e",
	
	
	
	
"\xc0" => "yu",
	
	
	
	
"\xd1" => "ya",
*/
	
	
));


i think your updated version is not completely

mfg Andi



Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: i cant change image category
« Reply #8 on: April 23, 2012, 06:31:50 PM »
my version is 4.7.10 but i edited some documents in ftp. i found return 'application/octet-stream'; } in my function.php but i didnt find return @mkdir($dir, $chmod);
}

Rembrandt

  • Guest
Re: i cant change image category
« Reply #9 on: April 23, 2012, 08:57:51 PM »
then add the two functions above "?>"

Offline jimraynor

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: i cant change image category
« Reply #10 on: May 02, 2012, 02:38:25 PM »
i dont understand function above? i sent you pm. my function.rar. Could you look this document?