Post by mahirstudio » Sun May 26, 2024 4:56 pm

I suddenly noticed my opencart site shows error on checkout page

Code: Select all

Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) or const (T_CONST) in /home3/waxbikhz/jsale_data/storage/modification/catalog/controller/checkout/checkout.php on line 157
Kindly help how can I sort it out. Thanks in advance.

Newbie

Posts

Joined
Mon Jul 20, 2020 12:24 pm

Post by ADD Creative » Sun May 26, 2024 9:12 pm

It would be helpful to provide more information such as your OpenCart version. It could be caused by an extension. Try disabling your extensions one by one.

If it's a live site, you should not have display errors on anyway.

www.add-creative.co.uk


Expert Member

Posts

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

Post by mahirstudio » Mon May 27, 2024 3:49 pm

Version 3.0.3.8
Using just 4 third-party extensions the site was working fine. But suddenly started showing errors. Error Code shared in the main post. Kindly help.

Newbie

Posts

Joined
Mon Jul 20, 2020 12:24 pm

Post by ADD Creative » Mon May 27, 2024 5:45 pm

That error is telling you that there is an error on line 157 of storage/modification/catalog/controller/checkout/checkout.php. Since that file has been modified by an extension, you need to work out which one.

www.add-creative.co.uk


Expert Member

Posts

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

Post by mahirstudio » Tue May 28, 2024 3:41 pm

Removed all extension still same issue.

Newbie

Posts

Joined
Mon Jul 20, 2020 12:24 pm

Post by ADD Creative » Tue May 28, 2024 4:19 pm

Did you refresh the modifications after removing extensions?

www.add-creative.co.uk


Expert Member

Posts

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

Post by JNeuhoff » Tue May 28, 2024 5:02 pm

mahirstudio wrote:
Tue May 28, 2024 3:41 pm
Removed all extension still same issue.
If it is still the same error, then you haven't fully removed your extensions. In a standard OpenCart there is no need to modify the checkout.php file.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by mahirstudio » Wed May 29, 2024 2:21 pm

I checked the .php file at the specified path and found that a missing bracket was causing the issue. After adding the bracket, the file started working correctly. I'm not sure how the bracket was removed, but everything is functioning now. Thank you for your assistance and time.

Newbie

Posts

Joined
Mon Jul 20, 2020 12:24 pm

Post by paulfeakins » Wed May 29, 2024 9:30 pm

mahirstudio wrote:
Wed May 29, 2024 2:21 pm
I checked the .php file at the specified path and found that a missing bracket was causing the issue. After adding the bracket, the file started working correctly. I'm not sure how the bracket was removed, but everything is functioning now.
Your system will break next time you install an extension or clear any caches. You need to find out what extension it was and tell the developer to fix it properly.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 35 guests