Okay
  Public Ticket #1296916
PHP 7
Closed

Comments

  •  3
    Matt2012 started the conversation

    Are you going to update the plugin to be php7 compatible? I know these are all from the PHPWord library but maybe you can get the authors to address?


    FILE: /wp-content/plugins/reportbuilder/lib/PHPWord/Element/Object.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
     26 | ERROR | 'object' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_CLASS)
    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /wp-content/plugins/reportbuilder/lib/PHPWord/Shared/PCLZip/pclzip.lib.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -------------------------------------------------------------------------------------------------------------------------
      215 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
     5347 | ERROR   | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
     5378 | ERROR   | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /wp-content/plugins/reportbuilder/lib/PHPWord/Writer/Word2007/Element/Object.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
     27 | ERROR | 'object' is a reserved keyword as of PHP version 7.0 and cannot be used to name a class, interface or trait or as part of a namespace (T_CLASS)
    --------------------------------------------------------------------------------------------------------------------------------------------------------------

  •  472
    Isidora replied

    Hi Matt2012,
    Thank you for your purchase.

    We are just using that library, so update it's not depend of us. You can check library on this link

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  3
    Matt2012 replied

    I get that makes it harder but it's still your plugin that causes the issue preventing the upgrade to PHP 7. So I think you do share the responsibility for getting your plugin compatible with the latest version of PHP. I think it makes more sense you reaching out to them then expecting your customers deal with it.

  • [deleted] replied

    Hi Matt2012,

    Report builder is fully compatible with PHP 7.0 +. We are using it on our sandbox website with PHP version 7.1. Where did you see these errors? In the server log or with some plugin that analyzes the errors?

  •  3
    Matt2012 replied

    So I think the issue will happen if you attempt to download a report as a word doc.

    These are reported by the wpengine compatibility checker. Which does sometimes report false positives but I think the issues below would stop the plugin working.

  • [deleted] replied

    Hi Matt2012,

    Are these errors stop plugin to work normally or not? I think these errors are just notices and can't cause plugin to stop to work.