Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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

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
Re: Fatal error: Only variables can be passed by reference
by leostotch on 2006/7/3 15:03:08

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


It's a problem specific to PHP 5.0.x. As the change they did broke some applications, the PHP team decided to fix this in 5.1, but didn't in 5.0 .

The fix is easy each time, but fixing one line doesn't mean you won't see the same problem reappear in another one (however: the way to fix it is the same each time). So I think you'd better report this to the devs so they can provide a real fix.

In the meantime, here's the idea:
le="color: #000000"><?php // userinfo.php (115) $xoopsTpl->assign('user_extrainfo', $myts->makeTareaData4Show([color=FF6666]$thisUser->getVar('bio', 'N')[/color],0,1,1)); // xoopsblock.php (152) return str_replace('{X_SITEURL}', XOOPS_URL.'/', $myts->displayTarea([color=FF6666]$this->getVar('content', 'N')[/color], 1, 1));

you have to put the result of 'getVar' in a temporary variable each time, changing those line to this:
le="color: #000000"><?php // userinfo.php (115) $tmp = $thisUser->getVar('bio', 'N'); $xoopsTpl->assign('user_extrainfo', $myts->makeTareaData4Show($tmp,0,1,1)); // xoopsblock.php (152) $tmp = $this->getVar('content', 'N'); return str_replace('{X_SITEURL}', XOOPS_URL.'/', $myts->displayTarea($tmp, 1, 1));


But again, there may be others (opening userinfo.php made me see the same syntax was used for 'user_signature' a few lines below ), so you'll have to do this each time
Re: Fatal error: Only variables can be passed by reference
by Walrick on 2006/7/3 14:34:10

You can see the error here:

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

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

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.
Re: Fatal error: Only variables can be passed by reference
by snow77 on 2006/7/3 10:12:01

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

Who's Online

75 user(s) are online (46 user(s) are browsing Support Forums)


Members: 0


Guests: 75


more...

Donat-O-Meter

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

Latest GitHub Commits