Title: Certain PHP code blocks causing plugin to break
Last modified: March 9, 2018

---

# Certain PHP code blocks causing plugin to break

 *  [Phillip D.](https://wordpress.org/support/users/phillip-dodson/)
 * (@phillip-dodson)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/certain-php-code-blocks-causing-plugin-to-break/)
 * This plugin has worked well for me in the past, but this particular code block
   is causing problems.
 * [Code is here.](https://gist.github.com/phillip-communify/31f91cb7ccc19c02a662c9cc2e427746)
 * One point of contention is line 40: `while ( count( $colors_custom ) / 2 < $_num_of_cols){`
 * If I copy and paste up to that line, the code breaks. If I reverse the `while`
   clause to get rid of the less-than symbol and make it a greater-than, it works.
 * Working line: `while ( $_num_of_cols > count( $colors_custom ) / 2 ) {`
 * There are other points in the code that cause it to break also but I haven’t 
   had a chance to check every line. I should also mention that I’m enclosing that
   block in the [php][/php] shortcode.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/certain-php-code-blocks-causing-plugin-to-break/#post-10144187)
 * Just noting that I have seen this thread but I haven’t had a chance to look into
   it. Sorry.

Viewing 1 replies (of 1 total)

The topic ‘Certain PHP code blocks causing plugin to break’ is closed to new replies.

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

## Tags

 * [break](https://wordpress.org/support/topic-tag/break/)
 * [less-than](https://wordpress.org/support/topic-tag/less-than/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/certain-php-code-blocks-causing-plugin-to-break/#post-10144187)
 * Status: not resolved