1
Sikandar
Failed writing constants?
  • 2005/5/26 16:42

  • Sikandar

  • Just popping in

  • Posts: 99

  • Since: 2005/5/19


During instalation I am getting these two error message just want to know if these are not critical?

File ../mainfile.php overwritten by ../mainfile.dist.php.
Constant XOOPS_ROOT_PATH written to /home/sikandar/portal/html.
Constant XOOPS_URL written to http://redhat.
Constant XOOPS_DB_TYPE written to mysql.
Constant XOOPS_DB_PREFIX written to 0sGsE.
Constant XOOPS_DB_HOST written to localhost.
Constant XOOPS_DB_USER written to portal.
Constant XOOPS_DB_PASS written to portal.
Constant XOOPS_DB_NAME written to portal_db.
Failed writing constant 0. <<<*****************
Constant XOOPS_GROUP_ADMIN written to 1.
Constant XOOPS_GROUP_USERS written to 2.
Constant XOOPS_GROUP_ANONYMOUS written to 3.
Failed writing constant 1. <<******************

Configuration data has been saved successfully to mainfile.php.

Thanks

2
Mithrandir
Re: Failed writing constants?

It's a bug in 2.1.1 - which is by no means labelled bug-free - and has been reported several times.

The CVS Nightly version available on the front page has this fixed.

3
PolySons
Re: Failed writing constants?
  • 2005/6/8 12:05

  • PolySons

  • Just popping in

  • Posts: 4

  • Since: 2005/6/8 1


Hello Mithrandir,

Thank you for the help. I've downloaded XOOPS today and tryed to install. I have the same error as above:
- Failed writing constant 0.
- Failed writing constant 1.

BUT: when I've made the definition of the admin (name, e-mail and 2x the password), I become a white blank page without any information. Than I'm trying to open my website and... i've receiving a lot of errors, like:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/343819fdd19cdecc55ef72cb7b8745af/web/kernel/module.php on line 1139

Fatal error: main(): Failed opening required '/home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/smarty/Smarty.class.php' (include_path='.:/opt/php/lib/php') in /home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/template.php on line 38
Notice [PHP]: Undefined index: enable_badips in file class/xoopssecurity.php line 210
Notice [PHP]: Undefined index: language in file include/common.php line 139
Notice [PHP]: Undefined index: use_ssl in file include/common.php line 163
Notice [PHP]: Undefined index: use_mysession in file include/common.php line 165
Warning [PHP]: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/343819fdd19cdecc55ef72cb7b8745af/web/kernel/profile.php:71) in file include/common.php line 178
Warning [PHP]: main(/home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/smarty/Smarty.class.php): failed to open stream: No such file or directory in file class/template.php line 38

Have someone an idea ?

You can try the website here: http://www.polysons.ch

Thank you in advance and... sorry for my poor english. My motherlanguage is french

Didier, PolySons.ch

4
m0nty
Re: Failed writing constants?
  • 2005/6/8 14:35

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


try adding this line to a .htaccess file located in your XOOPS root folder

php_value allow_call_time_pass_reference 1

5
PolySons
Re: Failed writing constants?
  • 2005/6/9 4:28

  • PolySons

  • Just popping in

  • Posts: 4

  • Since: 2005/6/8 1


Thank you mOnty,

the first errors are corrected with this modification. But y always have those errors:

Quote:

Fatal error: main(): Failed opening required '/home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/smarty/Smarty.class.php' (include_path='.:/opt/php/lib/php') in /home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/template.php on line 38
Notice [PHP]: Undefined index: enable_badips in file class/xoopssecurity.php line 210
Notice [PHP]: Undefined index: language in file include/common.php line 139
Notice [PHP]: Undefined index: use_ssl in file include/common.php line 163
Notice [PHP]: Undefined index: use_mysession in file include/common.php line 165
Warning [PHP]: main(/home/www/343819fdd19cdecc55ef72cb7b8745af/web/class/smarty/Smarty.class.php): failed to open stream: No such file or directory in file class/template.php line 38


Thank you if you find a solution !

