Menu

mod_php upgrade causes harmless warnings

Help
2005-07-27
2012-10-11
  • Greg MacDonald

    Greg MacDonald - 2005-07-27

    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.

     
    • Greg MacDonald

      Greg MacDonald - 2005-07-27

      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.

       
    • Reini Urban

      Reini Urban - 2005-07-28

      yes, 1.3.11_rc3 and CVS is ref safe.

       
      • Kai Krakow

        Kai Krakow - 2005-09-16

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.