Hi, Happy New Year to the Commons in a Box Team
We are moving our development install to a production server and in preparation for a move to PHP 7 I ran the PHP Compatibility Checker plugin.
There were several warnings and a small few errors. I just wanted to run the errors past you guys to see if they are anything to worry about. The last error looks like it might be a missing ; but my php is ‘developing’ and I don’t know your code base as well as you guys. (obviously)
<p class=”p1″>Name: BuddyPress Docs</p>
<p class=”p1″>FILE: /var/www/html/wp-content/plugins/buddypress-docs/includes/query-builder.php</p>
<p class=”p1″>————————————————————————————————————————-</p>
<p class=”p1″>FOUND 1 ERROR AFFECTING 1 LINE</p>
<p class=”p1″>————————————————————————————————————————-</p>
<p class=”p1″>521 | ERROR | ‘clone’ is a reserved keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)</p>
<p class=”p1″>————————————————————————————————————————-</p>
<p class=”p1″>Name: Commons In A Box</p>
<p class=”p1″>FILE: /var/www/html/wp-content/themes/cbox-theme/engine/ICE/lib/textile/classTextile.php</p>
<p class=”p1″>—————————————————————————————————————–</p>
<p class=”p1″>FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES</p>
<p class=”p1″>—————————————————————————————————————–</p>
<p class=”p1″><span class=”Apple-converted-space”> </span>364 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.</p>
<p class=”p1″><span class=”Apple-converted-space”> </span>617 | ERROR <span class=”Apple-converted-space”> </span>| Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead</p>
<p class=”p1″>1531 | ERROR <span class=”Apple-converted-space”> </span>| preg_replace() – /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0</p>
<p class=”p1″>—————————————————————————————————————–</p>
<p class=”p1″></p>
<p class=”p1″>FILE: /var/www/html/wp-content/themes/cbox-theme/engine/includes/buddypress/bp-widgets.php</p>
<p class=”p1″>——————————————————————————————</p>
<p class=”p1″>FOUND 1 ERROR AFFECTING 1 LINE</p>
<p class=”p1″>——————————————————————————————</p>
<p class=”p1″>43 | ERROR | Using a variable argument on break or continue is forbidden since PHP 5.4</p>
<hr />
<p class=”p1″></p>
<p class=”p1″>Thanks,</p>
<p class=”p1″>Troy</p>