Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

EWWW Image Optimizer Parse Error expecting T_PAAMAYIM_NEKUDOTAYIM v3.0.0 Fix

$
0
0

Replies: 0

Like others also got the error with version 3.0.0 update:

Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/******/public_html/wp-content/plugins/ewww-image-optimizer/common.php on line 1764

Now that’s a wacky error 🙂

Had a look at the relevant code and think modifying the file

/ewww-image-optimizer/common.php

As follows gets rid of the parse error.

Change lines 1764, 1772, 1781, 1799 and 1813,

From

if ( ! defined( 'DOING_AJAX' ) || empty( DOING_AJAX ) ) {

To

if ( !defined('DOING_AJAX') || ! DOING_AJAX ) {

Not sure if it has any impact on functionality, just quickly getting a fix. I’ve only tested this on localhost so far, putting the info out there quickly for others.

David Law


Viewing all articles
Browse latest Browse all 59525

Trending Articles