1
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

2
jdseymour
Re: :roll: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)

From my understanding mainfile.dist.php is sort of like a mainfile temp file used just during installation.

That file is also not intended to be loaded by the browser.

3
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.

4
jdseymour
Re: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)

Did this actually happen to you? I have installed XOOPS 3 or four times with no problems like this.

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
jdseymour
Re: Is '////' a PHP-syntax error? (referring to mainfile.dist.php)

I am sorry if I seem hard headed.

OK, you started the XOOPS installation, correct?

At what point did you receive the blank page?

And are you sure (since you are using xp) that in the folder properties of mainfile.php, uploads, template_c, and the cache folder all have read only unchecked?

Not bashing, just trying to get a clear picture to help you.

7
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.

8
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.

9
m0nty
Re: Is
  • 2005/1/22 21:37

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ponka i answered your question here:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=29804&viewmode=flat&order=ASC&start=30#forumpost132834

i think i got the reason right but i'm not a coder..

10
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

Login

Who's Online

103 user(s) are online (57 user(s) are browsing Support Forums)


Members: 0


Guests: 103


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