Announcement

#1 2017-07-10 15:51:17

kompasdata
Member
2017-07-10
8

Cannot redeclare transliterate() in /wce/include/functions.inc.php

Hello/Hi/Greetings,
My problem is:
Fatal error: Cannot redeclare transliterate() in /wce/include/functions.inc.php on line 340

I made simple change in file. I Removed section
if (function_exists('mb_strtolower') && defined('PWG_CHARSET'))
{
  /**
   * removes accents from a string and converts it to lower case
   *
   * @param string $term
   * @return string
   */
  function transliterate($term)
  {
    return remove_accents( mb_strtolower($term, PWG_CHARSET) );
  }
}
else
{
  /**
   * @ignore
   */
  function transliterate($term)
  {
    return remove_accents( strtolower($term) );
  }
}

Unfortuantely thas change losing my tags...... (cannot search or cannot add new one)

May I Ask for Your help?

Piwigo version: 2.9.1
PHP version: 52
MySQL version: 5.5.54
Piwigo URL: http://wycieczkowce.com.pl

Offline

 

#2 2017-07-11 00:51:14

flop25
Piwigo Team
2006-07-06
7037

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

Hello
how did that happen? update, new plugin,new install?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2017-07-11 07:54:25

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

It happen after update to 2.9.1

Last edited by kompasdata (2017-07-11 08:03:14)

Offline

 

#4 2017-07-11 15:44:48

flop25
Piwigo Team
2006-07-06
7037

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2017-07-13 07:49:36

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

home.pl
Business cloud server.

Offline

 

#6 2017-07-13 12:56:16

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

answer from home.pl:
"Within the servers at home.pl is implemented a library called translit (http://php.net/manual/en/transliterator … terate.php). However, it is not possible to declare whether overloading the function already declared, which is the case in this situation. Therefore, you need to modify the application scripts in such a way that they do not reappear.
Unfortunately another solution we can not offer."
May I ask You for right file?
Thanks in advance.

Offline

 

#7 2017-07-13 12:58:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

See what will be in Piwigo 2.9.2 : [Github] Piwigo commit a3cf80c7

Offline

 

#8 2017-07-13 13:26:31

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

Great! when 2.9.2 will be available?
I made those changes on my piwigo 2.9.1 and it helped!
Thank You

Offline

 

#9 2017-07-13 14:00:50

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

kompasdata wrote:

Great! when 2.9.2 will be available?

Too soon to say :-) Maybe before the end of July.

kompasdata wrote:

I made those changes on my piwigo 2.9.1 and it helped!

Perfect :-) You won't have to apply the same change once you update to 2.9.2

Offline

 

#10 2017-08-30 15:17:46

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

plg wrote:

Too soon to say :-) Maybe before the end of July.

And?

Offline

 

#11 2017-08-30 15:26:46

flop25
Piwigo Team
2006-07-06
7037

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

Hello
Plg is currently improving piwigo dot com . Then [Github] Piwigo issue #697 might be merged in 2.9.2 and maybe we should be good ^^


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#12 2017-08-30 15:49:52

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

Next week should be a good time. An intern is joining Piwigo (I will write about it later) for a few months and seeing the release procedure will be interesting for him :-)

Offline

 

#13 2017-08-30 16:21:50

flop25
Piwigo Team
2006-07-06
7037

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

so we will be able to say "it's the intern fault" ;)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#14 2017-08-31 12:47:04

kompasdata
Member
2017-07-10
8

Re: Cannot redeclare transliterate() in /wce/include/functions.inc.php

Thanks for Yours answer.
You should have to know that i'm waiting for .2 with a new project...

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact