# Nextcloud Office (built-in CODE) broken after switching Apache from PHP 8.3 to PHP 8.4 (NC32 & NC33)

**URL:** <https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555>\
**Category:** 📄 Office\
**Tags:** update\_problems, nc32, wopi, php84, dns, collabora-built-in, php83\
**Created:** [April 21, 2026, 9:38am UTC](https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555 "2026-04-21T09:38:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NongilG](https://help.nextcloud.com/letter_avatar/nongilg/32/6_22734026db12803ebb3e059622ac3534.png) [@NongilG](https://help.nextcloud.com/u/NongilG)\
**Post date:** [April 21, 2026, 9:38am UTC](https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555/1 "2026-04-21T09:38:40Z")

</div>

> **Support intro**
>
> ## Sorry to hear you’re facing problems. 🙁
> 
> _The community help forum ([help.nextcloud.com](http://help.nextcloud.com)) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are **volunteering their time to help you.** _
> 
> **If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where Nextcloud engineers can help ensure your business keeps running smoothly.**
> 
> ## Getting help
> 
> In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
> 
> **Before clicking submit** : Please check if your query is already addressed via the following resources:
> 
> - **most of office issues are handled in** [Collabora integration guide](https://help.nextcloud.com/t/collabora-integration-guide/151879)
> - [Official documentation](https://docs.nextcloud.com) (searchable and regularly updated)
> - [How to topics and FAQs](https://help.nextcloud.com/c/how-to-faqs/9)
> - [Forum search](https://help.nextcloud.com/search)
> 
> (Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ❤

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - `32.0.8 and 33.0.2`

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Debian 12`

- Web server and version _(e.g, Apache 2.4.25)_:
  - Apache 2.4.66

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `none`

- PHP version _(e.g, 8.3)_:
  - `8.4`

- Is this the first time you’ve seen this error? (Yes / No):
  - `Yes`

- When did this problem seem to first start?
  - `after upgrade from php8.3 to php8.4`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `Old manual install, upgrade OS and NC manual`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `No`

### Summary of the issue you are facing:

I’m sharing a detailed report after troubleshooting an issue with Nextcloud Office (built-in CODE) failing after upgrading PHP from 8.3 to 8.4.

### **Environment**

- PHP:

- Apps:

### **Network**

1. No reverse proxy
2. Apache directly serving Nextcloud
3. No Apache proxy modules enabled (working setup)

### **Working configuration (baseline)**

- Apache using:

- No `proxy_*` modules enabled

- Nextcloud Office works normally:

* * *

### **Issue after upgrade**

After switching Apache to **PHP 8.4** :

- Nextcloud UI works fine

- Nextcloud Office fails to open documents

* * *

### **Observed error (browser dev tools)**

```auto
POST /apps/richdocumentscode/proxy.php?req=/cool/.../ws
Status: 400 Bad Request

```

Additional symptoms:

- Infinite loading or failure to open documents

- Some 404 errors on branding/CSS (likely secondary)

* * *

### **Key tests performed**

#### 1. CODE endpoints

```auto
/apps/richdocumentscode/proxy.php?req=/hosting/capabilities → 200 OK
/apps/richdocumentscode/proxy.php?req=/hosting/discovery → 200 OK

```

→ Built-in CODE is reachable and responding.

* * *

#### 2. WOPI endpoint test

```auto
curl -vk https://xxxxx/index.php/apps/richdocuments/wopi/files/<fileid>
→ HTTP 500

```

→ Indicates failure during document session initialization.

* * *

#### 3. Apache modules

- No proxy modules enabled in working setup:

```auto
ls /etc/apache2/mods-enabled | grep proxy
→ (empty).

```

* * *

### **Conclusion**

- The issue is **not related to** :

- The issue is specifically triggered when:

- The failure occurs during:

I spent hours debugging, searching the forum, and getting help from AI.

I restored the VM to its pre-update state, but I kept the updated version so I can test it based on your feedback.

If anyone has seen similar behavior or has insight into PHP 8.4 compatibility with Nextcloud Office, I’d appreciate feedback.

Thanks!

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_22734026db12803ebb3e059622ac3534.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [April 22, 2026, 8:32pm UTC](https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555/2 "2026-04-22T20:32:30Z")

</div>

> [@NongilG](#):
>
> ```auto
> → HTTP 500
> 
> ```
> 
> → Indicates failure during document session initialization.

What do your logs say? 500 error is going to be logged at Apache error log and/or Nextcloud log level (depending on what is going on).

---

<div class="post-metadata">

**Author:** ![MatthiasJ](https://help.nextcloud.com/user_avatar/help.nextcloud.com/matthiasj/32/50310_2.png) [@MatthiasJ](https://help.nextcloud.com/u/MatthiasJ)\
**Post date:** [April 23, 2026, 5:06am UTC](https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555/3 "2026-04-23T05:06:19Z")

</div>

I had the (potentially) the same issue on my server running NextCloudPi. The easy solution was to restart the machine.

Have you tried a restart?

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [August 19, 2026, 9:38am UTC](https://help.nextcloud.com/t/nextcloud-office-built-in-code-broken-after-switching-apache-from-php-8-3-to-php-8-4-nc32-nc33/243555/4 "2026-08-19T09:38:58Z")

</div>

This topic was automatically closed after 120 days. New replies are no longer allowed.
