MyBB Community Forums

Full Version: php 7.1.0 issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
We'll probably discover more 7.1-related issues, but that particular one was fixed in https://github.com/mybb/mybb/pull/2565 (will be included in 1.8.9).
@devilshakerz - it would be better to track all issues with php 7.1 release - we should make mybb 1.8.9 build fully compatible with php 7.1
Unfortunately we don't have a (mostly) complete list of issues as the code's age makes it difficult to run automated scans; while some fixes will be included in 1.8.9, it should be safe to run 1.8.10 on PHP 7.1 as users running the latest stack usually help keeping track of compatibility problems. Most of those are easy to fix, so instead of downgrading PHP you can also apply compatibility patches as they appear on GitHub.

We'll be creating/reopening Issues on GH depending on the error type - currently we've experienced two of those:
https://github.com/mybb/mybb/issues/2517 Invalid values used with operators expecting numbers raise E_WARNING on PHP 7.1
https://github.com/mybb/mybb/issues/2560 Empty index operator throws fatal error on PHP 7.1 when used on strings
Yeah, I agree. So at least try to fix this one https://github.com/mybb/mybb/issues/2517 in v1.8.9 and wait for users bug reports.
Hello,

My production forum is still under MyBB version 1.8.7, and under PHP 7.1, this is not without posing problems.

Without doing anything more than going from PHP 5.3 to PHP 7.1 I have logs that let think that class_parser is problem with this version PHP 7.1

Here are the Logs

[Tue Jan 03 00:25:41.270514 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function split() in /home/mobilsa1/domains/mobilsam.com/public_html/inc/class_parser.php:1345
[Tue Jan 03 00:25:41.270570 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: Stack trace:
[Tue Jan 03 00:25:41.270577 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #0 /home/mobilsa1/domains/mobilsam.com/public_html/inc/class_parser.php(1417): postParser->mycode_parse_video('dailymotion', 'http://www.dail...')
[Tue Jan 03 00:25:41.270583 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #1 [internal function]: postParser->mycode_parse_video_callback(Array)
[Tue Jan 03 00:25:41.270588 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #2 /home/mobilsa1/domains/mobilsam.com/public_html/inc/class_parser.php(496): preg_replace_callback('#\\\\[video=(.*?)\\\\...', Array, 'Bon bah c'est d...')
[Tue Jan 03 00:25:41.270594 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #3 /home/mobilsa1/domains/mobilsam.com/public_html/inc/class_parser.php(177): postParser->parse_mycode('Bon bah c'est d...')
[Tue Jan 03 00:25:41.270600 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #4 /home/mobilsa1/domains/mobilsam.com/public_html/portal.php(610): postParser->parse_message('Bon bah c'est d...', Array)
[Tue Jan 03 00:25:41.270605 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr: #5 {main}
[Tue Jan 03 00:25:41.270610 2017] [fcgid:warn] [pid 30381:tid 115157717214976] [client 66.249.66.253:33603] mod_fcgid: stderr:   thrown in /home/mobilsa1/domains/mobilsam.com/public_html/inc/class_parser.php on line 1345

I have browsed> https://github.com/mybb/mybb/milestone/15 but I have not found any answers.

I know it should update to MyBB 1.8.9 but I'm afraid to have even more problems.

Thank you in advance for your support and your answers.

Best regards,
The split() function is removed in 7.0.

I've looked at the current code for inc/class_parser.php and we don't seem to be calling the split function. Can you make sure you have the current version of this file? The current version looks like this: https://github.com/mybb/mybb/blob/featur...parser.php
Hello Euan T,

Thank you for your quick response.

I followed your advice and replaced the class_parser.php with the one you indicated to me.

I wait a few hours, in order to make a correct and reliable return, the logs should be now, without this error.

I understand that PHP 7.1 raises a lot of problem, which will have to be resolved one by one, and I think of the plugin you develop regularly to probably deliver, a version 2.0 Responsive of MyBB that I think a lot of expect .

I will not fail to make this return.

Best regards,

EDIT : My return

I have a problem with the new file class_parser that I replaced, is that in the messages, once published, I no longer have the quotes displayed, nor the MyCode of the php, code, etc. ? I handed the old one and it works ...
If you have mybb 1.8.7, replace class_parser with this one https://github.com/mybb/mybb/blob/mybb_1...parser.php
Thank you very much @Matslom,

I replace it immediately, I will return, wishing that it solves my problem.

Best regards,

First return, continued browsing all over the forum, it seems that I no longer have any problem with the file class_parser.php, which caused errors reported in the file Logs server

Best regards,
Pages: 1 2