Page 1 of 1

Parse error in header.inc.php

Posted: Tue Jan 03, 2006 12:02 pm
by phpmasm
Jcart | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


[color=darkblue]I've installed several php-apps on xampp running on W2K.
I often get a parse error like: [/color][color=darkred]Parse error: parse error, unexpected '}' in D:\Prg\xampp\htdocs\phpgroupware\header.inc.php on line 25[/color][color=darkblue].
Up to know unable to find the reason why nor a remedy.
I've search the web, manual and boards.
Is there someone who can explain this or put me on the right track?

Thanks for your trouble, 
Marius

The error location is always the line[/color] [color=darkred]/* phpGroupWare domain-specific db settings */{domains}[/color]

	........

Code: Select all

define('PHPGW_SERVER_ROOT','D:\\Prg\\xampp\\htdocs\\phpgroupware');
	define('PHPGW_INCLUDE_ROOT','D:\\Prg\\xampp\\htdocs\\phpgroupware');
	$GLOBALS['phpgw_info']['server']['header_admin_password'] = 'xxxxxxxx';

	[color=darkred]/* phpGroupWare domain-specific db settings */{domains}[/color]
	/*
	** If you want to have your domains in a select box, change to True
	** If not, users will have to login as user@domain
	** Note: This is only for virtual domain support, default domain users can login only using
	** there loginid.
	*/
	$GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = False;
........


Jcart | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Will do next time, tks. Marius

Posted: Tue Jan 03, 2006 12:16 pm
by Charles256
this is a php code problem.. anyways..
{domains}
why the heck did you open up and close a bracket there? shouldn't that be inside your comments? because i don't see how that's valid PHP code..of course I could be wrong...delete that..error should go away..

Posted: Tue Jan 03, 2006 12:18 pm
by John Cartwright
Moved to PHP-Code.

Posted: Tue Jan 03, 2006 12:20 pm
by phpmasm
Charles,

I've have not tampered with the contents of header.inc.php.
The lines you see are generated by the php-package.
In this case it's phpGroupWare.

Marius

Posted: Tue Jan 03, 2006 12:21 pm
by Charles256
ooo.gimme a sec then,let me re-read :-D I'll edit this post in about a minute :-D

okay: translated German...
That is your problem, you must the file with the Headeradmin of Setup
work on and then downloaden or store.
You copied simply the header.inc.php.template after header.inc.php,
that cannot be done in such a way - or you must exactly know which you make; -)

Delete simply again header.inc.php, place the original
header.inc.php.template again ago and calls again setup

Ralf
never set it up but I think he's telling you to delete header.inc.php and then put the template version back in and run the setup agian.

try that yet?
edit-
also of interest
I had to do a little more work to get this to work. Hope this helps.
INSTALLATION:
Installed fine and created database without any problems.
Followed all of the standard installation instructions and created admin login.
FIRST LOGIN:
Must be phpgroupware/admin/index.php
Do not login using:
phpgroupware\index.php or phpgroupware\home.php or phpgroupware\login.php
Set the Configuration and Header settings per the installation instructions. Be sure to creat admin user and password.
Next login as admin user using the normal path phpgroupware/home.php
IMPORTANT: login user format as adminuser@mydomainname.com and use the password you set in the configuration setup.
DO NOT LOGIN USING ONLY THE ADMIN USER NAME. IT WON'T WORK. YOU'LL GET A BLANK SCREEN.

Once you are logged in go to Site Configuration:

Would you like to automaticaly load new langfiles (at login-time) ?: No
Use cookies to pass sessionid: No Yes
Then log out and delete all cookies.
36 hours later I am able to login as admin and create 2 additional users.
There are much much much more detailed settings that were also changed in MSQL using MYSQL Admin including turning off default language "latin1." Turn this off. Also checked "use old password"
Also Tweeked my.ini and php.ini files
I wish I could remember everything I had to do to get this to work. And I don't know what really fixed it.

I'd be more than happy to send configuration settings of any files you might want to look at.

Again hope this helps.

I am running:
PHP5
Shocked Shocked
Windows 2000 Advanced Server IIS5
phpMyAdmin-2.6.3-pl1

Quest for solution for 'Parse error in header.inc.php'

Posted: Tue Jan 03, 2006 12:38 pm
by phpmasm
Thanks,

First Quote: tried, same generated (faulty) header.inc.php.
Second Quote: will try now, I'll be back .......

Also the Second Quote is not working. Nor de Admin or the Setup directory is for starting purposes.
The only standard installed option to create a header.inc.php file is the index in the base directory at first call.

This problem comes in many variaties on different boards but until now I've found no solution mentioned.

Will keep searching, but if anyone has a cure (or hint) he's welcome to post it here.

Marius