The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Table of Contents Plus
Deprecation Warning - a note for next update (3 posts)

  1. anmari
    Posted 4 years ago #

    Interesting plugin. I just activated so not tested much yet. I develop/test with all debugs on. Thought you might like to know the plugin generates a warning.

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\web\wpbeta\wp\wp-content\plugins\table-of-contents-plus\toc.php on line 996


  2. Mike
    Plugin Author

    Posted 4 years ago #

    Thanks for raising this. I'll check it out but could you let me know the platform you're on? eg version of Apache/Nginx/other, PHP, MySQL? I noticed you're running this on Windows.

    I haven't come across this before but I've always used Linux and I have WP_DEBUG enabled with the debug bar. I also do not have allow_call_time_pass_reference enabled either.

  3. anmari
    Posted 4 years ago #

    G'day Michael

    It's a php version thing, not a wordpress thing,
    http://au.php.net/language.references.pass: says

    As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.

    However my local install is only on: Apache/2.2.6 (Win32) PHP/5.2.5, so perhaps message happens earlier?

    it is the ampersand in

    if ( $this->options['show_heirarchy'] ) $items = $this->build_hierarchy( &$matches );

    Google :

    and you''ll see it is quite a common thing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Table of Contents Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic