Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › PHP 7 error 10x times
- This topic has 6 replies, 2 voices, and was last updated 9 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 6, 2016 at 12:01 pm #11168
sztamas
ParticipantDear 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 9 years, 6 months ago by
sztamas.
December 6, 2016 at 12:03 pm #11170sztamas
Participantsorry, i forgot.
The login page:December 6, 2016 at 12:06 pm #11173Ernest Marcinko
KeymasterHi 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.
December 6, 2016 at 12:08 pm #11174sztamas
ParticipantSorry 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
————————————————————————————————————————————December 6, 2016 at 12:17 pm #11178Ernest Marcinko
KeymasterHi,
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.
December 6, 2016 at 12:19 pm #11179sztamas
ParticipantThank 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
December 7, 2016 at 1:35 pm #11193Ernest Marcinko
KeymasterHi 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.
-
This topic was modified 9 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.