Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @montenegroecoadventuresorg – as @spiffyd mentioned previously this should be fixed by the plugin developers – sad to see 11 months on this hasn’t been resolved. If you fix your script and then update WordPress, your fix will be overwritten. However, as a temporary resolution to the error displaying:

    For WP 4.9.7:

    Login to your FTP,
    Navigate to /yourwebroot/wp-includes/ and open class.wp-scripts.php. Navigate to line 426:

    $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');

    Replace with:

    if (!empty($value)) { $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8'); }

    • This reply was modified 6 years, 4 months ago by depodra.
    • This reply was modified 6 years, 4 months ago by depodra.

    Recently installed plugin. New uploaded images are not a problem. Applying image watermark to existing images do apply in the Media library, but does not save. (i.e. I “apply watermark”, but when returning to image file added watermark is not saved nor appear on website).

    Mostly same problem here – except not even newly uploaded images actually apply a watermark. The images are saved within iw-backup/ but no watermarked image is applied to the product/page image in which “Apply Watermark” is selected. In the media panel, the watermarked image replaces the original, until you reload the page, then it is back to pre-watermarked image.

    Updating to 1.6.3 does not help.

    depodra

    (@depodra)

    The developers just need to add an !empty conditional for $value around line 443… I.e:

    		foreach ( (array) $l10n as $key => $value ) {
    			if ( !is_scalar($value) )
    				continue;
    
    			$l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
    		}

    to…

    		foreach ( (array) $l10n as $key => $value ) {
    			if ( !is_scalar($value) )
    				continue;
    
    			if (!empty($value)) {
    				$l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
    			}
    		}
Viewing 3 replies - 1 through 3 (of 3 total)