Post by tjonnyc » Tue Oct 03, 2017 4:07 am

Having an interesting problem. I was making changes to the template last night, and everything was working fine... until suddenly it didn't.
Changes I was making to the template category.twig were just not showing up.
I cleared the Journal Cache, Theme Cache, SASS Cache, and browser cache. Nothing.
I can get the file from FTP, I can make changes to it, I can re-upload it by FTP, and I can see that the changes were made.
But the actual page is still reading some old version of category.twig

According to tech support, the problem could be that the /ocartdata/ folder is located OUTSIDE of /public_html/, and somehow either OpenCart, or Journal2, or one of the extensions, cannot write to it.

Has anyone run into this problem before (changes to template not showing up all of a sudden), and if so, what did you do to resolve it?

Active Member

Posts

Joined
Tue Dec 21, 2010 5:05 am

Post by tjonnyc » Tue Oct 03, 2017 4:08 am

Also, what happens if you just straight up delete the files in /ocartdata/storage/cache/?

Active Member

Posts

Joined
Tue Dec 21, 2010 5:05 am

Post by straightlight » Tue Oct 03, 2017 8:19 am

Since you're using the Journal2 theme, I would suggest to contact the theme developer of that extension to get this issue resolved. One way you could test if there are similar results would be by switching back to the default theme. If the results can't be reproduced, then it would be an issue with the Journal2 theme.

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 Micas » Fri Nov 24, 2017 9:27 pm

Hi,
Did you manage to resolve this issue? I seem to be getting a similar problem.
I'm using the default theme on opencart 3.0.2 and I have edited the /admin/view/template/sale/order_invoice.twig so that it doesn't show the phone number on the invoice printout but no changes are taking effect?
The only place I can think that opencart can now be storing a copy of the file is in the /ocartdata/storage/cache/ ....but I don't know if it is save to delete the cache folders or not?
Any help from anyone would be much appreciated :)

New member

Posts

Joined
Sat Sep 02, 2017 12:28 am

Post by straightlight » Fri Nov 24, 2017 10:11 pm

You need to clear all caches from the admin dashboard (blue icon on the top right) and from your admin - > extensions - > modifications - > refresh button when making changes to the TWIG files.

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 sajuk » Wed Nov 13, 2024 7:08 am

Searching to find answers to the same problem, cleared all the cache, modification, cleared theme cache, still no joy,,

I know there is some cache issue, as i tested the site by simply renaming the header.twig but the site still loads and works fine, should see an error file not found,
which means it is loading the file an old version of the site from somewhere.

New member

Posts

Joined
Tue Feb 07, 2017 7:10 pm

Post by sajuk » Wed Nov 13, 2024 7:19 am

I think i Found the issue..for me anyway,,
check if the file is in -> Design -> Theme editor ->
if it is there delete it (red button)
go to website front end refresh (f5) page and it should work with the new changes

New member

Posts

Joined
Tue Feb 07, 2017 7:10 pm

Post by JNeuhoff » Wed Nov 13, 2024 6:30 pm

This thread is 7 years old, and the original poster was using the old Journal2 framework, not a proper OpenCart. But you are right, don't use the theme editor and OCmod-based modification at the same time, they might clash with each other.

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


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 6 guests