Support » Plugin: Wordpress File Upload » PHP 7 incompatibility check

  • Resolved cbhtcomputers

    (@cbhtcomputers)


    The plugin shows as incompatible with php 7 when checking with the PHP Compatibility Checker plugin. The error is “FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————
    48 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0”.

    I have been getting fata php errors with the plugin activated and it goes away when I deactivate. I’m on WordPress 5.03.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, the compatibility checker erroneously thinks that the plugin is incompatible with PHP 7.

    The PHP fatal errors are probably not related to this. What are the errors?

    Regards

    Nickolas

    Thread Starter cbhtcomputers

    (@cbhtcomputers)

    Thanks for the reply. I was getting the error when using php 5.6 and ran the compatibility checker before I updated to php 7.2. After I updated, the debug log was replaced, so I can’t give you the exact error, but it was something like “Fatal error. Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0.” It was right after a php memory allocation error.

    However, since I’ve actually changed to php 7.2, the plugin works fine.

    Plugin Author nickboss

    (@nickboss)

    Ok good, let me know if you have any other problems.

    Regards

    Nickolas

    Hi,

    Same thing for me.

    For you info,

    I ran the “PHP Compatibility Checker” plugin and here is the error, according to this plugin :

    48 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0

    Is it something to fix? Or not a real error?

    Thank you,

    Robert

    Thread Starter cbhtcomputers

    (@cbhtcomputers)

    Here
    Here’s what the plugin author said “the compatibility checker erroneously thinks that the plugin is incompatible with PHP 7.”

    Seems to be true as I am using the plugin without a fatal error.

    Bob

    Plugin Author nickboss

    (@nickboss)

    Hi, I confirm Bob, it is not a real error.

    Regards

    Nickolas

    Thank you, Nickolas and Bob, for your answer.

    Then I will use this plugin with “peace of mind” with PHP 7.2

    And a big thanks, Nickolas, for this nice and convenient plugin!

    Robert

    Plugin Author nickboss

    (@nickboss)

    Ok you are welcome

    Regards

    Nickolas

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP 7 incompatibility check’ is closed to new replies.