• Resolved netschmiede24

    (@netschmiede24)


    Hi,

    I have a website (which I didn’t set up myself) that has your plugin installed. This website currently has a critical error in the dashboard with no further explanation. The frontend looks fine, if you are not logged in.

    In order to find the reason for the critical error, I would like to switch on the debug mode. However – there is no wp-config.php on the server!

    I assume this is because of your plugin. Where exactly do I now find the possibility to debug the site? Is there any other filename for wp-config.php or is it stored in another directory?

    Thanks in advance for your help!

    Astrid

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    Definitely, there should be a wp-config.php file, check the other folders. You should use a file search function available on your host dashboard.
    Try to check your server error logs for more details regarding the issue.

    Thanks

    Thread Starter netschmiede24

    (@netschmiede24)

    Thanks – I finally found the wp-config.php one directory above the usual one…
    However, now that I enabled debugging, there is the next issue. No debug.log is created in /wp-content – nor in any other directories. I checked all! Is your plugin perhaps hiding / renaming the debug log for any reason?

    Thread Starter netschmiede24

    (@netschmiede24)

    Hi again,
    I was finally able to switch on the debug.log and I got several entries of this info:

    [21-Nov-2022 11:54:32 UTC] PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function " wpmu_remove_credits_submenu" not found or invalid function name in /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/class-wp-hook.php:308
    Stack trace:
    #0 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #1 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #2 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/admin-bar.php(102): do_action('wp_before_admin...')
    #3 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/class-wp-hook.php(308): wp_admin_bar_render('')
    #4 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #5 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-admin/admin-header.php(267): do_action('in_admin_header')
    #7 /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-admin/index.php(137): require_once('/is/htdocs/wp13...')
    #8 {main}
      thrown in /is/htdocs/wp13147591_U2WMGWL0K1/html/domainxxx/wordpress/wp-includes/class-wp-hook.php on line 308

    I take it that the “wpmu_remove_credits_submenu” somehow comes from your plugin, right? (I suspect this, because the plugin also creates a “mu-plugins” folder which contains the file wp-hide-loader.php => so “mu” stands for your plugin..)

    The server has recently been upgraded from PHP 7.4 to 8.0 (or 8.1) – there is no possibility to switch back to 7.4, since the hosting provider completely switched php 7.4 off.

    So – how do I get rid of that function “wpmu_remove_credits_submenu” which creates the fatal PHP error and causes me not to access my dashboard…

    Thanks for any help!
    Astrid

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    The files do not belong to WP Hide. Do you actually run WPMU https://wpmudev.com/ as wpmu_remove_credits_submenu appears related to their environment.
    The mu-plugins folder is a WordPress default location with the must-use code on a site, so is not WP Hide property.

    You can also try to search for wpmu_remove_credits_submenu through your file manager and locate the exact line where invoked.

    Thanks.

    Thread Starter netschmiede24

    (@netschmiede24)

    I don’t really know if the website runs WPMU (what does WPMU do exactly?) – the only reference I find is the folder “mu-plugins”, and the only file in this folder is wp-hide-loader.php.

    I have also tried to contact the support for WPMU – so thanks for pointing me in that direction, although I am not really sure what to look for.

    Now I looked at the “wp-hide-loader.php” file, and at the beginning it contains the lines

    /**
    *
    * WP Hide & Security Enhancer – MU plugin loader
    *
    *
    */

    I don’t have any “MU Plugin” in the plugins folder. But in the plugin directory for “wp-hide-security-enhancer” there is a folder “mu-loader”, which also contains the file “wp-hide-loader.php”.

    How do I perform a text search within all the files through an FTP client?

    Thanks for your help1
    Astrid

    Hello @netschmiede24 and @tdgu !

    Just a quick update here regarding the wpmu_remove_credits_submenu item. It does contain the WPMU prefix, however it’s not something specific to our platform or plugins.

    What I think it may be is either a custom code snippet provided by our support long ago (didn’t find any mention of it anywhere, so it may be something quite old) or a coincidence in the names. I’d bet on the first option, especially if the site’s owner used our support service in the past.

    Hope this helps!

    Kind regards,
    Pawel

    Plugin Contributor Maya

    (@tdgu)

    Hi,
    @wpmudev-support9 Thanks for your feedback.

    @netschmiede24 The /mu-plugins/ is really not related to the actual problem. As mentioned, the mu-plugins folder is a WordPress default location with the must-use code on a site, so is not a WP Hide property.
    So the best approach for this would be to find the exact code that calls the function wpmu_remove_credits_submenu. You can do a search through FTP too, but will take much longer than using the host File Manager. Once the code is located, you can contact the developer for a fix or remove it, if not used.

    Thanks

    Thread Starter netschmiede24

    (@netschmiede24)

    Thanks a lot for your help – I was finally able to locate the function. It was a custom code in the child theme that the previous developer used in order to remove the WordPress credits (whatever….). Once I removed this snippet, I was able to log in again.

    All the best,
    Astrid

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how to debug?’ is closed to new replies.