Show Sidebar Log in
  • Home
  • Blog
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
  • Documentation
    • Installation Guide
    • Frequently Asked Questions
    • Plugins
    • Themes
    • CBOX Theme Developer Guide
      • Introduction – The CBOX Child Theme
      • Customizing CSS
      • Changing Theme templates and using hooks
      • Modifying the Theme Dashboard
      • Advanced Customisations
  • Community
    • People
    • Tutorials
    • Support
    • Developers
  • Help
    • Frequently Asked Questions
    • Help & Support Forum
    • CBOX Developers Forum
  • Demo
  • Download

Group Admins

  • Profile picture of Scott Voth

Help & Support

Public Group active 11 hours, 22 minutes ago

This group will focus on Commons In A Box support issues.

Wanted to check on some PHP sniffer errors.

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Troy Welch Troy Welch 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 4, 2017 at 12:05 pm #6176
    Profile photo of Troy Welch
    Troy Welch
    Participant

    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>

    January 5, 2017 at 11:38 am #6177
    Profile photo of Ray
    Ray
    Keymaster

    Thanks for looking into PHP7 compatibility with CBOX, Troy.

    I’ve run cbox-theme and buddypress-docs through a script called php7cc and only cbox-theme has major errors.

    I’ve opened an issue for cbox-theme here:
    https://github.com/cuny-academic-commons/cbox-theme/issues/253

    buddypress-docs has a potential warning with the following:

    File: wp-content\plugins\buddypress-docs\includes\addon-folders.php     
    > Line 859: Possible array element creation during by-reference assignment                                     
        $ref[$folder->ID] =& $tree[$folder->ID];                                                                   
    > Line 878: Possible array element creation during by-reference assignment                                     
        $ref[$folder->ID] =& $ref[$folder->post_parent]->children[$folder->ID];

    I’ll let @cbox_admin comment on that.

    January 5, 2017 at 12:05 pm #6178
    Profile photo of Troy Welch
    Troy Welch
    Participant

    Thanks for the follow-up Ray. We are using the CBox theme with our install and buddypress-docs also figures fairly prominently in our use cases.

    We are looking to move our project to a production server for testing next week for an end of the month launch. Would you suggest we hang back with PHP 5.6 for the time being? We did build on our dev server with 5.6, it might be more prudent.

     

    Thanks again,

    Troy

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Group logo of Help & Support
  • Home
  • Forum
  • Announcements
  • Members 274

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of Help & Support
    Help & Support
    274 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    69 members
  • Group logo of CBOX Developers
    CBOX Developers
    28 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    11 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Support Forums
    • Feedback
  • Log in
  • Register