Codeinwp / optimole-wp

30 stars 8 forks source link

Warning appears on the website using not default path to WordPress uploads dir #365

Closed vytisbulkevicius closed 3 years ago

vytisbulkevicius commented 3 years ago

Describe the bug A user reported that he's receiving this warning: Warning: strpos(): Empty needle in /public/plugins/optimole-wp/inc/manager.php on line 565

The assumption is that this happens because of the uploads directory being in an unusual location.

They use Wordplate framework for the site so the uploads directory is "public/uploads". Or just "uploads" from the web-root.

To Reproduce Steps to reproduce the behavior: I don't have steps to reproduce the warning, reported here: https://secure.helpscout.net/conversation/1497366848/276720

Screenshots

2021/05/06 16:07:01 [error] 6788#6788: *447597 FastCGI sent in stderr: "
PHP message: PHP Warning: strpos(): Empty needle in /public/plugins/optimole-wp/inc/manager.php on line 565

Expected behavior No warnings.

pirate-bot commented 3 years ago

:tada: This issue has been resolved in version 3.1.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: