• Resolved malaga16

    (@malaga16)


    I tried to delete the plugin and install again, same error
    I tried to disable WP rocket / Wordfence and after reinstall you plugin but same error too.

    WordPress 6.0.2 verzió
    Aktív sablon: Hello Elementor (2.6.1 verzió)
    Aktuális b?vítmény: Converter for Media (5.2.1 verzió)
    PHP verzió: 7.4.30

    Hiba részletei
    ===============
    /wp-content/plugins/webp-converter-for-media/vendor_prefixed/templates/modal.php fájl 32 sora egy E_ERROR típusú hibát okoz. Hibaüzenet: Uncaught Error: Call to undefined method WebpConverterVendor\MattPlugins\DeactivationModal\Model\FormTemplate::get_logo_url() in /wp-content/plugins/webp-converter-for-media/vendor_prefixed/templates/modal.php:32
    Stack trace:
    #0 /wp-content/plugins/webp-converter-for-media/vendor_prefixed/src/Service/TemplateGeneratorService.php(50): require_once()
    #1 /wp-includes/class-wp-hook.php(307): WebpConverterVendor\MattPlugins\DeactivationModal\Service\TemplateGeneratorService->load_template()
    #2 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /wp-includes/plugin.php(476): WP_Hook->do_action()
    #4 /wp-admin/admin-footer.php(88): do_action()
    #5 /wp-admin/plugins.php(784): require_once(‘/home/musichung…’)
    #6 {main}
    thrown

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @malaga16,

    Thanks for your message.

    Do you have an active OP Cache on your server? Probably your server has some PHP files in the cache and these files have not been fully refreshed after updating the plugin.

    There is no such error in the new plugin version. You can check that there is a get_logo_url() method in the FormTemplate class:
    https://plugins.svn.www.ads-software.com/webp-converter-for-media/trunk/vendor_prefixed/src/Model/FormTemplate.php

    The error message says that this method is missing and it is in the latest version of the plugin.

    Contact your hosting administrator about this, as such errors will repeat after updating various plugins. The server should not keep PHP files in the cache for too long. Hosts set it up to make the website theoretically faster, but it generates this type of problem.

    Nevertheless, at the moment, I don’t think you have anything to worry about. Typically, the OP Cache on the server is set to 60 seconds. So this problem only occurred 60 seconds until the cache was refreshed. If this time is longer then the problem may last longer. However, a time longer than 60 seconds is a serious error in the hosting configuration, so please pay attention to it. By default in PHP this time is 2 seconds and then such problems do not occur.

    Best,
    Mateusz

    Thread Starter malaga16

    (@malaga16)

    Hi!

    In server side set up for one second.

    BUT After update 5.2.2 new fatal error.
    I can send you the apache error log, but it sensitive information, so i dont want to paste here.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @malaga16 This is the same problem I described to you.

    Please see this file:
    https://plugins.svn.www.ads-software.com/webp-converter-for-media/trunk/src/Notice/NoticeIntegration.php

    And in line 78 there was something like this (this is a comment):
    * @return void

    However, in the previous version (5.2.1) this file looked like this:
    https://plugins.svn.www.ads-software.com/webp-converter-for-media/tags/5.2.1/src/Notice/NoticeIntegration.php

    And in line 78 there was something like this:
    if ( OptionsAccessManager::get_option( $this->notice->get_option_name() ) !== null ) {

    What does it mean? This file is located in the PHP cache. Some plugin files have been refreshed in the cache and some have not, and these refreshed files refer to non-existent file versions.

    There is nothing I can do about it. This is a problem with the OP Cache configuration in PHP on your server.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @malaga16 Please do not create duplicate topics. I have archived your new one.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @malaga16 Have you read my message? I will try to explain it once again.

    Please see the file that is visible in the error you sent:
    https://plugins.svn.www.ads-software.com/webp-converter-for-media/trunk/src/Notice/NoticeIntegration.php

    This code is on line 78 in current version (this is a comment):
    * @return void

    There is no $this there as indicated in the error.

    However, in the previous version (5.2.1) this file looked like this:
    https://plugins.svn.www.ads-software.com/webp-converter-for-media/tags/5.2.1/src/Notice/NoticeIntegration.php

    This code was on line 78 in version 5.2.1:
    if ( OptionsAccessManager::get_option( $this->notice->get_option_name() ) !== null ) {

    And there is $this on that line.

    I hope this will help you understand the idea behind the problem. After updating the plugin, some files were taken from the cache and some were refreshed. This means that after updating to version 5.2.2, some files were still from version 5.2.1, despite the fact that these files were physically modified on your server.

    Do you have any more questions on this matter? I would like to clarify this so that I do not receive another message from you after the next update. That’s why I try to explain it to you exactly.

    Best,
    Mateusz

    Thread Starter malaga16

    (@malaga16)

    I apologize for not responding.
    I looked through all the possible things in the server settings and told the operator separately to see what can be done.

    We lowered the Opcache setting to 1 second, but the problem still rears its head. At the moment, I manually download the plugin from here, upload it and extract it via FTP, that way the update can be solved.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @malaga16 Could you please send your OPcache settings available in the phpinfo() function? Please send only the contents of the OPcache section.

    Thread Starter malaga16

    (@malaga16)

    Is it what you want?

    Zend OPcache
    Opcode Caching	Up and Running
    Optimization	Enabled
    SHM Cache	Enabled
    File Cache	Disabled
    Startup	OK
    Shared memory model	mmap
    Cache hits	13594
    Cache misses	108550
    Used memory	49209736
    Free memory	85007992
    Wasted memory	0
    Interned Strings Used memory	2184600
    Interned Strings Free memory	22980776
    Cached scripts	223
    Cached keys	223
    Max keys	223
    OOM restarts	0
    Hash keys restarts	0
    Manual restarts	0
    Directive	Local Value	Master Value
    opcache.blacklist_filename	/etc/opt/remi/php74/php.d/opcache*.blacklist	/etc/opt/remi/php74/php.d/opcache*.blacklist
    opcache.consistency_checks	0	0
    opcache.dups_fix	Off	Off
    opcache.enable	On	On
    opcache.enable_cli	On	On
    opcache.enable_file_override	Off	Off
    opcache.error_log	no value	no value
    opcache.file_cache	no value	no value
    opcache.file_cache_consistency_checks	On	On
    opcache.file_cache_only	Off	Off
    opcache.file_update_protection	2	2
    opcache.force_restart_timeout	180	180
    opcache.huge_code_pages	Off	Off
    opcache.interned_strings_buffer	32	32
    opcache.lockfile_path	/tmp	/tmp
    opcache.log_verbosity_level	1	1
    opcache.max_accelerated_files	200	200
    opcache.max_file_size	0	0
    opcache.max_wasted_percentage	5	5
    opcache.memory_consumption	128	128
    opcache.opt_debug_level	0	0
    opcache.optimization_level	0x7FFEBFFF	0x7FFEBFFF
    opcache.preferred_memory_model	no value	no value
    opcache.preload	no value	no value
    opcache.preload_user	no value	no value
    opcache.protect_memory	Off	Off
    opcache.restrict_api	no value	no value
    opcache.revalidate_freq	2	2
    opcache.revalidate_path	Off	Off
    opcache.save_comments	On	On
    opcache.use_cwd	On	On
    opcache.validate_permission	Off	Off
    opcache.validate_root	Off	Off
    opcache.validate_timestamps	On	On
    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Thanks @malaga16! It looks like the OP Cache should be refreshed after 2 seconds. However, if you update plugins via FTP, there should be no problems – but please remember that this may apply to any plugin.

    Thread Starter malaga16

    (@malaga16)

    Ok, but didn’t you say above that 2 sec should be good in principle? You counted 60 seconds in an understandable way.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @malaga16 2 seconds is the correct value. Probably the problem with clearing the OP Cache is related to something else or some other type of cache on your server. You should clarify this issue with the administrator of your server – he should know best what he has set.

    By default, there are no such problems in PHP, so it has to do with some non-standard configuration.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal error after update to latest version (5.2.1)’ is closed to new replies.