Habari & PHP7

54 views
Skip to first unread message

galak

unread,
Jul 30, 2016, 7:07:33 PM7/30/16
to habari-users
Hi everyone,

i've been using habari for some time now and recently decided to upgrade to PHP7.
While most other php stuff behaved well, habari did not like the update.
A bit of debugging and digging around revealed a problem: Habari uses a class "Error" to do its own error-handling, which is called via autoload from multiple classes within habari. Unfortunately this collides with a new Error class in PHP7 (http://php.net/manual/en/class.error.php). As a result habari refuses to work.
I dont see an easy workaround for this, so if habari development is still alive maybe anyone could comment on this...

Cheers, galak

Konzertheld

unread,
Aug 24, 2016, 4:12:32 PM8/24/16
to habari-users
Hey there,

as you see, development is not that active, unfortunately. There is a work-in-progress next Habari in our GitHub repository that includes a major new feature - namespacing all classes. That will fix the conflict you mentioned. Unfortunately, a lot of other stuff is broken, as there are more heavy changes in the repository. You might want to check it out separately, but do not expect an easy upgrade.

It might be worth a try to pick all the namespace change commits from the work-in-progress and merge them to stable 0.9.x, but I have no idea how much work that would be.

Sorry for not having better news for you. If you are willing to experiment, feel free to ask more questions.

Christian

galak

unread,
Oct 6, 2016, 3:45:43 PM10/6/16
to habari-users
Hi Christian,

i am a bit surprised to be the first one taking on the upgrade, but the good news is: it is working basically - see system info attached below.
Now that I know habari is not dead I will switch to habari-dev and see what I can contribute to make this work finally.
So far i was only able to make my preexisting install work - setting up a new installation does not work yet..

Thanks so far,

galak


SYSTEMINFORMATIONEN
PHP-Version: 7.0.8-0ubuntu0.16.04.3
Server-Software: Apache/2.4.18 (Ubuntu)
Datenbank: mysql - 5.7.15-0ubuntu0.16.04.1
PHP-Erweiterungen: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imap, intl, json, exif, mcrypt, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
PHP-Konfigurationseinstellungen: safe_mode: Nicht festgelegt
    open_basedir: 0
    display_errors: 0
    session.gc_probability: 0
    session.gc_maxlifetime: 1440
    error_reporting: 32767
    memory_limit: 128M
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

WEBSITE-INFORMATIONEN
Habari-Version: 0.10-alpha
Habari API-Version: 4960
Habari Datenbank-Version: 5116
Aktives Theme: galak 1.0
System-Gebietsschema: de
Cache-Klasse: Habari\FileCache

PLUGIN-INFORMATIONEN
/system/plugins:
Core Blocks 1.0: /var/www/habari/system/plugins/coreblocks/coreblocks.plugin.php
Core Dash Modules 1.1: /var/www/habari/system/plugins/coredashmodules/coredashmodules.plugin.php
Habari Media Silo 1.0.1: /var/www/habari/system/plugins/habarisilo/habarisilo.plugin.php
Pingback 1.1: /var/www/habari/system/plugins/pingback/pingback.plugin.php
metaWeblog 1.1: /var/www/habari/system/plugins/metaweblog/metaweblog.plugin.php
RSS 2.0 1.2: /var/www/habari/system/plugins/rss/rss.plugin.php
Revs 1.3: /var/www/habari/system/plugins/revs/revs.plugin.php
Menus 1.0: /var/www/habari/system/plugins/menus/menus.plugin.php

/user/plugins:
TinyMCE 1.0: /var/www/habari/user/plugins/tinymce/tinymce.plugin.php
Common Blocks 1.0: /var/www/habari/user/plugins/commonblocks/commonblocks.plugin.php


Reply all
Reply to author
Forward
0 new messages