# HELP! PDF Assets are Broken!

**URL:** https://forum.mautic.org/t/help-pdf-assets-are-broken/8645
**Category:** Product Support
**Created:** [June 2, 2017, 1:44pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645 "2017-06-02T13:44:20Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mattgraphichive](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mattgraphichive](https://forum.mautic.org/u/mattgraphichive)
#### Post date: [June 2, 2017, 1:44pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/1 "2017-06-02T13:44:20Z")

</div>

Hi there!  
  
  
  
I’ve been using Mautic for a few months now. The assets that I typically upload and use in my emails are pdfs. Today, I was building a new campaign and went to upload my new pdf. The pdf failed to upload. When I went and looked at the other pdf assets that I’ve used before, they’re now all broken too. Instead of loading the asset, I’m getting a “Uh oh! I think I broke it. If I do it again, please report me to the system administrator! 500 Internal Server Error” message.  
  
  
  
[Here’s a link to one of the previously working assets.](http://automation.thegraphichive.com/asset/3:ten-ways-promotional-items-can-change-your-race-daypdf)  
  
  
  
Anyone have any clue what’s going on???

---

<div class="post-metadata">

### Author: ![mattgraphichive](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mattgraphichive](https://forum.mautic.org/u/mattgraphichive)
#### Post date: [June 2, 2017, 1:44pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/2 "2017-06-02T13:44:20Z")

</div>

Hi there!

I’ve been using Mautic for a few months now. The assets that I typically upload and use in my emails are pdfs. Today, I was building a new campaign and went to upload my new pdf. The pdf failed to upload. When I went and looked at the other pdf assets that I’ve used before, they’re now all broken too. Instead of loading the asset, I’m getting a “Uh oh! I think I broke it. If I do it again, please report me to the system administrator! 500 Internal Server Error” message.

[Here’s a link to one of the previously working assets.](http://automation.thegraphichive.com/asset/3:ten-ways-promotional-items-can-change-your-race-daypdf)

Anyone have any clue what’s going on???

---

<div class="post-metadata">

### Author: ![mattgraphichive](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mattgraphichive](https://forum.mautic.org/u/mattgraphichive)
#### Post date: [June 2, 2017, 2:06pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/3 "2017-06-02T14:06:08Z")

</div>

[2017-06-02 10:29:57] mautic.CRITICAL: Uncaught PHP Exception GuzzleServiceExceptionValidationException: “Validation errors: [Bucket] is a required string” at /home/automation/public\_html/vendor/guzzle/guzzle/src/Guzzle/Service/Command/AbstractCommand.php line 357 {“exception”:"[object] (Guzzle\Service\Exception\ValidationException(code: 0): Validation errors: [Bucket] is a required string at /home/automation/public\_html/vendor/guzzle/guzzle/src/Guzzle/Service/Command/AbstractCommand.php:357)"} []  
[2017-06-02 10:32:05] mautic.WARNING: PHP Warning - file\_get\_contents(/home/tghbluehost/public\_html/automation/app/…/media/files/1eda2c4c4bd21ed99fa9b22e09bc658a43be7b43.pdf): failed to open stream: No such file or directory - in file /home/automation/public\_html/app/bundles/AssetBundle/Entity/Asset.php - at line 1144 [] []

---

<div class="post-metadata">

### Author: ![mattgraphichive](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mattgraphichive](https://forum.mautic.org/u/mattgraphichive)
#### Post date: [June 2, 2017, 2:50pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/4 "2017-06-02T14:50:13Z")

</div>

Ok…i figured out what the issue is. We migrated the Mautic installation from one VPS to another. For some reason, Mautic is configured to look at the right place for local.php, cache, logs, images, translations and spool, but for media/files, it’s still looking at the old server. How do I change that?

---

<div class="post-metadata">

### Author: ![mattgraphichive](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mattgraphichive](https://forum.mautic.org/u/mattgraphichive)
#### Post date: [June 2, 2017, 2:54pm UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/5 "2017-06-02T14:54:06Z")

</div>

Got it!! Thanks for your help!!

---

<div class="post-metadata">

### Author: ![derrickm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derrickm/32/31_2.png) [@derrickm](https://forum.mautic.org/u/derrickm)
#### Post date: [July 25, 2017, 4:23am UTC](https://forum.mautic.org/t/help-pdf-assets-are-broken/8645/6 "2017-07-25T04:23:49Z")

</div>

The path to the asset directory is stored in app/config/local.php,  
but it can be set from the dashboard - Configuration|Asset Settings|Path to the asset directory.
