Post by StepKov » Sun Jul 04, 2021 11:22 pm

When I was working with backend in library/cart/cart.php, I forgot to put ; in the end of a line.
After clearing modification I got an error:
Parse error: syntax error, unexpected 'if' (T_IF) in /home/vodolika/mmi.kiev.ua/storage/modification/system/library/cart/cart.php on line 187
Now there is white screen with my error everywhere and I can't refresh modification because of it.
Plz help.
Ps. I have already cleared storage/cache folder.

Newbie

Posts

Joined
Thu Jan 14, 2021 1:15 am

Post by ADD Creative » Mon Jul 05, 2021 12:27 am

Clear the storage/modification folder. This will remove the modifications and should let you login.

www.add-creative.co.uk


Guru Member

Posts

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

Post by StepKov » Mon Jul 05, 2021 12:33 am

In /admin/controller/startup I commented $this->registry->set('cart', new Cart\Cart($this->registry));
After taht the site started to work, so I can update the modification.
After that I brought back $this->registry->set('cart', new Cart\Cart($this->registry)); in /admin/controller/startup.

Ps: Sorry fot bad english.
Last edited by StepKov on Mon Jul 05, 2021 12:35 am, edited 1 time in total.

Newbie

Posts

Joined
Thu Jan 14, 2021 1:15 am

Post by StepKov » Mon Jul 05, 2021 12:34 am

ADD Creative wrote:
Mon Jul 05, 2021 12:27 am
Clear the storage/modification folder. This will remove the modifications and should let you login.
It didn't.

Newbie

Posts

Joined
Thu Jan 14, 2021 1:15 am

Post by straightlight » Mon Jul 05, 2021 2:27 am

StepKov wrote:
Mon Jul 05, 2021 12:34 am
ADD Creative wrote:
Mon Jul 05, 2021 12:27 am
Clear the storage/modification folder. This will remove the modifications and should let you login.
It didn't.
Cache issues. Ensure your storage folder is located outside of your public_html folder and your CHMOD settings are recursively set to 0755 on your sub-folders and main folder (not files!) . Then, to edit both config.php files to address your new path accordingly.

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 ADD Creative » Mon Jul 05, 2021 6:29 am

StepKov wrote:
Mon Jul 05, 2021 12:34 am
ADD Creative wrote:
Mon Jul 05, 2021 12:27 am
Clear the storage/modification folder. This will remove the modifications and should let you login.
It didn't.
Look in your PHP and OpenCart error logs.

www.add-creative.co.uk


Guru Member

Posts

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

Users browsing this forum: No registered users and 60 guests