1
ponka
Re: Is
  • 2005/1/23 16:36

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


Thanks. the \\\\ is not a problem after all. Code-editor is not equivalent to a code debugger. That is a small lesson I learn.

tom



2
ponka
HTTP_POST_VARS is obsolete in php 5
  • 2005/1/23 16:31

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


Xoops v2:
install/index/php has the following line:
$language = $HTTP_POST_VARS['lang']

php v5 has choosen a new variable _POST to do what HTTP_POST_VARS does. Although set "register_long_arrays = On" in php.ini can allow you to use the old variables, it is really not preferred. I hope in the future version, XOOPS can update those predefined variables to php v5 format.



Tom
Taipei
January 23, 2005



3
ponka
Re: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)
  • 2005/1/22 19:33

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


I went back to where I have started and trace down from there. Php variables were not set 100% right in Appache's httpd.conf. Hence the MySQL library in php was not linked during run time and so mysql_connect() was not found and so blank page. Now I am back on track to install xoops.



4
ponka
Re: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)
  • 2005/1/21 16:04

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


No, thanks for trying to land on the source of problem.
The page that is supposed to show 'Table xoops_avatar
....' is blank. Its preceeding pages are fine.

The problem could be not in '\\\\' because '\\\\'
is also in older version of XOOPS (I never installed
any older version before. I just saw it in the archive.)
It had not bothered you or other so many XOOPS users.
I am going back to check mysql. It is my new suspect
at this moment.



5
ponka
Re: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)
  • 2005/1/21 15:04

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


Yes, it happened to me during installation.
Since I don't have xoops_config created (the page
is blank), I don't know how to debug mysqul the way
as FAQ had suggested. I traced the problem to where I
suppose the problem located - in '\\\\' in mainfile.dist.php.



6
ponka
Re: XOOPS 2.0.7.x to 2.0.9.2 disasters
  • 2005/1/21 14:48

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


Since the mainfile.dis.php is mentione, I would like to tell my experience. The following lines in mainfile.dist.php will be copied into mainfile.php:

if ( DIRECTORY_SEPARATOR != '/' ) {
// IIS6 may double the \ chars
$xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
}

The '\\\\' is not seen as syntatically correct by AceHTML. When IE 6 load mainfile.dist.php and mainfile.php, it shows a blank page. Is '\\\\' or its proximity in the codes a Php syntatic bug?



7
ponka
Is '\\\\' a PHP-syntax error? (referring to mainfile.dist.php)
  • 2005/1/21 14:29

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


I know that but part of mainfile.dist.php (including '\\\\'-line) is copied to mainfile.php. Installation process will load mainfile.php and hence the '\\\\-line' would cause installation to turn out a blank page.



8
ponka
Is '\\\\' a PHP-syntax error? (referring to mainfile.dist.php)
  • 2005/1/21 14:17

  • ponka

  • Just popping in

  • Posts: 8

  • Since: 2005/1/21


My platform:
PC behind a Router with firwall (corresponding ports open)
XP Pro (with Service Pack 2)
Apache 2.0.52 (by installer)
Php 5.0.3 (manually installed)
MySQL 4.1.9 (by installer)
Xoops 2.0.9.2

----- My suspecision:--------------
I open 'mainfile.dist.php' with an HTML/Php editor, AceHTML, which automatically highlights keywords and matches brackets and so on given that if the Php syntax is correct.

The line that contains '\\\\', is seen by AceHTML as not syntatically correct since the highlighting stops right before the first '\\\\':

if ( DIRECTORY_SEPARATOR != '/' ) {
// IIS6 may double the \ chars
$xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
}

Does IE 6 like its syntax?
No. IE 6 gives me a blank page when it loads mainfile.dist.php.

Doesn't that bother anyone? It does me because the popular and infamous 'got blank page' striks me right before INSTALLATION PROCESS creates xooops_avatar, xoops_....etc . Before that, my valuables are all set and saved correctly in mainfile.php. (cache...are all writable)

Thanks for any help that you can provide.

Tom
Taipei
Jan. 20, 2005




TopTop



Login

Who's Online

209 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits