# Error when trying to use focus builder in 4.4.3

**URL:** <https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [September 28, 2022, 5:23am UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527 "2022-09-28T05:23:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [September 28, 2022, 5:23am UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/1 "2022-09-28T05:23:01Z")

</div>

**Your software**  
My Mautic version is: 4.4.3  
My PHP version is: 7.4 and 8.0  
My Database type and version is: 5.7.39

**Your problem**  
My problem is: Focus item builder does not work. Getting the following error message when clicking on the “builder button”

These errors are showing in the log: mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Argument 1 passed to MauticPlugin\MauticFocusBundle\Helper\IframeAvailabilityChecker::check() must be of the type string, null given, called in /home/xxx/xxx.entice.cloud/plugins/MauticFocusBundle/Controller/AjaxController.php on line 24” at /home/xxx/xxx.entice.cloud/plugins/MauticFocusBundle/Helper/IframeAvailabilityChecker.php line 27 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 1 passed to MauticPlugin\MauticFocusBundle\Helper\IframeAvailabilityChecker::check() must be of the type string, null given, called in /home/xxx/xxx.entice.cloud/plugins/MauticFocusBundle/Controller/AjaxController.php on line 24 at /home/xxx/xxx.entice.cloud/plugins/MauticFocusBundle/Helper/IframeAvailabilityChecker.php:27)”}

Steps I have tried to fix the problem:checked forum to see if any other errors are similar. We have INTL support turned on.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 28, 2022, 6:41am UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/2 "2022-09-28T06:41:15Z")

</div>

Hi @gary.harrison

I have just gone ahead and updated our demo version to 4.4.3 (thanks for notifying me this is out 🙂 ).

We are running the following environment:  
OS: Ubuntu  
Release: 22.04  
PHP: 8.0  
Mautic: 4.4.3  
DB: mysql Ver 15.1 Distrib 10.6.7-MariaDB

Unfortunately (or fortunately for us) we did not encounter similar errors as above. Are you seeing any console errors ?

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [September 28, 2022, 3:35pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/3 "2022-09-28T15:35:10Z")

</div>

Hi Mike,

I appreciate the response. Just a bit odd as we have instances using 4.3 that works just fine. Might be a conflict with a plugin as we have quite a few of those installed. Anyway - we will roll back to 4.3 for now…

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [September 28, 2022, 11:59pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/4 "2022-09-28T23:59:05Z")

</div>

Just a quick note - rebuilt my Mautic instance in 4.4.2 and it’s all working properly. Something definitely funny in 4.4.3. Could be related to custom plugins. Just need to reimport in all the contacts now ☹

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 29, 2022, 12:33pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/5 "2022-09-29T12:33:37Z")

</div>

Hey @gary.harrison - not sure if you are making backups of files and DB before updating, if not here is a little script that we wrote to take care of this.  
It makes a backup of mautic directory and of the DB, saves it and then runs the update.

If things fail as in your case above it is pretty simple to put back. We could probably extend the script to do this as well but don’t really have the need as of yet.

```auto
#!/bin/bash
# Date Created: 25 February 2022
# Author: Surge.Media

echo "Please input the full path of where your installation of Mautic is residing. Example /var/www/mautic"
read mautdir
echo "Creating a Backup Directory where the files will be stored" 
mkdir MAUTIC-BACKUP
currentdir=`pwd`
echo "Going ahead and making a tar backup of your mautic files"
cd $mautdir
tar -czvf mautic-backup-files.tar.gz *
echo "Moving backup files to the backup directory"
mv mautic-backup-files.tar.gz $currentdir/MAUTIC-BACKUP/

cd $currentdir/MAUTIC-BACKUP/

echo "What is the database name of your database?"
read mauticdb

echo "What is the username to access your mautic database?"
read mauticusername

echo "Does your DB have a password? (yes/no)"
read answer

if [[$answer == "yes"]]
then
        echo "What is the passord to the db"
        read password

        echo "Creating a backup of your DB"
        mysqldump -u $mauticusername $mauticdb -p$password | gzip > mautic-db-backup.sql.gz
else
        echo "Creating a backup of your DB"
        mysqldump -u $mauticusername $mauticdb | gzip > mautic-db-backup.sql.gz
fi

echo "Going ahead and running the Mautic update to the latest version"
php $mautdir/bin/console mautic:update:apply

echo "Finishing the installation"
php $mautdir/bin/console mautic:update:apply --finish

echo "Clering Mautic Cache"
rm -rf $mautdir/var/cache/*

echo "Updating File Permissions"
chown www-data:www-data $mautdir

echo "Your Mautic should be updated to the latest version. Good Luck"

```

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [September 30, 2022, 3:54pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/6 "2022-09-30T15:54:08Z")

</div>

Awesome - thank you!

---

<div class="post-metadata">

**Author:** ![rw4lll](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rw4lll/32/6861_2.png) [@rw4lll](https://forum.mautic.org/u/rw4lll)\
**Post date:** [October 14, 2022, 10:20am UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/7 "2022-10-14T10:20:00Z")

</div>

I’ve checked the issue. It seems there is a typo in the code.  
Change in Plugins/MauticFocusBundle/Controller/AjaxController.php on line 24:  
instead of `$url = $request->request->get('website');` set `$url = $request->get('website');`

For me it has solved the problem.

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [October 14, 2022, 3:12pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/8 "2022-10-14T15:12:16Z")

</div>

Nice. I check this thread every so often to see if anyone else was experiencing the same thing. Thanks for updating the thread!

---

<div class="post-metadata">

**Author:** ![ericf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ericf/32/1669_2.png) [@ericf](https://forum.mautic.org/u/ericf)\
**Post date:** [October 21, 2022, 1:34pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/9 "2022-10-21T13:34:58Z")

</div>

Hi everyone,

Thanks @rw4lll !  
I’ve had the same issue, and your answer allowed me to solve it.

**Did anyone of you [reported the bug](https://contribute.mautic.org/contributing-to-mautic/developer/code/bugs)** already ?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [November 11, 2022, 1:33pm UTC](https://forum.mautic.org/t/error-when-trying-to-use-focus-builder-in-4-4-3/25527/10 "2022-11-11T13:33:57Z")

</div>

Seems to be added now: [Focus Item: 500 internal error -\> A typo in Plugins/MauticFocusBundle/Controller/AjaxController.php · Issue #11706 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/11706)
