• maxx203

    (@maxx203)


    Hi,

    when WP Monalisa is activated, i see issues to execute wp cron. I enabled wp debug log and found that there is a stack trace and a wordpress hard fail condition, the system never shows. I came along as i found that WP cron is not running properly.

    Could you please check whenever the plugin is useable with PHP 8.5.10?
    The issue of course does not happen, when WP Monalisa is deactivated.

    [20-Sep-2026 18:02:15 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /var/www/vhosts/battlefield-inside.de/httpdocs/wp-includes/capabilities.php:914
    Stack trace: 0 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-includes/functions.php(3698): current_user_can() 1 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-includes/formatting.php(2097): get_allowed_mime_types() 2 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-content/plugins/wp-monalisa/wpml-comment.php(24): sanitize_file_name() 3 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-content/plugins/wp-monalisa/wp-monalisa.php(42): require_once(‘…’) 4 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-settings.php(597): include_once(‘…’) 5 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-config.php(124): require_once(‘…’) 6 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-load.php(50): require_once(‘…’) 7 /var/www/vhosts/battlefield-inside.de/httpdocs/wp-cron.php(46): require_once(‘…’) 8 {main}

    thrown in /var/www/vhosts/battlefield-inside.de/httpdocs/wp-includes/capabilities.php on line 914

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Hi maxx,

    thanks for your hint about this problem. I installed php 8.5.11 on my testsite but can not reproduce it. I used wp-crontrol to fire various wp-cron jobs but never get a message like this in the log.

    Can you describe if it is a special cron job which leads to this problem? Does this message occur if you are logged in/out?

    Thank you.

    Thread Starter maxx203

    (@maxx203)

    Hi

    The issue arises during normal WP Cron execution. As mentioned earlier, I discovered that Cron is not running as regular and WP Cron tasks are no longer handled. While tracing the issue, i realize that it was related to WP monalisa. After deactivating the plugin the issue, it did not persist.

    Plugin Author tuxlog

    (@tuxlog)

    I am sorry, I can not confirm this. Running a clean WordPress 7.1.2 install with wp-monalisa activated shows regular behaviour of wp-cron, no errors or problems on my server. Maybe it is a conflict with another plugin? Can you send me a list of the plugins you use please?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.