Post by dandys71 » Thu Oct 22, 2020 4:43 am

Hello there,

I got very strange issue. After I load my web page, the style of page is broken (header and footer). I found out its caused of missing spaces beetwen values in class, for ex.

Code: Select all

<nav id="header-navigation" class="hide-on-small-only pin-topblue-grey darken-2 pin-top" style="top: 0px;">
. As you can see the space is missing (between pin-top and blue-grey) and that is the reason why page looks broken. I use Materialize template for Opencart, and Opencart v3.0.3.2.

This thing started happen after I copied one shop to create new one then just delete products, change logo, etc. and I CLEARED cache (but modification cache, because I uninstalled some unnecessary modules). After that step it looks like now. I tried to restore backups, copied it again from first eshop and still the same. So I created clear install of Opencart (3.0.3.2), created new database and then I installed the Materialize Template. But it still looks the same.

After staring to code I found the missing spaces. So I had a look to twig files of footer and header, and everything was fine - spaces were there. Also when I checked it in administration theme editor, it was the same - space were there. I tried to manually delete cache in storage (no effect), I also checked modification in storage - there weren't any view files.

I have no idea what to do, I tried many browser, I tried to change web from non-www to www (some tut on Internet) and nothing helped. Do you have any idea?

Thank you.
Last edited by dandys71 on Thu Oct 22, 2020 5:30 pm, edited 2 times in total.

Newbie

Posts

Joined
Sun Nov 17, 2019 1:05 am

Post by xxvirusxx » Thu Oct 22, 2020 3:18 pm

Try to contact theme developer. Maybe that theme is broken...

OC 2.3.0.2 | OC 3.0.3.6 | Extensions converted by me | Buy me a beer


User avatar
Expert Member

Posts

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

Post by dandys71 » Thu Oct 22, 2020 4:06 pm

xxvirusxx wrote:
Thu Oct 22, 2020 3:18 pm
Try to contact theme developer. Maybe that theme is broken...
Thank you for response. Maybe I din't told it right firstly. The first eshop I copied it from works fine with this theme. It was broken too but I was able to repair it from backup. It stoped work after I cleared modification cache when I tried to un/install Facebook module. But I don't think is caused by Facebook module, because new installation is without this module and it doen't work too.

I can try to contact him but he does not seem to care about this module on github anymore.

I don't understand TWIG very well, but isn't there some loader of twig template? Is really strange that template is fine with spaces but on web something trim some spaces (also is strange it just trim some spaces not every and only in class tag...)

Newbie

Posts

Joined
Sun Nov 17, 2019 1:05 am

Post by sw!tch » Thu Oct 22, 2020 4:13 pm

Try PHP 7.3. In some cases there can be spacing issues with twig on PHP 7.4 on OC 3 versions prior to 3.0.3.6

Otherwise this is a custom theme you need to reach out to the theme developer.

Backup and learn how to recover before you make any changes!
Full Stack Web Developer :: Contact via PM for custom work.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by dandys71 » Thu Oct 22, 2020 4:57 pm

sw!tch wrote:
Thu Oct 22, 2020 4:13 pm
Try PHP 7.3. In some cases there can be spacing issues with twig on PHP 7.4 on OC 3 versions prior to 3.0.3.6

Otherwise this is a custom theme you need to reach out to the theme developer.
Ohh, it works!!! Thank you, my hero! :)

Newbie

Posts

Joined
Sun Nov 17, 2019 1:05 am
Who is online

Users browsing this forum: No registered users and 31 guests