Menu

#306 Fatal error on upgrade

0.8.4
closed-fixed
nabber00
None
5
2014-10-29
2014-10-16
No

I get this error after upgrading to the new version:

Fatal error: Using $this when not in object context in /home/httpd/vhosts/amores.ch/httpdocs/scripts/classes/fileio.php on line 64

And it even has another instance of $this->method() in the same file. It is apparantly not allowed to call this method without instantinating the object.

Discussion

  • Nick Fankhauser

    Nick Fankhauser - 2014-10-16

    I am referring to version 0.8.4, sorry for posting in the wrong category!

     
  • Nick Fankhauser

    Nick Fankhauser - 2014-10-16

    And I fixed it by commenting out the block "this is to transition off of .gz stored files" around line 64. Now it works! And I don't have any of the content stored as gz. What is this needed for?

     
  • nabber00

    nabber00 - 2014-10-29
    • assigned_to: nabber00
    • Group: 0.7.0 and Prior --> 0.8.4
     
  • nabber00

    nabber00 - 2014-10-29

    I just checked in what should be a fix in svn r286. Lines 64+ should read like this:

    if (fileio::write_file(substr($filename, 0, strrpos($filename, '.')) . ".txt", $str) !== FALSE) {
    fileio::delete_file($filename);
    }

     
  • nabber00

    nabber00 - 2014-10-29
    • status: open --> closed-fixed
     

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.