Developer
Supported
EZ Image Resize
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Jerry Price
style=”” leads to PHP error
Bug Report
Boiler Room Digital
|
Posted: 01 March 2013 07:09 AM |
|
|
|
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 variable: style
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 variable: style
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
|
Posted: 01 March 2013 07:17 AM |
# 1
|
|
|
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
|
Posted: 01 March 2013 10:55 AM |
# 2
|
|
Developer
|
Sent you an email with an updated copy please let me know if that works.
|
|
|