Title: Version 2.1.3 triggers PHP Warning
Last modified: April 4, 2022

---

# Version 2.1.3 triggers PHP Warning

 *  [dregad](https://wordpress.org/support/users/dregad/)
 * (@dregad)
 * [4 years ago](https://wordpress.org/support/topic/version-2-1-3-triggers-php-warning/)
 * I’m not exactly sure what “deprecation warning” version 2.1.3 was [trying to fix](https://plugins.trac.wordpress.org/changeset/2692050/)(
   I never noticed any problems with 2.1.2), but since I upgraded, I’m getting the
   following warning displayed on every page:
 * _Warning: call\_user\_func\_array() expects parameter 1 to be a valid callback,
   class ‘collapsArch’ does not have a method ‘enqueue\_scripts’ in …/wordpress/
   wp-includes/class-wp-hook.php on line 307_
 * Reverting to 2.1.2 fixes the problem.
 * See also [https://wordpress.org/support/topic/update-caused-the-problem-it-meant-to-fix/](https://wordpress.org/support/topic/update-caused-the-problem-it-meant-to-fix/)
   which describes the same issue, but IMO the proposed fix is not correct. I would
   suggest instead:
 *     ```
       Index: collapsArch.php
       ===================================================================
       --- collapsArch.php	(revision 2704189)
       +++ collapsArch.php	(working copy)
       @@ -39,7 +39,7 @@
        /****************/
        if (!is_admin()) {
        	wp_enqueue_script('jquery');
       -	add_action( 'wp_enqueue_scripts', array( 'collapsArch', 'enqueue_scripts' ) );
       +	add_action( 'wp_enqueue_scripts', array( 'collapsArch', 'add_scripts' ) );
        } else {
        	// call upgrade function if current version is lower than actual version
        	$dbversion = get_option('collapsArchVersion');
       ```
   
    -  This topic was modified 4 years ago by [dregad](https://wordpress.org/support/users/dregad/).

Viewing 1 replies (of 1 total)

 *  [dumaweb](https://wordpress.org/support/users/dumaweb/)
 * (@dumaweb)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/version-2-1-3-triggers-php-warning/#post-15578718)
 * I have the same problem

Viewing 1 replies (of 1 total)

The topic ‘Version 2.1.3 triggers PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/collapsing-archives/assets/icon-256x256.gif?rev=2550328)
 * [Collapsing Archives](https://wordpress.org/plugins/collapsing-archives/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-archives/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-archives/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-archives/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-archives/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-archives/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dumaweb](https://wordpress.org/support/users/dumaweb/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/version-2-1-3-triggers-php-warning/#post-15578718)
 * Status: not resolved