Title: Parse Error on version 1.1
Last modified: September 11, 2023

---

# Parse Error on version 1.1

 *  [csskevin](https://wordpress.org/support/users/csskevin/)
 * (@csskevin)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/parse-error-on-version-1-1/)
 * Hey,
 * Thanks for the great project.
 * There seems to be an issue with the latest version of the plugin.
 * `parse error: <path>/main.less on line 1`
 * This error always occurs, independent of the content.
 * After digging through the source code, there seems to be an issue with the latest
   update, especially the formatting of the `lessc.inc.php` file.
 * It seems like your formatting tool also formatted string contents breaking the
   less parser.
 * One example is `lessc.inc.php:2731`
 * Content version 1.0
 *     ```wp-block-code
       	protected function mediaExpression(&$out) {
       		$s = $this->seek();
       		$value = null;
       		if ($this->literal("(") &&
       			$this->keyword($feature) &&
       			($this->literal(":") && $this->expression($value) || true) &&
       			$this->literal(")"))
       		{
       			$out = array("mediaExp", $feature);
       			if ($value) $out[] = $value;
       			return true;
       		} elseif ($this->variable($variable)) {
       			$out = array('variable', $variable);
       			return true;
       		}
   
       		$this->seek($s);
       		return false;
       	}
       ```
   
 * However on version 1.1 we have
 *     ```wp-block-code
       	protected function mediaExpression( &$out ) {
       		$s = $this->seek();
       		$value = null;
       		if ( $this->literal( "( " ) &&
       			$this->keyword( $feature ) &&
       			( $this->literal( ":" ) && $this->expression( $value ) || true ) &&
       			$this->literal( " )" ) )
       		{
       			$out = array( "mediaExp", $feature );
       			if ( $value ) $out[] = $value;
       			return true;
       		} elseif ( $this->variable( $variable ) ) {
       			$out = array( 'variable', $variable );
       			return true;
       		}
   
       		$this->seek( $s );
       		return false;
       	}
       ```
   
 * Note here the `$this->literal( "( " )` with the extra space.
 * This is just one example, there are bunch more of them.
 * —
 * For people having the same issue, a workaround is to download the WP Rollback
   plugin (or something similar) and downgrade the plugin to version `1.0` until
   the problem is resolved. (Edit: Do not forget to disable auto update, otherwise
   it will update automatically)
    -  This topic was modified 2 years, 9 months ago by [csskevin](https://wordpress.org/support/users/csskevin/).

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

 *  [Anurag](https://wordpress.org/support/users/anuragpradhan/)
 * (@anuragpradhan)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/parse-error-on-version-1-1/#post-17349574)
 * Hello Csskevin,
 * Have your issues been resolved?
   If not kindly let me know so that we can help
   you.
 * Regards,
   Anurag
 *  [sunnyred](https://wordpress.org/support/users/sunnyred/)
 * (@sunnyred)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/parse-error-on-version-1-1/#post-17523095)
 * Hello Anurag,
   I do have the same problem as csskevin. So, after updating the 
   plugin to version 1.1 I do get a parse error, which seems to be more or less 
   independent of the content of the less file. After rolling back to version 1.0
   the error disappears. Any help is very much appreciated.Kind regardsRobin

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

The topic ‘Parse Error on version 1.1’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lessify-wp_1f7d7f.svg)
 * [Lessify Wordpress](https://wordpress.org/plugins/lessify-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lessify-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lessify-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/lessify-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lessify-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lessify-wp/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [sunnyred](https://wordpress.org/support/users/sunnyred/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/parse-error-on-version-1-1/#post-17523095)
 * Status: not resolved