Post by sandraolt » Fri Feb 23, 2024 6:33 am

Hello,
I am moving from one server to another, and most of my applications have worked just fine. However, Opencart is giving me fits.

The new server is by IONOS and is on Ubuntu 22.04.4 LTS. I have tested this on these php versions available on my server.
PHP version 8.2.16, run PHP as FastCGI application served by Apache
PHP version 8.2.16, run PHP as FPM application served by Apache
PHP version 8.1.27, PHP same options
PHP version 8.0.3, PHP same options &
PHP version 7.4.33, PHP same options

I have tried clean installs and migration/upgrades with the same error.

I have tried installing 3.0.3.8, 3.0.3.9, and the newest version through both git and uploading the files, and either way, I get this error.
Fatal error: Cannot declare class Event, because the name is already in use in /var/www/vhosts/olt.net/httpdocs/ec/system/engine/event.php on line 17

I checked my server logs, and there the error shows this:
mod_fcgid: stderr: PHP Fatal error: Cannot declare class Event, because the name is already in use in /var/www/vhosts/olt.net/httpdocs/ec/system/engine/event.php on line 17 Apache error

Any help would be appreciated.
Sandra King

New member

Posts

Joined
Thu Aug 01, 2013 2:51 am

Post by straightlight » Fri Feb 23, 2024 7:50 am

sandraolt wrote:
Fri Feb 23, 2024 6:33 am
Hello,
I am moving from one server to another, and most of my applications have worked just fine. However, Opencart is giving me fits.

The new server is by IONOS and is on Ubuntu 22.04.4 LTS. I have tested this on these php versions available on my server.
PHP version 8.2.16, run PHP as FastCGI application served by Apache
PHP version 8.2.16, run PHP as FPM application served by Apache
PHP version 8.1.27, PHP same options
PHP version 8.0.3, PHP same options &
PHP version 7.4.33, PHP same options

I have tried clean installs and migration/upgrades with the same error.

I have tried installing 3.0.3.8, 3.0.3.9, and the newest version through both git and uploading the files, and either way, I get this error.
Fatal error: Cannot declare class Event, because the name is already in use in /var/www/vhosts/olt.net/httpdocs/ec/system/engine/event.php on line 17

I checked my server logs, and there the error shows this:
mod_fcgid: stderr: PHP Fatal error: Cannot declare class Event, because the name is already in use in /var/www/vhosts/olt.net/httpdocs/ec/system/engine/event.php on line 17 Apache error

Any help would be appreciated.
Sandra King
See with OC v3.2 if you're able to reproduce this error message while using the upgrade.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sandraolt » Fri Feb 23, 2024 9:39 am

See with OC v3.2 if you're able to reproduce this error message while using the upgrade.
Hello,
I am looking at https://www.opencart.com/index.php?rout ... ad/history and I don't see that version?

New member

Posts

Joined
Thu Aug 01, 2013 2:51 am

Post by ADD Creative » Fri Feb 23, 2024 5:47 pm

How are you installing, by uploading the files and going to install or using a third party installer?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by sandraolt » Sat Feb 24, 2024 5:49 am

How are you installing, by uploading the files and going to install or using a third party installer?
Hello,
I am most familiar and comfortable downloading the file from opencart, uploading it to my server and expanding it, then moving files from upload to the intended folder (one level above) and running the install. I have also used the git installer a couple of times, but I am not truly comfortable in git.
Sandra

New member

Posts

Joined
Thu Aug 01, 2013 2:51 am

Post by xxvirusxx » Sat Feb 24, 2024 4:05 pm

If you talk about this https://github.com/opencart/opencart/tree/3.0.x.x

Work just fine on an Ionos server.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by ADD Creative » Sat Feb 24, 2024 8:33 pm

Check your PHP extensions to see if you have an event extension. phpinfo() may tell you.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by straightlight » Sat Feb 24, 2024 9:06 pm

sandraolt wrote:
Fri Feb 23, 2024 9:39 am
See with OC v3.2 if you're able to reproduce this error message while using the upgrade.
Hello,
I am looking at https://www.opencart.com/index.php?rout ... ad/history and I don't see that version?
It's on the Github repository: https://www.github.com/opencart/opencart-3

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 6 guests