1
Walrick
Re: Fatal error: Only variables can be passed by reference
  • 2006/7/3 18:57

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


Thanks!

I'll do three things.

1. Report this to the devs (I asume you mean through the "Report Core Bug" option?)

2. Try to get my hosting provier to upgrade to 5.1

If he doesn't or that doesn't solve the problem:

3. Do the fix myself manually.

But again: thanks a lot!

Walrick



2
Walrick
Re: Fatal error: Only variables can be passed by reference
  • 2006/7/3 14:34

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


You can see the error here:

http://www.walrick.net/xoops/userinfo.php?uid=1

Walrick



3
Walrick
Re: Fatal error: Only variables can be passed by reference
  • 2006/7/3 10:28

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


Quote:

snow77 wrote:
I'm seeing everything ok until now, could you give an URL to the problem?


The parts that have probems are either invisible or disabled or for registered users only. And I have to go now, so can't change anything atm. Plus the server seems to be offline or something. I'll have to get back to this in a couple of hours when I'm back.

Then I'll post an URL.



4
Walrick
Re: Fatal error: Only variables can be passed by reference
  • 2006/7/3 10:03

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


I run version 2.0.14.

Like I said it occurs on in the top page with a custum block, and when viewing user info (like clicking on "view account").

I could upload the files again, but I doubt that'll help. It doesn't sound like a corrupt file to me. It's a php bug, which leads to problems with some functions. If you do a search on this site, you'll find the problem more often, including some fixes for other modules. But not for these core parts I believe.

Walrick



5
Walrick
Fatal error: Only variables can be passed by reference
  • 2006/7/3 9:39

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


Hello,

I keep running into white pages which, with debugging turned on, return:

Quote:
Fatal error: Only variables can be passed by reference


Followed by some file name and line number.

This happens to me all the time when trying to view the userinfo:
Quote:
xoops/userinfo.php on line 115


It also happens on the top page with a custom block:
Quote:
xoops/class/xoopsblock.php on line 152


And with at least two modules: WF-Channels and Liaise

This seems to be a bug in PHP, see here. However, it doesn't seem likely that this will be fixed anytime soon. Note the status field on the linked page above.

I can work around this by not using the problematic modules and such, but although I can do well without WF-Channel the two problems with the XOOPS core (userinfo and custom block) are a nuisance.

So a more definite solution would be appreciated.

I use php 5.0.5. by the way. It's a hosted domain, so I can't change anything about that.
The problem seems to be independent of theme choice.

Let me know if you need any more information. And of course a fix would be highly appreciated. Even a fix I can do myself, as long it comes with clear instructions (like replace ‘this’ with ‘that’ in that file on that line), as I don’t know much about php.

Thanks in advance for any help.

Regards,

Walrick
Netherlands



6
Walrick
Re: cant view user profiles
  • 2006/6/30 18:25

  • Walrick

  • Just popping in

  • Posts: 6

  • Since: 2006/6/30


Quote:

jensclas wrote:
Care to share what it was that solved your problem? Thanks


Hello,

I would sure like to know that too. As I have the same problem. In debug mode I get:

Fatal errorOnly variables can be passed by reference in /home/walrick/public_html/xoops/userinfo.php on line 115


XOOPS Version: 2.0.14
Module Name/Version: System
PHP Version: 5.0.5
MySQL Version: 4.0.25-standard
Web Server Software: Apache version 1.3.36 (Unix)
Operating System: Linux
Theme you are using: not relevant (happened with default and now with fydarkblack)
Custom template: No

A full description of the issue:

userinfo.php gives a blank page
user.php forwards to userinfo.php and therefore also a blank page.

In case the following info is relevant as well:

All errors (0queries (12blocks (6extra (0timers (5
ErrorsQueries
SELECT 
FROM xoops_config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
SELECT sess_data FROM xoops_session WHERE sess_id 
'a3d2b34db967894e021dc7a81364fd0a'
SELECT FROM xoops_users WHERE uid=1
SELECT 
FROM xoops_config WHERE (conf_modid '0' AND conf_catid '2'ORDER BY conf_order ASC
SELECT 
FROM xoops_config WHERE (conf_modid '0' AND conf_catid '3'ORDER BY conf_order ASC
SELECT DISTINCT gperm_itemid FROM xoops_group_permission WHERE gperm_name 
'block_read' AND gperm_modid AND gperm_groupid IN (1,2)
SELECT b.* FROM xoops_newblocks bxoops_block_module_link m WHERE m.block_id=b.bid AND b.isactive=AND b.visible=AND m.module_id=AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17ORDER BY b.weight,b.bid
SELECT COUNT
(*) FROM xoops_priv_msgs WHERE (read_msg '0' AND to_userid '1')
SELECT FROM xoops_modules WHERE (hasmain '1' AND isactive '1' AND weight '0'ORDER BY weight ASCmid ASC
SELECT 
FROM xoops_group_permission WHERE (gperm_name 'module_read' AND gperm_modid '1' AND (gperm_groupid '1' OR gperm_groupid '2'))
SELECT gperm_itemid FROM xoops_group_permission WHERE gperm_modid='' AND gperm_name='myalbum_global' AND (gperm_groupid IN (1,2))
SELECT u.uidu.unameu.emailu.user_viewemailu.user_avatarg.name AS groupname FROM xoops_groups_users_link l LEFT JOIN xoops_users u ON l.uid=u.uid LEFT JOIN xoops_groups g ON l.groupid=g.groupid WHERE g.group_type='Admin' ORDER BY l.groupidu.uid
Total
12 queriesBlocks
User Menu
No Cache
Login
No Cache
Search
No Cache
Main Menu
No Cache
Site Info
No Cache
Themes
No Cache
Total
6 blocksExtraTimers
XOOPS took 0.825 seconds to load
.
XOOPS Boot took 0.301 seconds to load.
Module init took 0.085 seconds to load.
XOOPS output init took 0.415 seconds to load.
Module display took 0.024 seconds to load.



The rest of XOOPS works fine so far. Just installed today. So haven't done to much yet.

Thanks for any help.

Regards,

Walrick
Netherlands




TopTop



Login

Who's Online

130 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 130


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