Title: Switch from PHP 5.2 to 5.4 causing error
Last modified: August 21, 2016

---

# Switch from PHP 5.2 to 5.4 causing error

 *  Resolved [Grackle Design](https://wordpress.org/support/users/mikedark/)
 * (@mikedark)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/)
 * Hello,
 * My host will be forcing an upgrade on all users from PHP 5.2 to PHP 5.4. I’m 
   testing it out ahead of time and ran into some trouble. First, all core WP files
   and plugins are up to date. I also contacted my host support. They did amend 
   something in the PHP.ini file that was off, but it turns out that was unrelated
   to the issue, and they couldn’t help further.
 * What is happening is, everything on the site/theme looks fine, accept every page
   returns a ‘page not found’ error. Here below is a copy of the error log …
 *     ```
       [12-Jan-2014 16:29:09 UTC] PHP Warning:  Parameter 1 to ec3_filter_posts_where() expected to be a reference, value given in /public_html/wp-includes/plugin.php on line 256
       [12-Jan-2014 16:29:09 UTC] PHP Warning:  Parameter 1 to ec3_filter_posts_join() expected to be a reference, value given in /public_html/wp-includes/plugin.php on line 256
       [12-Jan-2014 16:29:09 UTC] PHP Warning:  Parameter 1 to ec3_filter_posts_groupby() expected to be a reference, value given in /public_html/wp-includes/plugin.php on line 256
       [12-Jan-2014 16:29:09 UTC] PHP Warning:  Parameter 1 to ec3_filter_posts_fields() expected to be a reference, value given in /public_html/wp-includes/plugin.php on line 256
       [12-Jan-2014 16:29:09 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM wp_posts  WHERE 1=1   ORDER BY wp_posts.post_date DESC' at line 1 for query SELECT    FROM wp_posts  WHERE 1=1   ORDER BY wp_posts.post_date DESC  made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
       ```
   
 * any advice appreciated!

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495432)
 * Deactivate your Event Calendar plugin.
 *  [zobia.ir](https://wordpress.org/support/users/shandizstocks/)
 * (@shandizstocks)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495433)
 * see this topic :
    [wordpress.org/support/topic/php53-and-fastcgi-on-iis-with-wordpress](http://wordpress.org/support/topic/php53-and-fastcgi-on-iis-with-wordpress)
 *  Thread Starter [Grackle Design](https://wordpress.org/support/users/mikedark/)
 * (@mikedark)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495458)
 * Thanks! You are correct, the Event Calendar is the source of the issue. Of course
   I should have checked each plugin one by one. Thanks for the heads up. I will
   look at the recommended patch in the link you posted shandiz. Please keep the
   thread open for now until I see if it works. thanks
 *  Thread Starter [Grackle Design](https://wordpress.org/support/users/mikedark/)
 * (@mikedark)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495491)
 * problem solved! thanks again both of you!
 *  Thread Starter [Grackle Design](https://wordpress.org/support/users/mikedark/)
 * (@mikedark)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495493)
 * oops, forgot to mark as resolved.

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

The topic ‘Switch from PHP 5.2 to 5.4 causing error’ is closed to new replies.

## Tags

 * [php 5.4](https://wordpress.org/support/topic-tag/php-5-4/)
 * [plugin.php](https://wordpress.org/support/topic-tag/plugin-php/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Grackle Design](https://wordpress.org/support/users/mikedark/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/switch-from-php-52-to-54-causing-error/#post-4495493)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
