Title: ERROR php 7
Last modified: September 1, 2016

---

# ERROR php 7

 *  Resolved [toto](https://wordpress.org/support/users/toto/)
 * (@toto)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-php-7-8/)
 * `Warning: Declaration of Shailan_Walker_Page::start_lvl(&$output, $depth) should
   be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /
   home/tyhru/public_html/testserv/wp-content/plugins/subpages-extended/class-shailan-
   walker-page.php on line 65`
 * I use php 7 how to fix it?
 * [https://wordpress.org/plugins/subpages-extended/](https://wordpress.org/plugins/subpages-extended/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [toto](https://wordpress.org/support/users/toto/)
 * (@toto)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-7674162)
 * I fixed them by this changes in class-shailan-walker-page.php
 * line 14:
    function start_lvl(&$output, $depth = 0, $args = Array()) {
 * line: 19
    function end_lvl(&$output, $depth = 0, $args = Array()) {
 * line: 24
    function start_el(&$output, $page, $depth = 0, $args = array(), $current_page
   = 0) {
 * line 62:
    function end_el(&$output, $page, $depth = 0, $args = Array()) {
 * you can update the plugin
 *  [Markus Olsson](https://wordpress.org/support/users/marol87/)
 * (@marol87)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-8209391)
 * This solves the errors.
 *  [Gary Schollmeier](https://wordpress.org/support/users/ardral/)
 * (@ardral)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-8743444)
 * Fixed for me too, thanks!
 *  [Louis Wolf](https://wordpress.org/support/users/wpresscursus/)
 * (@wpresscursus)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-8912496)
 * We’re still seeing these errors in 1.3.6 on PHP7:
 *     ```
       Warning: Declaration of Shailan_Walker_Page::start_lvl(&$output, $depth) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in wp-content\plugins\subpages-extended\class-shailan-walker-page.php on line 65
   
       Warning: Declaration of Shailan_Walker_Page::end_lvl(&$output, $depth) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in wp-content\plugins\subpages-extended\class-shailan-walker-page.php on line 65
   
       Warning: Declaration of Shailan_Walker_Page::start_el(&$output, $page, $depth, $args, $current_page) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in wp-content\plugins\subpages-extended\class-shailan-walker-page.php on line 65
   
       Warning: Declaration of Shailan_Walker_Page::end_el(&$output, $page, $depth) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in wp-content\plugins\subpages-extended\class-shailan-walker-page.php on line 65
       ```
   
 * Additionally the following deprecated message is thrown:
 * `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; shailan_SubpagesWidget has a deprecated constructor
   in wp-content\plugins\subpages-extended\subpages-widget.php on line 34`
    -  This reply was modified 9 years, 3 months ago by [Louis Wolf](https://wordpress.org/support/users/wpresscursus/).
      Reason: typo
 *  [kopfteam](https://wordpress.org/support/users/kopfteam/)
 * (@kopfteam)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-9424881)
 * The changes proposed by [@toto](https://wordpress.org/support/users/toto/) helped
   to fix the warnings, but now I get these:
 *     ```
       [20-Aug-2017 11:11:16 UTC] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; shailan_SubpagesWidget has a deprecated constructor in /var/www/vhosts/cable4.de/httpdocs/2017/wp-content/plugins/subpages-extended/subpages-widget.php on line 34
       [20-Aug-2017 11:11:16 UTC] PHP Notice:  Die verwendete Konstruktor-Methode für WP_Widget in shailan_SubpagesWidget ist seit Version 4.3.0 <strong>veraltet</strong>! Verwende stattdessen <pre>__construct()</pre>. in /var/www/vhosts/cable4.de/httpdocs/2017/wp-includes/functions.php on line 3894
       [20-Aug-2017 11:11:18 UTC] PHP Notice:  Die verwendete Konstruktor-Methode für WP_Widget in shailan_SubpagesWidget ist seit Version 4.3.0 <strong>veraltet</strong>! Verwende stattdessen <pre>__construct()</pre>. in /var/www/vhosts/cable4.de/httpdocs/2017/wp-includes/functions.php on line 3894
       ```
   
 *  Plugin Author [Metin Saylan](https://wordpress.org/support/users/mattsay/)
 * (@mattsay)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-9606434)
 * fixed those errors with version 1.5

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘ERROR php 7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subpages-extended.svg)
 * [Subpages Extended](https://wordpress.org/plugins/subpages-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subpages-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subpages-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/subpages-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subpages-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subpages-extended/reviews/)

 * 6 replies
 * 6 participants
 * Last reply from: [Metin Saylan](https://wordpress.org/support/users/mattsay/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/error-php-7-8/#post-9606434)
 * Status: resolved