I've recently had to upgrade php and php_mod because of another package dependency (subversion 1.2), but now my phpwiki site is spewing forth tons of warnings at the bottom of all the pages. But it otherwise runs fine. I was wondering if there was a way to suppress these warnings. I've already tried to set DEBUG=0 in the phpwiki's config.ini file with no luck.
I'm using version 1.3.10 of phpwiki, php-4.4.0, and mod_php-4.4.0-r1.
Here are the warnings I'm seeing:
lib/DB_Session.php:541: Notice[8]: Only variables should be assigned by reference
lib/DB_Session.php:551: Notice[8]: Only variables should be assigned by reference
lib/Template.php:120: Notice[8]: Only variables should be assigned by reference
lib/Template.php:122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/PagePerm.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):330: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
Any ideas? Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've recently had to upgrade php and php_mod because of another package dependency (subversion 1.2), but now my phpwiki site is spewing forth tons of warnings at the bottom of all the pages. But it otherwise runs fine. I was wondering if there was a way to suppress these warnings. I've already tried to set DEBUG=0 in the phpwiki's config.ini file with no luck.
I'm using version 1.3.10 of phpwiki, php-4.4.0, and mod_php-4.4.0-r1.
Here are the warnings I'm seeing:
lib/DB_Session.php:541: Notice[8]: Only variables should be assigned by reference
lib/DB_Session.php:551: Notice[8]: Only variables should be assigned by reference
lib/Template.php:120: Notice[8]: Only variables should be assigned by reference
lib/Template.php:122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/PagePerm.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):330: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference
Any ideas? Thanks in advance.
I found a solution on the gentoo forums:
http://forums.gentoo.org/viewtopic-p-2605881.html#2605881
By adding error_reporting(0); to function WikiRequest () in main.php I was able to suppress the warnings.
yes, 1.3.11_rc3 and CVS is ref safe.
Well, I am using CVS tag release_1_3_11 and it still displays the notices... :-/
I've inserted the following code at the location gtm256 mentioned:
error_reporting (E_ALL ^ E_NOTICES);
This suppresses the notices but let's other errors still report which could be interesting when there is really a problem.