Piwigo.org

You are not logged in. (Register / Login)

Announcement

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

kompasdata
Member
Registered: 2017-07-10
Posts: 6

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
Registered: 2006-07-06
Posts: 6511
Website

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
Registered: 2017-07-10
Posts: 6

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
Registered: 2006-07-06
Posts: 6511
Website

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
Registered: 2017-07-10
Posts: 6

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
Registered: 2017-07-10
Posts: 6

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
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13038
Website

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

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


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

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

kompasdata
Member
Registered: 2017-07-10
Posts: 6

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
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13038
Website

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


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact