What's New
- AuthorPosts
Hi
I have just purchased the WebP module. I can upload OK but when it comes to installing I get this error
Is there anything I can do to correct the error
I was happy enough with the Advanced page cache which works OK and seemed to have made things a little faster` Decoded exception
Call to undefined method StWebp::getTranslator()
in file modules/stwebp/stwebp.php at line 464
Source file: modules/stwebp/stwebp.php445: );
446:
447: $this->fields_form[2][‘form’] = array(
448: ‘legend’ => array(
449: ‘title’ => $this->l(‘Auto generated webp’),
450: ‘icon’ => ‘icon-cogs’
451: ),
452: ‘description’ => $this->l(‘Specifies the directory to generate WebP images.Multiple directories should be handled with carriage return’).”<br> e.g:/img/cms/ <br>
453: /upload/img/”,
454: ‘input’ => array(
455: array(
456: ‘type’ => ‘switch’,
457: ‘label’ => $this->l(‘All images are regenerated:’),
458: ‘name’ => ‘webp_re_day’,
459: ‘is_bool’ => true,
460: ‘values’ => array(
461: array(
462: ‘id’ => ‘webp_re_day_on’,
463: ‘value’ => 1,
464: ‘label’ => $this->getTranslator()->trans(‘Yes’, array(), ‘Admin.Theme.Panda’)),
465: array(
466: ‘id’ => ‘webp_re_day_off’,
467: ‘value’ => 0,
468: ‘label’ => $this->getTranslator()->trans(‘No’, array(), ‘Admin.Theme.Panda’)),
469: ),
470: ‘desc’ => $this->l(‘When you open the option, all the images under the directory you filled in will be regenerated into WebP, which may take a long time’),
471: ‘validation’ => ‘isBool’,
472: ),
473: array(
474: ‘type’=>’textarea’,Stack trace
Hi,
Sorry for the problem. please replace the \modules\stwebp\stwebp.php file with my attached one, then you can install the module, or re-download the module again from my site to resolve the problem.
Best regards.Attachments:
Hi
Thanks . Have tried and still getting a 500 error on “Modules & Services page
But the error is shorterDecoded exception
syntax error, unexpected ‘;’, expecting ‘)’
in file classes/module/Module.php(966) : eval()’d code at line 493
Stack trace
1. controllers/admin/AdminModulesController.php:334 source ModuleCore::getModulesOnDisk(arguments)
2. classes/controller/Controller.php:210 source AdminModulesControllerCore->initContent()
3. classes/Dispatcher.php:861 source ControllerCore->run()
4. Admin_Folder_1967/index.php:56 source DispatcherCore->dispatch()Hi,
Sorry, please use the attached one. if the problem still persists, send me the backoffice access and FTP in a private repy.
Best regards.Attachments:
Hi
Thank you this 1 has worked now, will experiment later to get the best
Hi
I have been playing round trying to get the best settings.. But seem to have run into a little issue.
Some images,maybe 10% haven’t returned and are just showing the camera image
These are my settings as of nowI also have prestools suite and if I look at images they are all there.. Although I do wonder if it is not just my caching not clearing properly
Also should mention I have gone from F to C on GTMatrix and doubled my Google speed to 87 and mobile to 42 was a lot less
Attachments:
Hi
I think I must be having a time out issue as the best I seem to get for products is 10 and if I do blog the best I get is 5. I’ve tried multiple times with different setups, different Max execution times. Also it seems to the same images that don’t generate every time…… Very weird- This reply was modified Apr '22 by AndyC.
- AuthorPosts
You must be logged in to reply to this topic.