PHP 7 error 10x times

This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #11168
    sztamas
    sztamas
    Participant

    Dear Support!

    I would like to change my server to PHP 7 but your plugin showing 10 errors.
    Do you have a solution for this problem?

    Thank you in advance for your reply!

    B.R.

    Tamas

    • This topic was modified 5 years, 7 months ago by sztamas sztamas.
    Attachments:
    You must be logged in to view attached files.
    #11170
    sztamas
    sztamas
    Participant

    sorry, i forgot.
    The login page:

    https://urespolo.hu/belepes/

    #11173
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Tamas,

    From what I can see on the (partial) screenshot, the errors does not seem to be referring to ajax search pro plugin. If you want, you can copy/paste the error message here to confirm.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #11174
    sztamas
    sztamas
    Participant

    Sorry i attached a wron picture but here is the right one plus the error message:
    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/actions/class-asp-abstract.php
    ———————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————
    49 | ERROR | Visibility for magic method __sleep must be public. Found: protected
    ———————————————————————————————————————————

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/ajax/class-asp-abstract.php
    ——————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————————
    49 | ERROR | Visibility for magic method __sleep must be public. Found: protected
    ——————————————————————————————————————————

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-dbman.php
    —————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————————
    175 | ERROR | Visibility for magic method __sleep must be public. Found: private
    —————————————————————————————————————————

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-init.php
    ————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————–
    251 | ERROR | Visibility for magic method __sleep must be public. Found: private
    ————————————————————————————————————————–

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-instances.php
    ——————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ——————————————————————————————————————————-
    302 | ERROR | Visibility for magic method __sleep must be public. Found: private
    ——————————————————————————————————————————-

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/core/class-asp-manager.php
    —————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————————–
    373 | ERROR | Visibility for magic method __sleep must be public. Found: private
    —————————————————————————————————————————–

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/etc/synonyms.class.php
    ————————————————————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————-
    55 | ERROR | Visibility for magic method __sleep must be public. Found: private
    ————————————————————————————————————————-

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/etc/updates.class.php
    ————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————
    323 | ERROR | Visibility for magic method __sleep must be public. Found: private
    ————————————————————————————————————————

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/filters/class-asp-abstract.php
    ———————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————
    49 | ERROR | Visibility for magic method __sleep must be public. Found: protected
    ———————————————————————————————————————————

    FILE: /home/urespolo/public_html/gymammoth.com/wp-content/plugins/ajax-search-pro/includes/classes/shortcodes/class-asp-abstract.php
    ————————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    ————————————————————————————————————————————
    49 | ERROR | Visibility for magic method __sleep must be public. Found: protected
    ————————————————————————————————————————————

    Attachments:
    You must be logged in to view attached files.
    #11178
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    This should not cause any issues, as these magic methods are not used in this context of class abstractions. I have tested the plugin on a php7 environment, but these errors did not appear, as the functions were not used.

    I will not this as a possible bug, and change the magic method visibilities to pulbic for the next release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #11179
    sztamas
    sztamas
    Participant

    Thank you!

    Can i ask you when is gona be the new relase?

    We would like to change ASAP to PHP 7.

    I am waithing for your reply!

    B.R.

    Tamas

    #11193
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Tamas,

    I have just re-tested the plugin on a PHP 7 centOS machine, and it triggered no error messages mentioned above. You can change the PHP version safely, it should not be a problem.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.