# CRON Messages: In Mailbox.php line 542

**URL:** <https://forum.mautic.org/t/cron-messages-in-mailbox-php-line-542/26422>\
**Category:** Product Support\
**Created:** [December 16, 2022, 6:57pm UTC](https://forum.mautic.org/t/cron-messages-in-mailbox-php-line-542/26422 "2022-12-16T18:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtomelevage](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jtomelevage/32/8875_2.png) [@jtomelevage](https://forum.mautic.org/u/jtomelevage)\
**Post date:** [December 16, 2022, 6:57pm UTC](https://forum.mautic.org/t/cron-messages-in-mailbox-php-line-542/26422/1 "2022-12-16T18:57:27Z")

</div>

**Your software**  
My Mautic version is: 4.4.5  
My PHP version is: 7.4  
My Database type and version is: 10.3.36-MariaDB-0+deb10u2 - pdo\_mysql

**Your problem**  
My problem is:

These errors are showing in the log: CRON Log full of “CRON Messages: In Mailbox.php line 542” messages:

```auto
In Mailbox.php line 542:
                                                                               
  Attempted to call function "imap_search" from namespace "Mautic\EmailBundle\MonitoredEmail".

mautic:email:fetch [-m|--message-limit [MESSAGE-LIMIT]] [-h|--help] [-q|--quiet]
[-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env
ENV] [--no-debug] [--] <command>

```

Steps I have tried to fix the problem:

Verified PHP IMAP installed and working (also works on other sites on this server).

Cron Job:

```auto
php /path-to-mautic/bin/console mautic:email:fetch

```

---

<div class="post-metadata">

**Author:** ![jtomelevage](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jtomelevage/32/8875_2.png) [@jtomelevage](https://forum.mautic.org/u/jtomelevage)\
**Post date:** [December 17, 2022, 7:27pm UTC](https://forum.mautic.org/t/cron-messages-in-mailbox-php-line-542/26422/2 "2022-12-17T19:27:38Z")

</div>

We tried several combinations in the “Monitored Inbox Settings”:

 ![mautic-fetch-542-error](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7d02dd8b7f65400925b3a7dff69f2b29ffc4eafd.jpeg)

With nothing set in “Bounces”, “Unsubscribe Requests” or “Contact Replies” the cron job returns:

```auto
No mailboxes are configured.

```
