Title: PHP Error
Last modified: August 21, 2016

---

# PHP Error

 *  Resolved [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * (@eric1985)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/)
 * Getting this error in my log:
 * [16-Jun-2014 16:53:13 UTC] PHP Strict Standards: Only variables should be passed
   by reference in /wp-content/plugins/autoptimize/classes/autoptimizeStyles.php
   on line 234
 * This is what’s on line 234:
 * ‘justhead’ => $conf->get(‘autoptimize_js_justhead’),
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5013847)
 * thanks, I’ll check that out.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014056)
 * Do you only have that error on that specific line Eric, or also on other ones?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014057)
 * Ah, but the line you pasted is from autoptimizeScripts.php, but autoptimizeStyles.
   php, which the warning mentions, has this:
 *     ```
       $type=end(explode('.',$path));
       ```
   
 * can you change that into
 *     ```
       $explA=explode('.',$path);
       $type=end($explA);
       ```
   
 * and check if that silences that strict warning?
 * frank
 *  Thread Starter [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * (@eric1985)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014064)
 * Okay, made the update. I’ll take a look tomorrow and see if it fixed the error
   I was getting in my debug file.
 *  Thread Starter [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * (@eric1985)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014065)
 * Looks like that did it. I’m not seeing that warning anymore wit the addition.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014066)
 * Great, I’ll include this small fix in the next version.
 *  Thread Starter [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * (@eric1985)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014067)
 * Awesome, happy to help and see such a responsive developer! Thanks.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014085)
 * Afternoon Eric;
    I just pushed out a first test-version of AO 1.9.x, including
   the fix for the PHP notice you found. It would be great if you could [download and give it a spin](http://downloads.wordpress.org/plugin/autoptimize.zip)
   and report any issues here?
 * thanks,
    frank
 *  Thread Starter [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * (@eric1985)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014087)
 * Hi Frank, on the road this without easy access to see the error logs and such.
   I’ll load it in if I get a chance.

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

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 9 replies
 * 2 participants
 * Last reply from: [Eric Rosenberg](https://wordpress.org/support/users/eric1985/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/php-error-91/#post-5014087)
 * Status: resolved