Page 1 of 3

Layout Not Working

Posted: Fri Jan 08, 2021 3:59 am
by Gobbo
Dear All,

I'm now getting very frustrated after spending £100's of pounds for extensions and fixes, now my layout isn't working at all.

Has anyone else had the same problem with this version?

Re: Layout Not Working

Posted: Fri Jan 08, 2021 4:09 am
by sw!tch
More specifics, link to your site?

Re: Layout Not Working

Posted: Fri Jan 08, 2021 4:20 am
by mikeinterserv
Gobbo wrote:
Fri Jan 08, 2021 3:59 am
after spending £100's of pounds for extensions and fixes, now my layout isn't working at all.
That's probably your problem right there.
Without more info its a bit difficult for anyone to help

Re: Layout Not Working

Posted: Fri Jan 08, 2021 4:46 am
by by mona
Hi Gobbo,

OC 3.0.3.2 is one of my favourite OC version as it is very stable.
I am not sure what the “fixes” are.
There is nothing wrong with having many extensions, Opencart is built to customise with extensions, however not all extensions are created the same and free extensions are often not the best choice. Again it depends, some developers give out “free” versions to basically get users to find bugs, but good developers will still fix these bugs on a free version. There are a good many quality developers out there but unfortunately unless users go back and rate extension more, it will always be difficult for other users.

The issue usually arises where extensions are not compatible with other extensions, so a good place to start is to check those first. That is not to say they are not quality, it is simply the way it works when you edit something, for example you may edit the same line of code, so one or both will no longer work.

Themes that alter a lot of code also cause issues.

Also you have not provide error logs. This is another place to look. OC logs, Modification logs (vqmod logs if you use that also, and if you are that can cause many issues and is advised against unless you know what you are doing) and server logs. (Oh and just for straightlight - in the unlikely event that EVENTS are also used, you should check those also, but that might be covered in the logs, otherwise its just checking what they are and if they are from standard opencart)

In addition if it is your layouts, then do you have a modification on that? I have had to replace many of those from OC2 upgrades using vie, who no longer work.

And lastly as Sw!tch point out, a link to your website is usually quite helpful and feel free to PM someone with it if it is X rated etc - usually the best person would be the person who asks for it.

Re: Layout Not Working

Posted: Fri Jan 08, 2021 4:58 am
by Gobbo
Its not x rated, it's (deleted for SEO purposes).

Bang goes the seo.

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:02 am
by sw!tch
Under layouts do you see home? Whats the problem exactly?

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:06 am
by by mona
;) feel free to delete it .. we do get it

Just as a thought - is this using the 'built in' html custom module on the home page?
Another obvious place to look

and your logs please

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:27 am
by mikeinterserv
Its like you got the default layout instead of home that should have some content
Is your home page generally home layout or custom layout

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:36 am
by Gobbo
2020-11-10 19:05:27 - PHP Warning: require(/home/sites/(deleted for SEO purposes)/public_html/system/library/pos/vendor/autoload.php): failed to open stream: No such file or directory in /home/sites/(deleted for SEO purposes)/public_html/admin/controller/pos/product.php on line 11


The paths are all correct.

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:45 am
by by mona
controller/pos is not opencart
So there is something wrong with that - which I am assuming pos stands for positions - which would explain why none of your layouts are working

This is the method vie also uses
Are you using vie?

Re: Layout Not Working

Posted: Fri Jan 08, 2021 5:48 am
by mikeinterserv
POS is probably point of sale.
What's on line 11 of product.php
This is probably a paths or permissions issue

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:05 am
by Gobbo
Yes POS is a Point Of Sale extension:

https://www.opencart.com/index.php?rout ... search=pos

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:07 am
by Gobbo
And this is on line 11:

require DIR_SYSTEM . 'library/pos/vendor/autoload.php';

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:15 am
by mikeinterserv
Check permissions on autoload.php
This is really something you maybe should address to the POS developers as the problem lies with their extension.
Apparently they have good support

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:20 am
by Gobbo
Autoload.php, is asking for '/composer/autoload_real.php', which doesn't exist :-(

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:29 am
by by mona
I am not sure how that extension can effect your layouts exactly and appears to be be a separate entity with a separate login.
I also just noticed that error log is for Nov 2020, not today.

The developer will provide a copy of the file you are missing.

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:33 am
by mikeinterserv
Gobbo wrote:
Fri Jan 08, 2021 6:20 am
Autoload.php, is asking for '/composer/autoload_real.php', which doesn't exist :-(
Needs to be
'/vendor/composer/autoload_real.php',

Look and see if composer is in vendor I think it is

Re: Layout Not Working

Posted: Fri Jan 08, 2021 6:55 am
by sw!tch
by mona wrote:
Fri Jan 08, 2021 6:29 am
I also just noticed that error log is for Nov 2020, not today.

The developer will provide a copy of the file you are missing.
^ Correct. Unless you have recent logs pointing to this error it's unlikely related. Changing random stuff may lead to further issues. First reach out to the extension developer for issues related to their product.

If this is related to layouts then advise the original question asked.

Re: Layout Not Working

Posted: Sat Jan 09, 2021 6:17 am
by Gobbo
The latest warning I got was this:

2021-01-05 21:27:14 - PHP Warning: unlink(/home/sites/(deleted for SEO purposes)/storage/cache/cache.catalog.language.1609883641): No such file or directory in /home/sites/(deleted for SEO purposes)/public_html/system/library/cache/file.php on line 68

Re: Layout Not Working

Posted: Sat Jan 09, 2021 11:31 am
by straightlight
Gobbo wrote:
Sat Jan 09, 2021 6:17 am
The latest warning I got was this:

2021-01-05 21:27:14 - PHP Warning: unlink(/home/sites/comicbookxs.com/storage/cache/cache.catalog.language.1609883641): No such file or directory in /home/sites/comicbookxs.com/public_html/system/library/cache/file.php on line 68
FAQ: viewtopic.php?f=134&t=215776#p750077