# I have an issue with mautic integration

**URL:** <https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733>\
**Category:** Product Support\
**Created:** [July 11, 2022, 9:44am UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733 "2022-07-11T09:44:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 11, 2022, 9:44am UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/1 "2022-07-11T09:44:24Z")

</div>

**Your software**  
My Mautic version is:4.4.0  
My PHP version is: 8.0.20  
My Database type and version is: 10.3.34-MariaDB-0ubuntu0.20.04.1

**Your problem** I installed mautic on [https://hostinger.com/](https://hostinger.com/) with the domain name **[mailing.4lead.net](http://mailing.4lead.net/)**

Then after 3 months I installed mautic 4.4.0 on [https://www.hetzner.com/](https://www.hetzner.com/) clouding and transfer the old database from Hostinger to the new hosting “Hetzner” with anew domain name **[automate.imtelak.com](http://automate.imtelak.com/)**

Then delete my account on hostinger

All things is okay but when I integrate mautic by API to optimizepress “ I used [https://optimizepress.com/](https://optimizepress.com/) for my wordpress website

It gave me this error

[2022-07-06 12:08:40] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The directory “/var/www/html/mautic/var/cache/prod/jms\_serializer” is not writable.” at /var/www/html/mautic/vendor/jms/metadata/src/Cache/FileCache.php line 49 {“exception”:“[object] (InvalidArgumentException(code: 0): The directory “/var/www/html/mautic/var/cache/prod/jms\_serializer” is not writable. at /var/www/html/mautic/vendor/jms/metadata/src/Cache/FileCache.php:49)”} {“hostname”:“mautic”,“pid”:462951}

When I changed the permission by these two codes  
chmod o+r -R \*

chmod o+w -R \*

all Tags appear in the integration,But for campaigns only gave me the old campaign I made with the old domain **[mailing.4lead.net](http://mailing.4lead.net/)**

And when I add a new campaign with the new domain didn`t appear in the integration  
My problem is:

i cleared the cache alot but still the same issue  
so what is the problem?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 11, 2022, 3:49pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/2 "2022-07-11T15:49:21Z")

</div>

Did you clear the cache with the `/bin/console cache:clear` command?

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 11, 2022, 8:54pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/3 "2022-07-11T20:54:31Z")

</div>

Hi joeyk  
which one do you mean?  
php /bin/console cache:clear  
or  
sudo -u www-data php /var/www/html/mautic/bin/console cache:clear  
or  
php /var/www/html/mautic/bin/console cache:clear

and what are sifferences between all theses codes

i used this  
php /bin/console cache:clear  
and this  
/bin/console cache:clear  
and the message as you see in the picture

 ![Screenshot 2022-07-11 224825](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e544f15e4f6c8fdbb8f044686bfc7cf20ced1418.png)

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 11, 2022, 9:07pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/4 "2022-07-11T21:07:24Z")

</div>

![Screenshot 2022-07-11 230210](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c903d909b5a325d147dbde89fb0f5a6bca8de8e3.png)

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 11, 2022, 9:46pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/5 "2022-07-11T21:46:59Z")

</div>

i tried this  
php /var/www/html/mautic/bin/console cache:clear

but it gave me erroe message when i try to integrate

[2022-07-11 21:44:00] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The directory “/var/www/html/mautic/var/cache/prod/jms\_serializer” is not writable.” at /var/www/html/mautic/vendor/jms/metadata/src/Cache/FileCache.php line 49 {“exception”:“[object] (InvalidArgumentException(code: 0): The directory "/var/www/html/mautic/var/cache/prod/jms\_serializer" is not writable. at /var/www/html/mautic/vendor/jms/metadata/src/Cache/FileCache.php:49)”} {“hostname”:“mautic”,“pid”:235807}

 ![Screenshot 2022-07-11 234000](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8aed79282e31fe7fe1bbac997424c7b218164235.png)

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [July 13, 2022, 2:33pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/6 "2022-07-13T14:33:44Z")

</div>

Looks like your file permissions are messed up due to wrong user account…  
Assuming that your web server is running as www-data, please do this

```auto
chown -R www-data:www-data /var/www/html/mautic
sudo -u www-data php /var/www/html/mautic/bin/console cache:clear

```

---

<div class="post-metadata">

**Author:** ![4lead](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/4lead/32/7029_2.png) [@4lead](https://forum.mautic.org/u/4lead)\
**Post date:** [July 16, 2022, 12:26pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/7 "2022-07-16T12:26:43Z")

</div>

thanks alot ekke  
thanks alot joeyk

the support team of optimizepress tell me the problem from thier side  
so many thanks for your valuable help

 ![Screenshot 2022-07-16 141619](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7f9a53b70ab167c6569624634909d8c5df804533.png)

---

<div class="post-metadata">

**Author:** ![malik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/malik/32/433_2.png) [@malik](https://forum.mautic.org/u/malik)\
**Post date:** [December 9, 2023, 12:51pm UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/8 "2023-12-09T12:51:54Z")

</div>

OptimizePress is an awesome solution but a lot of times they come up with a new version or the integration partner comes up with a new version, the connectin stops working.

And when you report that, they solve it but sometimes it takes weeks to get the issue resolved.

If you have a membership website with hundreds of active paying members then you are in big a trouble!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [December 13, 2023, 7:10am UTC](https://forum.mautic.org/t/i-have-an-issue-with-mautic-integration/24733/9 "2023-12-13T07:10:13Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
