Solved

Call to undefined function bindtextdomain()

Posted on 2009-07-03
3
4,067 Views
Last Modified: 2013-12-13
i am getting this on one of the php pages
Fatal error: Call to undefined function bindtextdomain() in /var/www/vhosts/domain.com/httpdocs/lib/util.php on line 57

i tried to install php-gettext, but i get error on

apt-get install php-gettext

The following packages have unmet dependencies:
  php-gettext: Depends: php4 (>= 4.2.0) but it is not going to be installed or
                        php5 but it is not going to be installed

php4 4.3.10-18 is already installed on the server and also php5 5.2.0-0.dotdeb.3

the server also has plesk installed.

Why is apt giving this error?

0
Comment
Question by:krisdigitx
3 Comments
 
LVL 17

Expert Comment

by:jasonsbytes
ID: 24772450
Do you have more than one install of PHP and maybe when you run it, it is seeing the older version?
0
 
LVL 5

Expert Comment

by:Opalelement
ID: 24773650
Are you sure you sent both parameters to the function?

string bindtextdomain ( string $domain , string $directory )
0
 

Accepted Solution

by:
krisdigitx earned 0 total points
ID: 25848143
upgrading php worked
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now