# Fatal error: Cannot redeclare function resolveToAbsoluteWebPath() …

**URL:** <https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891>\
**Category:** Elements CMS\
**Created:** [March 5, 2026, 8:47pm UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891 "2026-03-05T20:47:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElementsMichael](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/elementsmichael/32/33937_2.png) [@ElementsMichael](https://forums.realmacsoftware.com/u/ElementsMichael)\
**Post date:** [March 5, 2026, 8:47pm UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891/1 "2026-03-05T20:47:47Z")

</div>

Hi. I updated to 2.1 today and wanted to work further on my project … but now, if I want to preview it, the error appears:

**Fatal error** : Cannot redeclare function resolveToAbsoluteWebPath() (previously declared in /Users/work/Library/Containers/com.realmacsoftware.rapidweaverelements/Data/tmp/RapidWeaver/1209/RWDocumentPagePreview/document-A8EF946F-AFF5-4721-AD96-3E585637567B/index.php:470) in **/Users/work/Library/Containers/com.realmacsoftware.rapidweaverelements/Data/tmp/RapidWeaver/1209/RWDocumentPagePreview/document-A8EF946F-AFF5-4721-AD96-3E585637567B/index.php** on line \*\*924

\*\*  
… any idea, what causes it?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 5, 2026, 11:12pm UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891/2 "2026-03-05T23:12:44Z")

</div>

Sorry, this is indeed a bug with Elements 2.1 — We’ll be shipping an update tomorrow morning (Friday 6th March) to fix this issue!

---

<div class="post-metadata">

**Author:** ![ElementsMichael](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/elementsmichael/32/33937_2.png) [@ElementsMichael](https://forums.realmacsoftware.com/u/ElementsMichael)\
**Post date:** [March 6, 2026, 7:19am UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891/3 "2026-03-06T07:19:21Z")

</div>

Great! Thank you @dan

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [March 6, 2026, 11:50am UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891/4 "2026-03-06T11:50:27Z")

</div>

Hey @ElementsMichael Elements 2.1.1 is now live and should fix this issue for you!

---

<div class="post-metadata">

**Author:** ![ElementsMichael](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/elementsmichael/32/33937_2.png) [@ElementsMichael](https://forums.realmacsoftware.com/u/ElementsMichael)\
**Post date:** [March 6, 2026, 4:38pm UTC](https://forums.realmacsoftware.com/t/fatal-error-cannot-redeclare-function-resolvetoabsolutewebpath/54891/5 "2026-03-06T16:38:50Z")

</div>

Thank you. Updated, checked and everything works! Perfect!
