Title: Errors with php 5.4
Last modified: August 20, 2016

---

# Errors with php 5.4

 *  [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/errors-with-php-54/)
 * PHP Warning: Invalid argument supplied for foreach() in /…/wp-content/plugins/
   lite-cache/plugin.php on line 249
 * [http://wordpress.org/extend/plugins/lite-cache/](http://wordpress.org/extend/plugins/lite-cache/)

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/errors-with-php-54/#post-3605606)
 * Thank you, I’ll fix it ASAP.
 * Stefano.
 *  Thread Starter [ram108](https://wordpress.org/support/users/ram108/)
 * (@ram108)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/errors-with-php-54/#post-3605610)
 * Stefano, thank you for update.
 * I wrote about incorrect .htaccess in previous topic also. The problem is if WordPress
   installed in subdir (not in the root, but accessible from the root) .htaccess
   will be wrong:
 *     ```
       RewriteCond /.../jyoti.ru/SUBDIR/wp-content/cache/lite-cache%{REQUEST_URI}/index.html -f
       RewriteRule ^(.*) wp-content/cache/lite-cache/$1/index.html [L]
       ```
   
 * last line should be
 *     ```
       RewriteRule ^(.*) /SUBDIR/wp-content/cache/lite-cache/$1/index.html [L]
       ```
   

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

The topic ‘Errors with php 5.4’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [ram108](https://wordpress.org/support/users/ram108/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/errors-with-php-54/#post-3605610)
 * Status: not resolved