xoops forums

timgno

Module Developer
Posted on: 2011/1/8 0:23
timgno
timgno (Show more)
Module Developer
Posts: 1504
Since: 2007/6/21
#1

Article & Xoops 2.5.0

The article module can't work with xoops 2.5.0, blank page.
This is a debug rapport:
SconosciutoAssigning the return value of new by reference is deprecated nel file /modules/article/include/functions.php linea 117 
Attenzione
:include_once(/modules/article/include/functions.cache.php) [function.include-once]: failed to open streamNo such file or directory nel file /Frameworks/art/functions.ini.php linea 83 
Attenzione
: include_once() [function.include]:Failed opening '/modules/article/include/functions.cache.php' for inclusion (include_path='.;C:/php5/pear'nel file /Frameworks/art/functions.ini.php linea 83

rossb

Just popping in
Posted on: 2012/1/19 0:57
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#2

Re: Article & Xoops 2.5.0

Have also run into this:

Assigning the return value of new by reference is deprecated in file /modules/article/include/functions.php line 115:

$category_handler =& xoops_getModuleHandler("category", $GLOBALS["artdirname"]);
$criteria =& new CriteriaCompo("1", 1); <--- Line 115

Anybody fixed it yet?

Mamba

Moderator
Posted on: 2012/1/19 7:07
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#3

Re: Article & Xoops 2.5.0

Quote:
Assigning the return value of new by reference is deprecated in file

Just remove the ampersand "&" and you're good to go...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

rossb

Just popping in
Posted on: 2012/1/19 23:17
rossb
rossb (Show more)
Just popping in
Posts: 40
Since: 2006/8/28
#4

Re: Article & Xoops 2.5.0

Thanks;

This also works:

/etc/php.ini: change to "error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED"

ie; add: & ~E_DEPRECATED

This turns the problem from error to nag

FYI, I am using Xoops-2.54 and XOOPS2_mod_article_2.00.RC_phppp which is working, thus far on non-production site.