Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

PHP Compatibility Checker

  • romancervenan

    Hello, sometimes there is a need to upgrade PHP version on our webserver. Before that I want to be sure, that everything will work correctly. So, one of good tool for this purpose is plugin “PHP Compatibility Checker”, but I have a problem, when it tries to scan GP products:

    GP Premium 2.4.1
    Response status: 404
    Message: The audit requested does not exist.
    GeneratePress Child 0.1
    Response status: 400
    Message: Request has validation errors
    The audit project slug must be an alpha-numeric string, dashes are allowed.

    So, is there anything I can check/change to get this plugin works over GP products?
    Thanks.

  • Hi there,

    We’re not sure how the plugin checks for other plugins’ PHP compatibility, but we assure you that our plugins are compatible with any PHP versions currently supported by WordPress itself, as we strictly follow the WP Coding Standards.

  • romancervenan

    Thanks for reply, it is a good news.

    Anyway – here are some results from another plugins:

    WP Featherlight 1.3.4
    ok-5.6 ok-7.0 ok-7.1 ok-7.2 ok-7.3 ok-7.4 ok-8.0
    XML Sitemap Generator for Google 4.1.19
    ok-5.6 err-7.0 err-7.1 err-7.2 err-7.3 err-7.4 err-8.0
    Advanced Custom Fields 6.2.4
    err-5.6 err-7.0 ok-7.1 ok-7.2 ok-7.3 ok-7.4 ok-8.0
  • No problem!

    Perhaps it only works with free plugins hosted on wordpress.org?

  • romancervenan

    I don’t think so.
    For example GenerateBlocks has this result:

    GenerateBlocks 1.9.1
    err-5.6 err-7.0 ok-7.1 ok-7.2 ok-7.3 ok-7.4 ok-8.0
    
    PHP 7.0 incompatibilities:
    
    FILE: includes/pattern-library/class-libraries.php
    ------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 0 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------
     152 | ERROR | Nullable return types are not supported in PHP 7.0 or earlier. 
     350 | ERROR | void return type is not present in PHP version 7.0 or earlier  
    ------------------------------------------------------------------------------
    
    FILE: includes/pattern-library/class-pattern-library-rest.php
    ----------------------------------------------------------------------------
    FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES
    ----------------------------------------------------------------------------
     33 | ERROR | void return type is not present in PHP version 7.0 or earlier 
    ----------------------------------------------------------------------------
    
    FILE: includes/utils/class-dto.php
    -----------------------------------------------------------------------------
    FOUND 2 ERRORS AND 0 WARNINGS AFFECTING 2 LINES
    -----------------------------------------------------------------------------
     32 | ERROR | Nullable return types are not supported in PHP 7.0 or earlier. 
     75 | ERROR | void return type is not present in PHP version 7.0 or earlier  
    -----------------------------------------------------------------------------

    So, in my opinion, there is something what blocks PHPCompChecker from scanning GP Premium 2.4.1 or GeneratePress Child 0.1. But what, it is a question….

  • Hi there,

    GenerateBlocks is compatible with PHP Version 7.2 and above, as stated on the WordPress repository:

    https://wordpress.org/plugins/generateblocks/

    As a general advice you should be running more recent versions of PHP eg. 8.1 upwards, which GP and GB are compatible with.

  • romancervenan

    David, thanks for answer,
    there is no problem with GP products in general – they are all working perfectly.
    But the question was different – why PHP Compatibility Checker gives results for “GP Premium” error 404, for “GeneratePress Child” error 400, but with “GenerateBlocks” has no problem to check…
    Thanks.

  • Is it this plugin?

    https://wordpress.org/plugins/php-compatibility-checker/

    If thats the case then, that looks to have only audited themes and plugins that are on the WordPress Repository.
    So the GeneratePress Theme and GenerateBlocks ( free ) plugin would be audited.

    But the Child Theme and GeneratePress Premium and GenerateBlocks Pro are not in the WP Repository so will not have been audited.

    Thats a matter for the compatibilty checker plugin to address, not GP.

  • romancervenan

    I see!
    So it probably means, that this plugin does not check the sources directly on the website, but takes results from their result’s database – and shows them to me.
    If this is the case, then this plugin is useless.
    Thank you for the explanation.
    Regards,
    R.

  • Glad to be of help !

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.