cannot add/edit smiley faces!

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
snoopy88
Registered User
Posts: 18
Joined: Mon Apr 12, 2004 1:21 pm

cannot add/edit smiley faces!

Post by snoopy88 » Sun Dec 25, 2005 3:20 pm

I am currently running a forum with phpBB 2.0.17 version. After several changes including server move, and export & import database...
Now, I cannot add/edit smiley faces...

Error message displayed as:
Fatal error: Call to undefined function: phpbb_ltrim() in /home/.fibber/mavvee/sillyu.net/forums/admin/admin_smilies.php on line 450

Can someone please help?!

Thanks a lot!
MERRY CHRISTMAS!
Snoopy

mtx
Registered User
Posts: 494
Joined: Fri Dec 17, 2004 5:42 pm

Post by mtx » Sun Dec 25, 2005 4:10 pm

Any mods? If yes, are there to many to reinstall? Why i ask is because after many upgrades by hand i ran into some issues and found it easier to just backup the files and DB, upload a fresh copy of the curent version and then reinstall the mods. After i checked everything it all worked great so i then deleted the backup of the files.
Sometimes in the upgrade one small number/letter/symbol mistake may not be noticed at first look. Over time it may cause a problem.

Just a though...

User avatar
Lumpy Burgertushie
Registered User
Posts: 66594
Joined: Mon May 02, 2005 3:11 am
Contact:

Post by Lumpy Burgertushie » Sun Dec 25, 2005 4:18 pm

this problem is because you have not properly updated. do the update again and be sure to run the install/update_to_latest.php file .


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Spinebuster
Registered User
Posts: 197
Joined: Sat Nov 27, 2004 6:48 am
Location: IN
Contact:

Post by Spinebuster » Sun Dec 25, 2005 4:49 pm

Fatal error: Call to undefined function: phpbb_ltrim() in /home/.fibber/mavvee/sillyu.net/forums/admin/admin_smilies.php on line 450


That error message means you are missing that function in your includes/functions.php file. That function is included in the update to phpbb 2.0.18.

Code: Select all

/**
* This function is a wrapper for ltrim, as charlist is only supported in php >= 4.1.0
* Added in phpBB 2.0.18
*/
function phpbb_ltrim($str, $charlist = false)
{
	if ($charlist === false)
	{
		return ltrim($str);
	}
	
	$php_version = explode('.', PHP_VERSION);

	// php version < 4.1.0
	if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1))
	{
		while ($str{0} == $charlist)
		{
			$str = substr($str, 1);
		}
	}
	else
	{
		$str = ltrim($str, $charlist);
	}

	return $str;
}

snoopy88
Registered User
Posts: 18
Joined: Mon Apr 12, 2004 1:21 pm

Thank you all

Post by snoopy88 » Wed Dec 28, 2005 7:40 pm

:wink: woow.. it really works now...
Thank you all for the help!

Greatly Appreciated!
..Snoopy88

buntyindia
Registered User
Posts: 69
Joined: Tue Mar 01, 2005 4:23 pm
Location: India
Contact:

Post by buntyindia » Fri Dec 29, 2006 6:11 am

thanks
=====================
Knowledge Is Power Share It

Locked

Return to “2.0.x Support Forum”