Plugin

Developer
Supported

EZ Image Resize

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jerry Price

     

You must be logged in to post.

style=”” leads to PHP error

Bug Report

Boiler Room Digital
Boiler Room Digital

Hello,

I’m using Redactee, which sometimes seem to include the style=”” in the image tags it adds. This causes PHP errors as follows:

A PHP Error was encountered

Severity
Notice

Message
Undefined variablestyle

Filename
ez_image_resize/pi.ez_image_resize.php

Line Number
454

A PHP Error was encountered

Severity
Warning

Message
strpos() [function.strpos]: Empty delimiter

Filename
ez_image_resize/pi.ez_image_resize.php

Line Number
403

A PHP Error was encountered

Severity
Notice

Message
Undefined variablestyle

Filename
ez_image_resize/pi.ez_image_resize.php

Line Number
454

A PHP Error was encountered

Severity
Warning

Message
strpos() [function.strpos]: Empty delimiter

Filename
ez_image_resize/pi.ez_image_resize.php

Line Number
403 

meaning the page does not load. Should be fairly simple to correct this hopefully.

Boiler Room Digital
# 1
Boiler Room Digital

I think adding something like:

$tagdata str_replace('style=""'''$tagdata); 

arround line 280 would do the trick - that’s what I’ve done anyway.

VIM Interactive
# 2
Developer
VIM Interactive

Sent you an email with an updated copy please let me know if that works.