This topic is locked
[SOLVED]

Docman__functions.php Error

6/19/2025 5:31:31 AM
DocManager template
Tandy author

Hello all.. It has been a bit and just starting back into re-installing my old site. I updated the DocManager template. I upload to the new server and I am getting this error?

Fatal error: Cannot redeclare formatBytes() (previously declared in /home/tandyservices/public_html/docman_functions.php:18)

I am using PHPRunner 10.91
My PHP is set to 8.1

Any help would be great

Thank you
James

Sergey Kornilov admin 6/19/2025

As a first step - I would make sure that you use the latest versions of both PHPRunner 10.91 and DocManager template. If this project was created a long time ago, you also need to follow the procedure to upgrade the template in this project as well.

If nothing helps - you need to contact support directly.

Tandy author 6/19/2025

Thank you for your reply. Yes it is all new.. Old site but had to update the calendar and DocManager. The site works fine on my Laptop testing. But when I upload it to the new server. It only has that error..
That is why I put that the new server has php 8.1.. The site has nothing but errors on 8.4 lots of depreciated codes.. But 8.1 is what I am running on my laptop with WAMP..

Tandy author 6/19/2025

Just figured it out. Found out there was a double code in a event code..