• When changing hosts to a server using php7, I noticed that this and other FAQ plugins are no longer working properly. Looking at php errors reveals that several functions used are depreciated. Are there plans (in the very near future) to update this plugin for php7 compatibility?

    Copy of PHP errors and warnings below:

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/FPDF/makefont/makefont.php
    ———————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————
    316 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    ———————————————————————————————————

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/FPDF/tutorial/tuto6.php
    ———————————————————————————————
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ———————————————————————————————
    11 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    ———————————————————————————————

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/FPDF/fpdf.php
    ————————————————————————————————————
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ————————————————————————————————————
    76 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    1055 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
    ————————————————————————————————————

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel/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: /tiny-project/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel/Shared/JAMA/examples/Stats.php
    —————————————————————————————————————————————————————
    FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
    —————————————————————————————————————————————————————
    1428 | WARNING | Method name “Base::__sumdiff” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1460 | WARNING | Method name “Base::__calcVariance” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1488 | WARNING | Method name “Base::__calcAbsoluteDeviation” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1513 | WARNING | Method name “Base::__sumabsdev” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    1545 | WARNING | Method name “Base::__format” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    —————————————————————————————————————————————————————

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
    ————————————————————————————————————-
    FOUND 9 ERRORS AFFECTING 9 LINES
    ————————————————————————————————————-
    63 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    64 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    108 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    142 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    166 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    211 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    236 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    274 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    276 | ERROR | Extension ‘sqlite’ is removed since PHP 5.4
    ————————————————————————————————————-

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel/Calculation/Functions.php
    ————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————-
    581 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
    ————————————————————————————————————————-

    FILE: /tiny-project/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel/Calculation/Database.php
    —————————————————————————————————————————————————————————–
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    —————————————————————————————————————————————————————————–
    67 | WARNING | Method name “PHPExcel_Calculation_Database::__fieldExtract” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    98 | WARNING | Method name “PHPExcel_Calculation_Database::__filter” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    —————————————————————————————————————————————————————————–

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Alek,

    Thank you for bringing this to our attention. Are all of the plugins giving the same type of errors?

    If you disable all plugins except ours, does it still give the same errors?

    If you downgrade to a lower version of PHP, does it get rid of all the errors?

    While we have done some testing with PHP7, it hasn’t been extensive. We hope to be able to do more in the near future and help root out errors like these.

    Thread Starter aleklisefski

    (@aleklisefski)

    It’s a live site, so I can not try to disable all other plugins, but I can tell you that this plugin was analyzed on its own using https://wordpress.org/plugins/php-compatibility-checker/ – which is where I copied the errors from.

    I also cannot try downgrading php — the host I’m on now only uses php7.

    Hi Alek,

    The majority – if not all – of the errors you referenced above pertain to external plugins that we use in our plugin for both the spreadsheet importing/exporting and the feature that allows for the creation of PDF files. Additionally, most of the errors are for features that aren’t even used by our plugin, like sqlite, but that must be included. We will check to see if new versions of those are available that might have improved PHP7 compatibility.

    In the meantime, these “errors” shouldn’t, in any way, stop the plugin from functioning as intended. If you don’t use that PHP compatibility checker, then it should all function correctly.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘FAQ Plugin not php 7 compatible – fix coming?’ is closed to new replies.