Title: fohly's Replies | WordPress.org

---

# fohly

  [  ](https://wordpress.org/support/users/fohly/)

 *   [Profile](https://wordpress.org/support/users/fohly/)
 *   [Topics Started](https://wordpress.org/support/users/fohly/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fohly/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fohly/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fohly/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fohly/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fohly/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Function _load_textdomain_just_in_time was called incorrectly](https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-75/)
 *  [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-75/#post-18300989)
 * Hi, I have the same problem. I traced this to where the error is generated. It
   seems some translation are called too early:
    - In function em_plugins_loaded() in the events-manager.php
    - In construct() of class BP_EM_Component in bp-em-core.php
 * When ‘events-manager’ is specified as domain e.g. in parent::start(‘events’, 
   __(‘Events’, ‘events-manager’), EM_DIR); in bp-em-core.php, this error occurs.
   If you use another domain there that was already correctly loaded, the error 
   goes away. Unfortunately this can only be done with a change in the plugin code,
   and I still have not found a more elegant way to fix this (how to make sure that
   the domain is correctly loaded in the first place, before the functions mentioned
   above are called …)
 * It would be nice if the support of the Events Manager plugin could address this
   problem …
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 2FA - Two-factor authentication for WordPress] PHP notice in class-user-helper.php](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/#post-16932221)
 * Dear Robert, I installed the update and watched the logs for a while. No more
   PHP notices of the kind any more. Thank you for your support and resolving this
   problem!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 2FA - Two-factor authentication for WordPress] PHP notice in class-user-helper.php](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/#post-16910248)
 * Hi Robert, thank you and sorry for my late reaction, just came back from vacation.
   When I try to access the patches page you linked to above I get a 404 error. 
   Do you have another way I can access this patch?
 * Best regards
 * Florian
    -  This reply was modified 3 years, 2 months ago by [fohly](https://wordpress.org/support/users/fohly/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 2FA - Two-factor authentication for WordPress] PHP notice in class-user-helper.php](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-notice-in-class-user-helper-php/#post-16860075)
 * Hi Robert, thank you for getting back to me on this. I am using WordPress Version
   6.2.2 and the plugin version is 2.4.1. The problem has been around on the last
   few versions, already. By the kind of error and the code line where it is logged,
   it seems to happen when the object self::$user is not set. So probably when a
   user not logged in is opening a page on the system.
 * If it helps I can log additional variables when the error occurs, just let me
   know what values are you are interested in.
 * All the best
 * Florian
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Spelling error in code for SELECT statement](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/#post-16592287)
 * So now you have reached version 6.3 and still have not fixed this. How can I 
   understand you ignoring this issue which is quite obvious and would be easy to
   fix for you?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Spelling error in code for SELECT statement](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/#post-16303018)
 * Just updated to your version 6.1.6 and the spelling error is still in there with
   leads to non executable sql queries
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Spelling error in code for SELECT statement](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/#post-16249642)
 * Seriously, by now you have published version 6.1.5 and this error is still in
   there! Please fix!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Spelling error in code for SELECT statement](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/spelling-error-in-code-for-select-statement/#post-16221047)
 * Found in version 6.1.4
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, Appointments and more!] Events Manager uses deprecated version of PHPMailer](https://wordpress.org/support/topic/events-manager-uses-deprecated-version-of-phpmailer/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/events-manager-uses-deprecated-version-of-phpmailer/#post-13617852)
 * Just checked. What seems to work is to replace the lines in your load_phpmailer()
   with what is done in the deprecated WP files class-phpmailer.php and class-smtp.
   php:
    `require_once ABSPATH . WPINC . ‘/PHPMailer/PHPMailer.php’; require_once
   ABSPATH . WPINC . ‘/PHPMailer/Exception.php’; require_once ABSPATH . WPINC . ‘/
   PHPMailer/SMTP.php’;
 *  class_alias( PHPMailer\PHPMailer\PHPMailer::class, ‘PHPMailer’ );
    class_alias(
   PHPMailer\PHPMailer\Exception::class, ‘phpmailerException’ ); class_alias( PHPMailer\
   PHPMailer\SMTP::class, ‘SMTP’ );`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [function map_meta_cap with issues since upgrade to WP 5.4.1](https://wordpress.org/support/topic/function-map_meta_cap-with-issues-since-upgrade-to-wp-5-4-1/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/function-map_meta_cap-with-issues-since-upgrade-to-wp-5-4-1/#post-12848779)
 * Hi Otto,
 * thank you for the quick response!
 * I looked deeper into the code, and this always occurs when checking with current_user_can()
   with empty $args parameter due to my mapping of a custom capability to the ‘delete_post’
   capability of a custom post. In that case map_meta_cap() recursively calls itself
   with ‘delete_post’ and passes on the empty $args and then leads to the issue 
   described.
    I fixed this on my site by not mapping the custom cap to a custom
   post cap like this.
 * I don’t know why this never appeared before, as I did nothing else than update
   WordPress to 5.4.1. Sanity check in the future would still be great, but as my
   immediate problem is solved, this ticket can be closed now.
 * Best regards
    Florian
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [PHP 7.4 Compatibility with WP 5.4.1 – problem with seems_utf8()](https://wordpress.org/support/topic/php-7-4-compatibility-with-wp-5-4-1-problem-with-seems_utf8/)
 *  Thread Starter [fohly](https://wordpress.org/support/users/fohly/)
 * (@fohly)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/php-7-4-compatibility-with-wp-5-4-1-problem-with-seems_utf8/#post-12848735)
 * Hi Otto,
 * thank you for the quick reply! I did not find this issue in core.trac so I created
   a new ticket there: [https://core.trac.wordpress.org/ticket/50197#ticket](https://core.trac.wordpress.org/ticket/50197#ticket)
 * Best regards
    Florian

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