Title: PHP error line 280
Last modified: August 3, 2017

---

# PHP error line 280

 *  Resolved [lauranl](https://wordpress.org/support/users/lauranl/)
 * (@lauranl)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/php-error-line-280/)
 * Hello!
    I have this warning into my log file: PHP Warning: Invalid argument supplied
   for foreach() in [info-about-website-obfuscated]/above-the-fold-optimization/
   includes/optimization.class.php on line 280 I think the issue is there from 4.8
   version. Thank you, Laura

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

 *  Plugin Author [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * (@optimalisatie)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-line-280/#post-9381139)
 * Hi Laura,
 * The error is not related to v4.8. It is most likely a conflict with a different
   plugin that unsets or overrides the WordPress script queue configuration.
 * \`php
    /** * Get script dependencies */ public function wp_script_dependencies(){
   global $wp_scripts; `
 * For some reason on your WordPress installation `$wp_scripts` is undefined.
 * Our team will investigate the issue. If you have any additional information that
   may lead to a solution please let us know!
 *  Thread Starter [lauranl](https://wordpress.org/support/users/lauranl/)
 * (@lauranl)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-line-280/#post-9381740)
 * Hello!
    Thank you very much for your reply. Yes I have another plugins for performance,
   I’ve deactivated these: Scripts to Footer and Google Webfont Optimizer. The warning
   is popping up from time to time now. I’ll review my server. I’m using gulp into
   my server (a VPS) to have custom css files for pages/posts. Best Regards, Laura
 *  Plugin Author [optimalisatie](https://wordpress.org/support/users/optimalisatie/)
 * (@optimalisatie)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-line-280/#post-9428813)
 * Hi lauranl,
 * Please let us know if you managed to resolve the issue.
 *  Thread Starter [lauranl](https://wordpress.org/support/users/lauranl/)
 * (@lauranl)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-line-280/#post-9428891)
 * Hi!
    I think it’s resolved because I’ve not seen the issue from past 15th August
   into logs. I’ve reactivated also the Scripts to footer plugin. Best regards, 
   Laura

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

The topic ‘PHP error line 280’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/above-the-fold-optimization_fcfbf6.
   svg)
 * [Page Speed Optimization](https://wordpress.org/plugins/above-the-fold-optimization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/above-the-fold-optimization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/above-the-fold-optimization/)
 * [Active Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/above-the-fold-optimization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/above-the-fold-optimization/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [lauranl](https://wordpress.org/support/users/lauranl/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-error-line-280/#post-9428891)
 * Status: resolved