1
Grifter
Errors/Warnings with PHPDEBUG
  • 2005/10/31 3:44

  • Grifter

  • Just popping in

  • Posts: 6

  • Since: 2004/3/11


Hi all,

I've been using XOOPS for a while now and after several upgrade paths (it's at v2.2.3a) I noticed a few problems. I turned out PHPDEBUG and the following shows up on every page (of course it varies from page to page but they are all similar):

Notice [PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/profilefield.php line 505
Warning 
[PHP]: fopen(): open_basedir restriction in effect. File(/home/ecltech/public_html/cache/profilefields.tmp) is not within the allowed path(s): (/home/ecltech:/usr/lib/php:/usr/local/lib/php:/tmp) in file /backup/ecltech/public_html/kernel/profilefield.php line 510
Warning 
[PHP]: fopen(/home/ecltech/public_html/cache/profilefields.tmp): failed to open stream: Operation not permitted in file /backup/ecltech/public_html/kernel/profilefield.php line 510
Warning 
[PHP]: fputs(): supplied argument is not a valid stream resource in file /backup/ecltech/public_html/kernel/profilefield.php line 511
Warning 
[PHP]: fclose(): supplied argument is not a valid stream resource in file /backup/ecltech/public_html/kernel/profilefield.php line 512
Warning 
[PHP]: implode(): Bad arguments. in file /backup/ecltech/public_html/kernel/profilefield.php line 322
Notice 
[PHP]: unserialize(): Argument is not a string in file /backup/ecltech/public_html/kernel/profilefield.php line 323
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/profile.php line 94
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/common.php line 223
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/config.php line 239
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/config.php line 239
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 279
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 280
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 375
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/groupperm.php line 229
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/modules/system/admin/preferences/main.php line 39
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/modules/system/admin/preferences/main.php line 45
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/module.php line 1447
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/modules/system/admin/preferences/main.php line 53
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/groupperm.php line 229
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/cp_functions.php line 41
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/cp_functions.php line 50
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/groupperm.php line 229
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/cp_functions.php line 58
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/cp_functions.php line 90
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/modules/smartfaq/xoops_version.php line 310
Notice 
[PHP]: Only variable references should be returned by reference in file /backup/ecltech/public_html/kernel/module.php line 172
Notice 
[PHP]: Only variable references should be returned by reference in file /backup/ecltech/public_html/kernel/module.php line 172

Is this something I need to worry about? Possible misconfiguration on my end?

Another issue I have is when I go to View or Edit account when I'm logged in I get the following:

Fatal error: Call to a member function on a non-object in /backup/ecltech/public_html/class/theme.php on line 499
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/profilefield.php line 505
Warning 
[PHP]: fopen(): open_basedir restriction in effect. File(/home/ecltech/public_html/cache/profilefields.tmp) is not within the allowed path(s): (/home/ecltech:/usr/lib/php:/usr/local/lib/php:/tmp) in file /backup/ecltech/public_html/kernel/profilefield.php line 510
Warning 
[PHP]: fopen(/home/ecltech/public_html/cache/profilefields.tmp): failed to open stream: Operation not permitted in file /backup/ecltech/public_html/kernel/profilefield.php line 510
Warning 
[PHP]: fputs(): supplied argument is not a valid stream resource in file /backup/ecltech/public_html/kernel/profilefield.php line 511
Warning 
[PHP]: fclose(): supplied argument is not a valid stream resource in file /backup/ecltech/public_html/kernel/profilefield.php line 512
Warning 
[PHP]: implode(): Bad arguments. in file /backup/ecltech/public_html/kernel/profilefield.php line 322
Notice 
[PHP]: unserialize(): Argument is not a string in file /backup/ecltech/public_html/kernel/profilefield.php line 323
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/profile.php line 94
Notice 
[PHP]: Only variable references should be returned by reference in file /backup/ecltech/public_html/kernel/module.php line 1349
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/include/common.php line 223
Notice 
[PHP]: Only variables should be assigned by reference in file /backup/ecltech/public_html/kernel/config.php line 239
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 279
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 280
Notice 
[PHP]: Undefined index: theme in file /backup/ecltech/public_html/kernel/object.php line 375

I looked at the theme.php file on line 499 but don't know much about php to figure this out on my own.

Any help would be greatly appreciated.

Thank you.

-Mike

2
m0nty
Re: Errors/Warnings with PHPDEBUG
  • 2005/10/31 4:01

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


what php version? MySQL version? sever version (apache or IIS) etc

open_basedir is an issue, try running without it and turn safemode off (if it's a local pc)

maybe user account can't write to the tmp folders defined in php.ini.. not too sure myself tho..

but seems like a server config issue.

3
Grifter
Re: Errors/Warnings with PHPDEBUG
  • 2005/10/31 4:10

  • Grifter

  • Just popping in

  • Posts: 6

  • Since: 2004/3/11


php version: 4.4.0
apache: 1.3.33
mysql: 4.1.13

This is on a hosted environment so I don't have access to the config files (php.ini for example).

I verified the /cache directory is world writeable (777). How do I go about running without "open_basedir" assuming that's what you meant by your suggestion.

Thanks.

-Mike

4
Shine
Re: Errors/Warnings with PHPDEBUG
  • 2005/10/31 7:07

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


It looks the same which happens when running XOOPS 2.0.13.1/2 on a php4.4 environment.
See topic: https://xoops.org/modules/newbb/viewtopic.php?topic_id=42779&forum=20&post_id=187356#forumpost187356

Grtz., Shine

5
Grifter
Re: Errors/Warnings with PHPDEBUG
  • 2005/11/6 21:22

  • Grifter

  • Just popping in

  • Posts: 6

  • Since: 2004/3/11


It turned out that my hosted environment changed the absolute path for the website, which was causing some weird issues.

Thanks for all the help.