greenrivers / grav-plugin-webp

Grav Webp plugin.
MIT License
11 stars 0 forks source link

Undefined offset: 2 in file #3

Closed GIK-Team closed 3 years ago

GIK-Team commented 3 years ago
Whoops\Exception\ErrorException: Undefined offset: 2 in file /home/dxnllxqg/public_html/user/plugins/webp/webp.php on line 68
--
  | Stack trace:
  | 1. Whoops\Exception\ErrorException->() /home/dxnllxqg/public_html/user/plugins/webp/webp.php:68
  | 2. Grav\Common\Debugger->deprecatedErrorHandler() /home/dxnllxqg/public_html/user/plugins/webp/webp.php:68
  | 3. Grav\Plugin\WebpPlugin->onPagesInitialized() /home/dxnllxqg/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:264
  | 4. Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() /home/dxnllxqg/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:239
  | 5. Symfony\Component\EventDispatcher\EventDispatcher->callListeners() /home/dxnllxqg/public_html/vendor/symfony/event-dispatcher/EventDispatcher.php:73
  | 6. Symfony\Component\EventDispatcher\EventDispatcher->dispatch() /home/dxnllxqg/public_html/system/src/Grav/Common/Grav.php:556
  | 7. Grav\Common\Grav->fireEvent() /home/dxnllxqg/public_html/system/src/Grav/Common/Processors/PluginsProcessor.php:36
  | 8. Grav\Common\Processors\PluginsProcessor->process() /home/dxnllxqg/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
  | 9. Grav\Framework\RequestHandler\RequestHandler->handle() /home/dxnllxqg/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
  | 10. Grav\Framework\RequestHandler\RequestHandler->handle() /home/dxnllxqg/public_html/system/src/Grav/Common/Processors/InitializeProcessor.php:130
  | 11. Grav\Common\Processors\InitializeProcessor->Grav\Common\Processors\{closure}() /home/dxnllxqg/public_html/system/src/Grav/Common/Debugger.php:546
  | 12. Grav\Common\Debugger->profile() /home/dxnllxqg/public_html/system/src/Grav/Common/Processors/InitializeProcessor.php:131
  | 13. Grav\Common\Processors\InitializeProcessor->process() /home/dxnllxqg/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
  | 14. Grav\Framework\RequestHandler\RequestHandler->handle() /home/dxnllxqg/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
  | 15. Grav\Framework\RequestHandler\RequestHandler->handle() /home/dxnllxqg/public_html/system/src/Grav/Common/Grav.php:295
  | 16. Grav\Common\Grav->process() /home/dxnllxqg/public_html/index.php:58

Grav v1.7.10 PHP Version 7.4.16 https://wieland-luft.com.ua/1.php

MajorKuprich commented 3 years ago

Hello @GIK-Team,

Thank You for Your report. Could You give me page url?

GIK-Team commented 3 years ago

@MajorKuprich this occurs when the plugin is enabled and the site stops working. https://drive.google.com/file/d/1L2wp3ovzPMMs_9pKtXJIVLocZ0_3IdHv/view?usp=sharing

MajorKuprich commented 3 years ago

Fixed in new release. Related commit: https://github.com/greenrivers/grav-plugin-webp/commit/5d5eb66c8ce7ef3a400325100f5ff4060940767b.

GIK-Team commented 3 years ago

Now works for me! Thanks!