• Resolved eragonsoftware

    (@eragonsoftware)


    A non-defined function error started appearing today on one of my client’s sites, adelgazacondelagarza.com
    Uncaught Error: Call to undefined function atec_nonce() in /home/ssss/domains/adelgazacondelagarza.com/public_html/wp-content/plugins/atec-cache-apcu/includes/atec-cache-apcu-page-cache-admin-tools.php:3

    Nothing extra was done to the module, just installed and activated it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter eragonsoftware

    (@eragonsoftware)

    Maybe instead of wp_create_nonce(atec_nonce()) you should only use wp_nonce() or wp_nonce(‘atec_nonce’)… in includes/atec-cache-apcu-cache-admin-tools.php

    Plugin Author docjojo

    (@docjojo)

    Hello,
    sorry for the inconvenience.
    I have updated the plugin.
    Please deactivate und remove the plugin.
    If you have access to /wp-content, please remove object-cache.php.
    After that reinstall and activate the new version 1.4.6 from the WP plugin library.
    The plugin has a new install routine and should clean up the old object-cache.php in case it exists.

    The object-cache is the brand new version 1.2 and I have tested the plugin on different machines, but it is not all that simple. Some files were not in sync in the repository, and that was part of the problem.

    Please report if it works.
    Regards, Chris

    Plugin Author docjojo

    (@docjojo)

    Hello,
    sorry for the inconvenience.
    Please install the new version 1.4.6.
    Regards, Chris.

    Thread Starter eragonsoftware

    (@eragonsoftware)

    Good to see you care about the plugin and tried to update it. I have followed your instruction, but unfortunately it cannot be activated, upon activation, it triggers a fatal error.

    “Plugin could not be activated because it triggered a fatal error.”
    That’s the notification that appears with red, from the plugins screen and it cannot be activated. If I try activating right from the plugin installation screen, a slightly different error shows
    Activation failed: error

    Plugin Author docjojo

    (@docjojo)

    You can also send me a
    https://www.ads-software.com/plugins/temporary-login-without-password/
    but to be save we should also have an FTP fallback.
    Do you have FTP access?

    Plugin Author docjojo

    (@docjojo)

    can you set
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    in wp-config.php
    and then send wp-conent/debug.log
    after v1.4.7 activation?

    Plugin Author docjojo

    (@docjojo)

    v1.5.1 is online, please deactivate the old version, delete the plugin and install the new version 1.5.1.

    Thread Starter eragonsoftware

    (@eragonsoftware)

    I believe this is what is of interest to you, mate, this is why your plugin is generating fatal errors: if a site also has atec cache info installed, that one already has a function with the same name as the one in atec cache acpu, that’s why atec cache cannot be activated.

    Have a look at this:
    [23-May-2024 20:14:05 UTC] PHP Fatal error: Cannot redeclare atec_plugin_settings() (previously declared in /…/public_html/wp-content/plugins/atec-cache-info/includes/atec-tools.php:9) in /…/public_html/wp-content/plugins/atec-cache-apcu/includes/atec-admin.php on line 5

    Use another name or if it’s the same function , use if(!function_exists(‘atec_plugin_settings’)) … though I doubt this would be a good case, since in each plugin we are talking about different settings.

    I hope this helps.

    Plugin Author docjojo

    (@docjojo)

    Hi,
    function atec_plugin_settings was moved to atec-admin.php and there is a
    if (!defined('ATEC_ADMIN_INC')) require_once(DIR.'/includes/atec-admin.php');
    in the plugin file to prevent that kind of conflict.
    But you probably have unmatching versions of my plugins installed.
    Please update to the latest version.

    apcu v1.5.1
    cache 1.4.6
    That should solve the problem.
    Thank you.

    Thread Starter eragonsoftware

    (@eragonsoftware)

    atec cache info is 1.3.9, there is no update available from www.ads-software.com

    the apcu I installed yesterday, was indeed, 1.5.1
    Since there was no update available, I presumed there’s no newer version online.
    Now I have deleted both, (apcu cache and cache info), and installed them, and now they work together, no error is generated, however, the object-cache.php can only be generated if I turn off all other caching plugins, like Litespeed.

    Thank you for all your effort and keep up the good work. Wish you all the best !

    Plugin Author docjojo

    (@docjojo)

    you can run APCu cache with litespeed cache plugin but need to disable object cache (memcached / redis) in litespeed, as they both engage with WP Object Cache. So you can only use either one being active.
    if you have litespeed cache running on a litespeed server with redis (:6378) i recommend using this combination and not add apcu cache. I asume you are runing LSWS?

    Plugin Author docjojo

    (@docjojo)

    LSWS has it’s own object-cache.php and atec APCu cache checks for the existence of this file and will not overwrite but give a warning:

        $debug='ERROR:Another "object-cache.php" file already exists.';
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘atec_nonce() UNDEFINED FUNCTION’ is closed to new replies.