Menu

problems with PHP5

Help
2005-01-03
2012-10-11
  • summerstars

    summerstars - 2005-01-03

    I upgraded my php setup to 5.x and now find that I am unable to use phpwiki.

    I have followed the instructions regarding the changes to ErrorManager.php but am now getting

    Fatal error: Cannot re-assign $this in .../wiki/lib/WikiUserNew.php on line 548

    when I try to run php5-patch.php I get this error

    Fatal error: Cannot re-assign $this in /home/.sites/39/site9/web/wiki/lib/WikiUserNew.php on line 548

    and numerous repeats of

    Warning: fputs(): supplied argument is not a valid stream resource in /home/.sites/39/site9/web/wiki/php5-patch.php on line 26

    followed by

    Warning: fclose(): supplied argument is not a valid stream resource in /home/.sites/39/site9/web/wiki/php5-patch.php on line 29

    Warning: rename(lib/WikiUserNew.php,lib/WikiUserNew.php.php4) [function.rename]: Permission denied in /home/.sites/39/site9/web/wiki/php5-patch.php on line 33

    Warning: rename(lib/WikiUserNew.php.tmp,lib/WikiUserNew.php) [function.rename]: No such file or directory in /home/.sites/39/site9/web/wiki/php5-patch.php on line 34
    successfully patched lib/WikiUserNew.php, backup: lib/WikiUserNew.php.php4

    I am pretty sure this is a permissions problem, but as i am a relative newbie would like some guidance please

     
    • summerstars

      summerstars - 2005-01-04

      Well, I can now answer this part of my problems myself - the error messages generated where indeed caused by a permissions problem and were resolved by giving write access to the /lib/ directory.

      php5-patch.php has now been successfully run.

      HOWEVER - I now find that when i enter my wiki homepage at http://www.county-surnames.co.uk/wiki/index.php I get an almost blank page with no wiki links present.

      I am at a loss as to the cause of this - the databases all still exist and can be accessed via phpmyadmin - i have made no other changes recently other than the php upgrade. Can anyone help me resolve this problem and get my wiki up and running again please

       
    • summerstars

      summerstars - 2005-01-11

      I left this problem a few days and have now come back to it. I completely reinstalled phpwiki but still can't get it to work properly

      /wiki/index.php is now just giving me a page of php code with the following errors at the end

      I really would like to get this working again and would appreciate any help at all please

      Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1944 bytes) in /home/.sites/39/site9/web/wiki/lib/ErrorManager.php on line 273

      Notice: Use of undefined constant DEBUG - assumed 'DEBUG' in /home/.sites/39/site9/web/wiki/lib/DB_Session.php on line 187

       

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.