1
Piodiwan
Module News and PHP 5.0.5
  • 2005/9/26 10:59

  • Piodiwan

  • Just popping in

  • Posts: 10

  • Since: 2005/9/1 1


Hi, I recently have made an update to the latest PHP 5.0.5 Version due to security reasons. It seems like there are stricter syntax checking rules.

This error happened:

"Only variables can be passed by reference"

at

xoops/modules/news/include/functions.php on line 294


This is a common "bug" ( actually it is no bug ) which happens at many upgraded sites.

line 294 has:

$content= $myts->undoHtmlSpecialChars(strip_tags($content));


I am not a php guru, can anybody give me a hint how to fix this?

Grtz Piodiwan

2
hervet
Re: Module News and PHP 5.0.5
  • 2005/10/3 17:33

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Replace the line with :
Quote:

$content= strip_tags($content);
$content= $myts->undoHtmlSpecialChars($content);

3
Piodiwan
Re: Module News and PHP 5.0.5
  • 2005/10/8 9:59

  • Piodiwan

  • Just popping in

  • Posts: 10

  • Since: 2005/9/1 1


Thanks a lot, that worked

4
hervet
Re: Module News and PHP 5.0.5
  • 2005/10/8 11:54

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


This modification is in the 1.42 version.

5
rtvME
Re: Module News and PHP 5.0.5
  • 2005/10/13 16:40

  • rtvME

  • Just popping in

  • Posts: 2

  • Since: 2005/10/13


HI,
i'm italian and my english is very zeroENGLISH!

this is my problem:
testing weblinks module on my linux box;
installation is OK

managment of category --> Add, Modify, and Delete Categories...

and I receive this error:

Only variables can be passed by reference in ..../xoops_form_extend.php on line 483

this is my line:

$this->sform->addElement( $this->make_text($caption, $name, $value), $required);

any ideas?

thanks a lot

6
hervet
Re: Module News and PHP 5.0.5
  • 2005/10/13 17:15

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


update your XOOPS version to the 2.0.13 version.

7
rtvME
Re: Module News and PHP 5.0.5
  • 2005/10/14 13:22

  • rtvME

  • Just popping in

  • Posts: 2

  • Since: 2005/10/13


tank you, weblinks is now ok (after upgrading following your suggest)
but now xcgallery don't work:

Fatal error: Cannot redeclare scandir() in /var/www/boulderside/html/modules/xcgal/admin/searchnew.php on line 314

when I try to make a batch for importing pictures...

do you have any ideas?

thanxx

Login

Who's Online

437 user(s) are online (303 user(s) are browsing Support Forums)


Members: 0


Guests: 437


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