Author Topic: PHP7 mibew 2.3.0 Internal Server Error 500 [SOLVED]  (Read 6337 times)

0 Members and 1 Guest are viewing this topic.

Alexey

  • Full Member
  • ***
  • Posts: 14
    • Айкидо для всех
PHP7 mibew 2.3.0 Internal Server Error 500 [SOLVED]
« on: November 14, 2017, 01:14:12 AM »
Hello!
I upgraded PHP to version 7 and got an error:
[Tue Nov 14 10:37:59.717775 2017] [:error] [pid 8643] [client 91.210.4.1:42898] PHP Fatal error:  Cannot use Handlebars\\String as String because 'String' is a special class name in /var/www
/localhost/htdocs/mibew/vendor/justblackbird/handlebars.php-helpers/src/Comparison/IfAnyHelper.php on line 15

 php -v
PHP 7.0.25 (cli) (built: Nov 13 2017 13:23:14) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.25, Copyright (c) 1999-2017, by Zend Technologies

Please, help me run mibew on PHP 7
On PHP5, everything worked without errors.


« Last Edit: November 15, 2017, 07:12:16 AM by Alexey »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: PHP7 mibew 2.3.0 Internal Server Error 500
« Reply #1 on: November 14, 2017, 08:00:06 AM »
Mibew Messenger 2.3.0 is PHP 7 compatible.

Let me quote you something from the README.txt:

Quote
3. Delete all items in your Mibew Messenger directory on the server.
4. Unpack the archive with the official distrubition in that directory.

I suppose that you've been used Mibew Messenger 2.1.2 or older on PHP5, then switched to Mibew Messenger 2.3.0 on PHP7, but keeped vendor/ directory.

Alexey

  • Full Member
  • ***
  • Posts: 14
    • Айкидо для всех
Re: PHP7 mibew 2.3.0 Internal Server Error 500
« Reply #2 on: November 15, 2017, 07:11:47 AM »
Indeed, I used the old version of mibew in PHP5. After upgrading to php7, I got an error.

Then I updated mibew (removed the old mibew directory and unpacked the new mibew distribution).

In the logs I saw an old error from Mibew Messenger 2.1.2 and created this topic.

The problem was that not all files were removed from the old Mibew Messenger 2.1.2

Thank you, problem solved.