Title: Not compatible with php 5.5
Last modified: August 22, 2016

---

# Not compatible with php 5.5

 *  [nentwistle@comcast.net](https://wordpress.org/support/users/nentwistlecomcastnet/)
 * (@nentwistlecomcastnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/)
 * Hi,
 * I love your plugin. I am hosting with 1and1.com. Recently, they sent out a company
   email. The email said:
 * _You are using version 5.2 of the scripting language PHP. This version is neither
   up to date, nor has it been developed any further by the PHP community since 
   January 2011. We therefore recommend to update to the current PHP version 5.5._
 * Should you decide to keep using PHP 5.2, we can offer you the 1&1 PHP5.2 Extended
   Support. With this option, we will from now on also provide other versions that
   are no longer supported by the community. As this involves efforts on our part,
   we are charging this service as of November 2014 with $1.67 a month.
 * So I changed my site which is [http://nancyentwistle.com/webi2000/midterm/](http://nancyentwistle.com/webi2000/midterm/)
   to php 5.5 and I got a parse error message. I changed it back to php 5.2 and 
   they error messages went away. I am keeping with php 5.2 until Oct. 31.
 * Are you aware of this compatibility issue?
 * Thanks,
    Nancy
 * Nancy Entwistle
    [nentwistle@comcast.net](https://wordpress.org/support/topic/not-compatible-with-php-55-56/nentwistle@comcast.net?output_format=md)
 * [https://wordpress.org/plugins/widget-logic/](https://wordpress.org/plugins/widget-logic/)

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

 *  Thread Starter [nentwistle@comcast.net](https://wordpress.org/support/users/nentwistlecomcastnet/)
 * (@nentwistlecomcastnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345604)
 * I noticed that I posted the version of the widget logic which is version 0.57.
   I am using wordpress version 3.9. [http://nancyentwistle.com/webi2000/midterm/](http://nancyentwistle.com/webi2000/midterm/)
 * Thanks,
    Nancy
 * Nancy Entwistle
    [nentwistle@comcast.net](https://wordpress.org/support/topic/not-compatible-with-php-55-56/nentwistle@comcast.net?output_format=md)
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345787)
 * I am not. The most up-to-date version i’ve got access to is 5.4.32, and that’s
   fine.
 * can you post details of the parse error? (It will be some time before I can get
   around to finding or setting up a 5.5 install. Though it is time to update some
   local LAMP stuff)
 *  Thread Starter [nentwistle@comcast.net](https://wordpress.org/support/users/nentwistlecomcastnet/)
 * (@nentwistlecomcastnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345830)
 * I updated it to version 5.4. I also got the same error message with php 5.5.
 * Here is the error message.
 * Parse error: syntax error, unexpected ”46 ));’ (T_ENCAPSED_AND_WHITESPACE), expecting‘)’
   in /homepages/23/d201802654/htdocs/nancynew/webi2000/midterm/wp-content/plugins/
   widget-logic/widget_logic.php(286) : eval()’d code on line 1
 * You can also view this at my url: [http://nancyentwistle.com/webi2000/midterm/?p=88](http://nancyentwistle.com/webi2000/midterm/?p=88)
 * As I wrote in a previous email it works fine in php 5.2. Could it be something
   else? When I talked to 1and1.com which is my hosting company, they said the site
   had not been hacked.
 * Thanks,
    Nancy
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345841)
 * that error is specific to some widget logic code you have in one of your widgets,
   rather than anything in the PHP version. Or that’s what it looks like from what
   you say. (it could be a combination of both – something in the widget logic code
   that doesn’t work in that version of PHP.)
 * try blanking each widget in turn until the error goes. Or you could “export options”
   to save everything and blank them one at a time – as it could be more than one!
 *  [Wordinerdi](https://wordpress.org/support/users/wordinerdi/)
 * (@wordinerdi)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345954)
 * Got the same problem here (1and1 hosting + update to php 5.5 as well).
 * Before updating to php 5.5., everything went smoothly.
 * After updating, I keep getting the same error messages as the thread starter.
 * So I’m guessing it is related to php 5.5 as I haven’t change widget logic code
   afterwards.
 *  [Wordinerdi](https://wordpress.org/support/users/wordinerdi/)
 * (@wordinerdi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345958)
 * Is there no solution?
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345963)
 * the error
 * `Parse error: syntax error, unexpected ''46 ));' (T_ENCAPSED_AND_WHITESPACE`
 * and its like are typical of syntax mistakes in widget logic entered into a widget
   logic field. I’ve installed a MAMP with PHP5.5 and done a few trivial tests, 
   but not found any generic problem yet. It could be the installation has in some
   way corrupted the widget logic to make that happen, but it doesn’t look like 
   it’s down to either PHP5.5 or the widget logic plugin itself.
 * In the admin backend you should be able to clear out all the widget logic and
   start again. Save out your config first with the “Widget Logic options” export
   button if you like. In fact if you post that I might be able to spot the widget
   logic that’s giving you trouble.
 * Here’s a simple test site exported config as an example
 *     ```
       [START=WIDGET LOGIC OPTIONS]
       search-2	"is_home()"
       recent-posts-2	"false"
       [STOP=WIDGET LOGIC OPTIONS]
       ```
   
 *  [Wordinerdi](https://wordpress.org/support/users/wordinerdi/)
 * (@wordinerdi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345964)
 * Thanks for your answer. I have cleared out all the custom widget logic code and
   started again. Unfortunately without a positive result. I’m still getting these
   2 error messages at several spots on my website:
 * Parse error: syntax error, unexpected ”5 ));’ (T_ENCAPSED_AND_WHITESPACE) in /
   wp-content/plugins/widget-logic/widget_logic.php(286) : eval()’d code on line
   1
 * Parse error: syntax error, unexpected ”6 ));’ /wp-content/plugins/widget-logic/
   widget_logic.php(286) : eval()’d code on line 1
 * I followed your advice and exported the widget logic config:
 *     ```
       [START=WIDGET LOGIC OPTIONS]
       text-2	"is_home()"
       text-6	"is_home()"
       text-7	"is_category( \\'4\\' )"
       text-8	"is_category( \\'2\\' )"
       text-9	"is_category( \\'7\\' )"
       text-10	"is_category( \\'5 )"
       text-11	"is_category( \\'6 )"
       [STOP=WIDGET LOGIC OPTIONS]
       ```
   
 * Really looking forward to your help!! I’m desperate now as my website is totally
   broken… Loving your work – and my website depends on it 😉
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345965)
 * You have problems in text-10 and text-11, both have the parameter missing a quote
 * `is_category( '5 )`
 * is causing
 * `Parse error: syntax error, unexpected ''5 ));' (T_ENCAPSED_AND_WHITESPACE)`
 * and ditto for the next one.
 * easy. the mystery is how updating PHP alone could have removed the quotes from
   the middle of those two bits of text
 *  [Wordinerdi](https://wordpress.org/support/users/wordinerdi/)
 * (@wordinerdi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345966)
 * You are a real hero, thank you so much! That is/was the solution.
 * A real mystery how this could have happened. Anyway, now it’s fixed and I’m happy
   again 😉
 * Please continue your great work!!
 *  [Psovpriatel](https://wordpress.org/support/users/psovpriatel/)
 * (@psovpriatel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345968)
 * Hi Alan
 * I hope you can assist with my problem which I believe caused by widget logic.
 * It all started about a month ago when I realised my widget is not saving half
   of my work and just keeps another half. I am using text widget to create links
   to my pages but for some reason my links are showing up to a certain point after
   that I cant make them visible on the website.
 * Can you please tell me what may causing this problem? I deleted the plugin downloaded
   a new one and uploaded to my website but still not working:(
 * Looking forward to hear from you
 * Regards
 * Henry

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

The topic ‘Not compatible with php 5.5’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Psovpriatel](https://wordpress.org/support/users/psovpriatel/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/not-compatible-with-php-55-56/#post-5345968)
 * Status: not resolved