Followu Post on Setup.php Errors.

3 views
Skip to first unread message

Azher

unread,
Mar 31, 2007, 1:25:07 AM3/31/07
to Openmailadmin

Hi,

I just sent an email regarding setup.php giving error : Parse error:
syntax error, unexpected '=', expecting '(' in /usr/www/oma/setup.php
on line 85

My system is Debian Etch with following packages. Plz help solving
this problem.

-Azher

----------------------------------------------
wm:/usr/www/pa# dpkg -l |grep php
ii libapache-mod-php4 4.4.4-8+etch1
server-side, HTML-embedded scripting languag
ii libapache2-mod-php4 4.4.4-8+etch1
server-side, HTML-embedded scripting languag
ii php-db 1.7.6-2
PHP PEAR Database Abstraction Layer
ii php-http 1.3.6-2
PHP PEAR module for HTTP related stuff
ii php-mail 1.1.6-2
PHP PEAR module for sending email
ii php-net-smtp 1.2.6-2
PHP PEAR module implementing SMTP protocol
ii php-net-socket 1.0.6-2
PHP PEAR Network Socket Interface module
ii php-pear 5.2.0-8+etch1
PEAR - PHP Extension and Application Reposit
ii php-xml-parser 1.2.6-2
PHP PEAR module for parsing XML
ii php4-cli 4.4.4-8+etch1
command-line interpreter for the php4 script
ii php4-common 4.4.4-8+etch1
Common files for packages built from the php
ii php4-ldap 4.4.4-8+etch1
LDAP module for php4
ii php4-mysql 4.4.4-8+etch1
MySQL module for php4
ii php4-odbc 4.4.4-8+etch1
ODBC module for php4
ii php4-pear 4.4.4-8+etch1
PHP Extension and Application Repository (tr
ii php5-cli 5.2.0-8+etch1
command-line interpreter for the php5 script
ii php5-common 5.2.0-8+etch1
Common files for packages built from the php
----------------------
wm:/usr/www/pa# dpkg -l |grep mysql
ii libdbd-mysql-perl 3.0008-1
A Perl5 database interface to the MySQL data
ii libmysqlclient15-dev 5.0.32-7etch1
mysql database development files
ii libmysqlclient15off 5.0.32-7etch1
mysql database client library
ii libpam-mysql 0.6.2-1
PAM module allowing authentication from a My
ii mysql-client-5.0 5.0.32-7etch1
mysql database client binaries
ii mysql-common 5.0.32-7etch1
mysql database common files (e.g. /etc/mysql
ii mysql-server-4.1 5.0.32-7etch1
mysql database server (transitional package)
ii mysql-server-5.0 5.0.32-7etch1
mysql database server binaries
ii php4-mysql 4.4.4-8+etch1
MySQL module for php4
------------------------

W-Mark Kubacki

unread,
Apr 2, 2007, 11:50:26 AM4/2/07
to openma...@googlegroups.com
Azher schrieb:

>
> I just sent an email regarding setup.php giving error : Parse error:
> syntax error, unexpected '=', expecting '(' in /usr/www/oma/setup.php
> on line 85
>

To be honest, I don't know what caused that error at your installation.
In line 85 is only a trivial assignment, which has been there for
months, and the statements the lines above it are not new, too.

Can it be that you use PHP4?

-- Mark

Azher Amin

unread,
Apr 5, 2007, 1:22:38 AM4/5/07
to openma...@googlegroups.com
Hi,

I just checked my installations again and found that infact i had php4,
while this software requires php5. Now I able to see the setup.php page.

However after entering data in Page 2, when i click 'proceed to step-3'
it gives the following error:

*Fatal error*: Call to undefined function txt() in
*/usr/www/oma/inc/lib/User.php* on line *23*

Can you plz guide what this problem relates to.

Thnx
-Azher

W-Mark Kubacki wrote:


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Lluis Gili

unread,
Mar 13, 2008, 8:29:02 PM3/13/08
to Azher Amin, openma...@googlegroups.com
Hi, I was getting same error.
That's because using postgresql database backend, postgres can't
create the tables and instalation fails, you can solve this by editing
the db schema files in "inc/database/" and changing all boolean
columns definitions ( L ) like this:


inc/database/domains.adodb.txt: neu L TRUE DEFAULT TRUE
NOTNULL
inc/database/user.adodb.txt: active L TRUE DEFAULT FALSE
NOTNULL,
inc/database/virtual.adodb.txt: active L TRUE DEFAULT TRUE
NOTNULL,
inc/database/virtual.adodb.txt: neu L TRUE DEFAULT TRUE
NOTNULL
inc/database/virtual_regexp.adodb.txt: active L TRUE
DEFAULT FALSE NOTNULL,
inc/database/virtual_regexp.adodb.txt: neu L TRUE
DEFAULT TRUE NOTNULL

after these changes, postgres can create correctly the tables and you
can install openmailadmin

hope that helps!



On 5 Abr 2007, 06:22, Azher Amin <az...@niit.edu.pk> wrote:
> Hi,
>
> I just checked my installations again and found that infact i had php4,
> while this software requires php5. Now I able to see the setup.php page.
>
> However after entering data in Page 2, when i click 'proceed to step-3'
> it gives the following error:
>
> *Fatal error*:Calltoundefinedfunctiontxt() in

W-Mark Kubacki

unread,
Mar 19, 2008, 6:06:38 AM3/19/08
to openma...@googlegroups.com
Lluis Gili wrote:
> Hi, I was getting same error.
> That's because using postgresql database backend, postgres can't
> create the tables and instalation fails, you can solve this by editing
> the db schema files in "inc/database/" and changing all boolean
> columns definitions ( L ) like this:
> [...]

That's interesting. What PostgreSQL, ADOdb (and ADOdb-ext?) version do you use?

I am going to either write a patch or, if it is a bug in ADOdb, puzzling about
an efficient woraround.

> after these changes, postgres can create correctly the tables and you
> can install openmailadmin
>

> On 5 Abr 2007, 06:22, Azher Amin <az...@niit.edu.pk> wrote:

>> [...]


>> However after entering data in Page 2, when i click 'proceed to step-3'
>> it gives the following error:
>>
>> *Fatal error*:Calltoundefinedfunctiontxt() in
>> */usr/www/oma/inc/lib/User.php* on line *23*

>> [...]

Lluis Gili

unread,
May 5, 2008, 10:40:39 AM5/5/08
to Openmailadmin
sorry for not responding soon,
versions, on Debian 4.0, are:

postgresql-8.1 8.1.11-0etch1
libphp-adodb 4.93a-1.1
> smime.p7s
> 5kBBaixa
Reply all
Reply to author
Forward
0 new messages