# Parse error on preview

**URL:** <https://forums.realmacsoftware.com/t/parse-error-on-preview/43609>\
**Category:** RapidWeaver Classic\
**Created:** [June 30, 2024, 12:04pm UTC](https://forums.realmacsoftware.com/t/parse-error-on-preview/43609 "2024-06-30T12:04:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcandage](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@dcandage](https://forums.realmacsoftware.com/u/dcandage)\
**Post date:** [June 30, 2024, 12:04pm UTC](https://forums.realmacsoftware.com/t/parse-error-on-preview/43609/1 "2024-06-30T12:04:27Z")

</div>

I’m using Rapidweaver 8 on a 12 yr old Mac running Mojave. I’m having a problem right now with preview. On this one site I’m working on (it’s been up for years, but I’m making some changes), I’m having preview issues. The site uses Stacks and TotalCMS. I often go months without even opening RW, as I don’t need to do anything to the few sites I have up. It seems like every time I do, there’s some new issue that pops up out of nowhere.  
Here’s the error I’m getting this time:

**Parse error** : syntax error, unexpected ‘string’ (T\_STRING), expecting function (T\_FUNCTION) or const (T\_CONST) in **/private/var/folders/tk/h6fkzyyn1ld\_6k41mf4w0gmh0000gn/T/com.realmacsoftware.rapidweaver8/RapidWeaver/578/document-0x7fec55ec8f30/RWDocumentPagePreview/rw\_common/plugins/stacks/total-cms/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php** on line **23**

---

<div class="post-metadata">

**Author:** ![scottsteven](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/scottsteven/32/3418_2.png) [@scottsteven](https://forums.realmacsoftware.com/u/scottsteven)\
**Post date:** [June 30, 2024, 12:18pm UTC](https://forums.realmacsoftware.com/t/parse-error-on-preview/43609/2 "2024-06-30T12:18:40Z")

</div>

**strong text** \> Upgrading to PHP 8.2 with RapidWeaver 8

If you’re using RapidWeaver 8 and have found that PHP 7.4 is impeding your workflow because your site requires PHP 8.2, you have a couple of options to consider. Let’s explore how to manage this situation effectively, whether you’re previewing your site locally or need a solution that includes PHP 8.2 directly.

**Why Upgrade to PHP 8.2?**  
PHP 8.2 comes with numerous improvements over PHP 7.4, including enhanced performance, security features, and new language syntaxes. For those running websites that require the latest features and security updates, staying up-to-date with the latest PHP version is crucial.

**Option 1: Using MAMP for Local Preview**

One of the simplest ways to ensure you can preview your site using PHP 8.2 with RapidWeaver 8 is by using MAMP. MAMP allows you to run a local server environment on your Mac, where you can specify the PHP version.

**Steps to Set Up MAMP with PHP 8.2**

1. **Download and Install MAMP** :

2. **Configure PHP 8.2 in MAMP** :

3. **Link RapidWeaver to MAMP** :

**Option 2: Upgrading to RapidWeaver Classic**

If you prefer a more integrated solution that includes PHP 8.2 directly within the application, upgrading to RapidWeaver Classic might be the best route. RapidWeaver Classic comes with built-in support for PHP 8.2, eliminating the need for external configurations.

**Benefits of RapidWeaver Classic**

- **Built-In PHP 8.2 Support** : No need for additional server configurations or installations.
- **Seamless Workflow** : Enhanced features and tools that streamline the development process.
- **Continuous Updates** : Regular updates ensure compatibility with the latest web standards and technologies.

**How to Upgrade**

1. **Purchase RapidWeaver Classic** :

2. **Install and Set Up** :

**Conclusion**

Whether you choose to use MAMP to manage your local server environment or upgrade to RapidWeaver Classic for built-in PHP 8.2 support, both solutions will help you keep your site running smoothly and securely with the latest PHP version. Upgrading ensures that you can take advantage of the latest features and improvements, making your development process more efficient and future-proof.

For more detailed guidance, check out the official documentation for [MAMP](https://documentation.mamp.info/) and [RapidWeaver Classic](https://www.realmacsoftware.com/rapidweaver/support/).

Happy weaving!