Errors can be seen live at
http://www.polysons.ch

Didier, polysons.ch

6
PolySons
Re: Failed writing constants?
  • 2005/6/9 4:31

  • PolySons

  • Just popping in

  • Posts: 4

  • Since: 2005/6/8 1


I've now corrected the file name "smarty.class.php" in "Smarty.class.php". The errors above are corrected, but...

I have now those errors

Quote:

Notice [PHP]: Undefined index: enable_badips in file class/xoopssecurity.php line 210
Notice [PHP]: Undefined index: language in file include/common.php line 139
Notice [PHP]: Undefined index: use_ssl in file include/common.php line 163
Notice [PHP]: Undefined index: use_mysession in file include/common.php line 165
Notice [PHP]: Undefined index: theme_fromfile in file class/template.php line 71
Notice [PHP]: Undefined index: debug_mode in file include/common.php line 214
Warning [PHP]: in_array(): Wrong datatype for second argument in file include/common.php line 214
Notice [PHP]: Undefined index: closesite in file include/common.php line 219
Notice [PHP]: Undefined index: theme_set in file class/template.php line 319
Notice [PHP]: Undefined index: theme_set in file class/template.php line 319
Notice [PHP]: Undefined index: sitename in file class/template.php line 219
Notice [PHP]: Undefined index: slogan in file class/template.php line 220
Notice [PHP]: Undefined index: slogan in file class/template.php line 239
Notice [PHP]: Undefined index: theme_set in file include/functions.php line 381
Notice [PHP]: Undefined index: use_mysession in file include/functions.php line 393
Notice [PHP]: Undefined index: theme_set in file class/template.php line 329
Notice [PHP]: Undefined index: theme_set in file class/template.php line 330
Notice [PHP]: Undefined index: theme_set in file class/template.php line 331
Notice [PHP]: Undefined index: theme_set in file include/functions.php line 444
Notice [PHP]: Undefined index: theme_set in file class/template.php line 332
Notice [PHP]: Undefined index: theme_set in file include/functions.php line 444
Notice [PHP]: Undefined index: theme_set in file include/functions.php line 444
Notice [PHP]: Undefined index: theme_set in file class/template.php line 333
Notice [PHP]: Undefined index: theme_set in file include/functions.php line 444
Notice [PHP]: Undefined index: theme_set in file class/template.php line 348
Notice [PHP]: Undefined index: language in file class/template.php line 350
Warning [Xoops]: Smarty error: unable to read resource: "db:system_redirect.html" in file class/smarty/Smarty.class.php line 1084
Notice [PHP]: Undefined index: theme_set in file class/template.php line 387
Warning [Xoops]: Smarty error: unable to read resource: "/theme.html" in file class/smarty/Smarty.class.php line 1084
Notice [PHP]: Undefined index: debug_mode in file footer.php line 59
Warning [PHP]: in_array(): Wrong datatype for second argument in file footer.php line 59


I try a day again with 2.1.1 and than I will try with the 2.0.10...

7
PolySons
Re: Failed writing constants?
  • 2005/6/9 13:32

  • PolySons

  • Just popping in

  • Posts: 4

  • Since: 2005/6/8 1


OK. Fixed myself with the version 2.0.10 in french (download from frxoops).

To be corrected by the webmaster who install xoops:

[edit] /html/.htaccess

[add] at the end

php_value allow_call_time_pass_reference 1

[/edit] /html/.htaccess


[rename] /html/class/smarty/smarty.class.php

new name: Smarty.class.php

[/rename] /html/class/smarty/smarty.class.php


[rename] /html/class/smarty/smarty_compiler.class.php

new name: Smarty_Compiler.class.php

[/rename] /html/class/smarty/smarty_compiler.class.php


Remark to the developpers: why use big letters in file names ? My ftp software convert big letters into small letters and it give troubles. Can you please correct it for futures versions ???

Thanks a lot for all you help, it was nice

Login

Who's Online

350 user(s) are online (315 user(s) are browsing Support Forums)


Members: 1


Guests: 349


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits