Menu

Run phpwiki on php7 or migrate to an alternative?

nagelfar
2019-07-07
2019-08-01
  • nagelfar

    nagelfar - 2019-07-07

    Has anyone managed to get phpwiki to work with php7? My provider is deprecating php 5.x and I need to move asap.
    Currently I'm using a phpwiki 1.5.5 on mysql and I understand it is not going to be usable in php7. I tried to setup a new phpwiki with db=file but couldn't make it run at all (blank page), so no migration possible, either.
    Any suggestion?
    As an alternative, has anyone successfully migrated their phpwiki content to another, more current wiki?

     
    • Harold Hallikainen

      Has anyone managed to get phpwiki to work with php7? My provider is
      deprecating php 5.x and I need to move asap.
      Currently I'm using a phpwiki 1.5.5 on mysql and I understand it is not
      going to be usable in php7. I tried to setup a new phpwiki with db=file
      but couldn't make it run at all (blank page), so no migration possible,
      either.
      Any suggestion?
      As an alternative, has anyone successfully migrated their phpwiki content
      to another, more current wiki?

      I look forward to responses! I've been running phpwiki a LONG time at
      http://bh.hallikainen.org/ . It still runs, but am worried about it
      stopping. One thing on exports and imports to another wiki is that, I
      THINK, exports include only the wiki pages, not the uploads. My wiki is
      generally all uploads with links to them.

      Harold

      --
      FCC Rules Updated Daily at http://www.hallikainen.com
      Not sent from an iPhone.

       
      • Marc-Etienne Vargenau

        Hi,

        You can try using the code on the Subversion trunk.

        It mostly works with PHP 7, but there are still some issues, mostly on login and account creation, that I why I did not publish the 1.6.0 release yet.

        Please report the precise issues you can find, and patches if you are able.

        Thank you for your continued interest in Phpwiki.

        Best regards,

        Marc-Etienne Vargenau

        From: Harold Hallikainen hhallikainen@users.sourceforge.net
        Sent: Sunday, July 07, 2019 8:00 PM
        To: [phpwiki:discussion] 18928@discussion.phpwiki.p.re.sourceforge.net
        Subject: [phpwiki:discussion] Re: Run phpwiki on php7 or migrate to an alternative?

        Has anyone managed to get phpwiki to work with php7? My provider is
        deprecating php 5.x and I need to move asap.
        Currently I'm using a phpwiki 1.5.5 on mysql and I understand it is not
        going to be usable in php7. I tried to setup a new phpwiki with db=file
        but couldn't make it run at all (blank page), so no migration possible,
        either.
        Any suggestion?
        As an alternative, has anyone successfully migrated their phpwiki content
        to another, more current wiki?

        I look forward to responses! I've been running phpwiki a LONG time at
        http://bh.hallikainen.org/ . It still runs, but am worried about it
        stopping. One thing on exports and imports to another wiki is that, I
        THINK, exports include only the wiki pages, not the uploads. My wiki is
        generally all uploads with links to them.

        Harold

        --
        FCC Rules Updated Daily at http://www.hallikainen.com
        Not sent from an iPhone.


        Run phpwiki on php7 or migrate to an alternative?https://sourceforge.net/p/phpwiki/discussion/18928/thread/5a4e5b6a73/?limit=25#3d43/d353


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/phpwiki/discussion/18928/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         
  • nagelfar

    nagelfar - 2019-07-08

    I managed to setup a "file" version using the trunk source on php 7.3. It generally works aka I can open the site but it is really, really slow. Should mysql also work using the trunk version?
    Also I get a warning on a freshly created Homepage

    PHP Warning

    Warning: "The each() function is deprecated. This message will be suppressed on further calls"

    Notice: "Undefined index: relation"
    Also, at the bottom, Special Actions:
    Notice: "Undefined index: relation"
    I just tried to import my pages, generally it worked but got those warnings at the end
    Warning: "The each() function is deprecated. This message will be suppressed on further calls"

    Warning: "Declaration of WikiPlugin_WikiAdminSetAclSimple::setaclForm(&$header, $pagehash) should be compatible with WikiPlugin_WikiAdminSetAcl::setaclForm(&$header, $post_args, $pagehash)"

    Some of the pages imported fine, some have this a couple of times in the middle of the page
    ErrorManager: error while handling error:
    Warning: "A non-numeric value encountered"

     

    Last edit: nagelfar 2019-07-08
  • nagelfar

    nagelfar - 2019-07-09

    I managed to get it running on php 7.1. I did a fresh install of /trunk and copied the config.ini file from the "old" wiki to the new one. Had to change the DB connect string from mysql to mysqli to get it working.
    Can confirm that login doesn't work (gives me a blank screen).
    Also, there is an issue if you run on anything higher than php 7.1
    lib/DbSession/SQL.php:45 Error: ini_set(): Cannot set 'user' save handler by ini_set() or session_module_name()

     

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.