Support » Plugin: WordPress Sphinx Search Plugin » PHP notices

  • I just installed Sphinx plugin v3.9.8, and now PHP is generating these notices:

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /var/www/courtdocs/public/wp-includes/functions.php on line 3457

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /var/www/courtdocs/public/wp-includes/functions.php on line 3457

    Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /var/www/courtdocs/public/wp-includes/functions.php on line 3457

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/courtdocs/public/wp-includes/functions.php on line 3570

    https://wordpress.org/plugins/wordpress-sphinx-plugin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just change in

    /wp-content/plugins/wordpress-sphinx-plugin/widgets/
    latest-searches.php
    search-sidebar.php
    top-searches.php

    $this->WP_Widget

    to

    parent::__construct

    or simply add to functions.php

    add_filter('deprecated_constructor_trigger_error', '__return_false');

    Plugin updated by developer “5 days ago”, but there are still issues with the code using deprecated stuff:

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxSearch has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/sphinxsearch.php on line 91

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxClient has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/php/sphinxapi.php on line 378

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxSearch_Config has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/php/sphinxsearch_config.php on line 32

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxSearch_FrontEnd has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/php/sphinxsearch_frontend.php on line 24

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SphinxSearch_Backend has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/php/sphinxsearch_backend.php on line 24

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LatestSearchesWidget has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/widgets/latest-searches.php on line 26

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; TopSearchesWidget has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/widgets/top-searches.php on line 26

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SearchSidebarWidget has a deprecated constructor in /home/arslan/public_html/dms-sage1/wp-content/plugins/wordpress-sphinx-plugin/widgets/search-sidebar.php on line 26

    Notice: has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/arslan/public_html/dms-sage1/wp-includes/functions.php on line 4020

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP notices’ is closed to new replies.