Post by brydekirk » Sun Jul 26, 2020 9:20 pm

Hi Guys,

I have somehow managed to upset the Admin for my site - it works but no longer displays as it should and is unmanageable. I'm guessing that it's a stylesheet issue but I can't find it.
I have attached a couple of screenshots, if anyone can help.

Thanks, Ian

Opencart version: 3.03.1

Attachments

Screenshot - 2020-07-26T140225.201.png

Screenshot - 2020-07-26T140225.201.png (43.97 KiB) Viewed 1670 times

Screenshot - 2020-07-26T141202.251.png

Screenshot - 2020-07-26T141202.251.png (21.1 KiB) Viewed 1670 times


New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by netruxa » Sun Jul 26, 2020 10:44 pm

may be you open https://[your site], but in config.php defined server with protocol http:// ?

User avatar
New member

Posts

Joined
Fri Dec 16, 2016 1:34 pm


Post by JNeuhoff » Sun Jul 26, 2020 10:53 pm

It's unable to get the stylesheet. What's the URL of your site?

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 brydekirk » Sun Jul 26, 2020 11:04 pm

Thanks but I've checked that the config files haven't changed in a while......

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Sun Jul 26, 2020 11:17 pm

and the web address is ??

I have somehow managed to upset the Admin for my site
undo whatever you did ..

I'm guessing that it's a stylesheet issue
we would probably guess the same

I have attached a couple of screenshots
thank you, this helps to understand better than “ admin don’t work “

if anyone can help.
for free .. please post your web address
if you ask nicely you may even get offered the option to send PM someone so as not to post it .. but you can easily remove it once it is fixed.


No OC version posted and no theme posted and no extensions posted
so .. after all of that wasted time .. please post your web address or feel free to contact commercial support to help you fix this issue.

I could waste more time running through a whole more list of questions like, when you say
but I can't find it
do you mean it is not there or you don’t know where to look for it ..

why make us work hard and guess when you can assist ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Sun Jul 26, 2020 11:33 pm

The Opencart version is: 3.0.3.1 (as mentioned in my original post)

The website url is: www.gallowayfudge.com

and to clarify - I have removed the changes I made as far as I can tell and I would contact technical support but as it's a Sunday and I would really like to get it fixed I decided the best thing was ask for help here........ :)

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 12:09 am

support as in commercial support as in - viewforum.php?f=88
They work Sundays !

So your stylesheet is linking to here ...
https://www.gallowayfudge.com/admin/cat ... esheet.css
and should be linking to
https://www.gallowayfudge.com/admin/vie ... esheet.css

so I would guess you changed your header.twig, if you are sure you didn’t change something in your config?
and to be clear admin/view/template/common/header.twig

( A clue of what you did - the path for the stylesheet is for the front end with the folder admin/ at the beginning. Admin is not set up like the front end (not exactly anyway)

and i missed the OC version .. it happens .. thank you for posting that .. accept my humble apologies - i like fudge - I like scots also :)

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Mon Jul 27, 2020 12:53 am

Thanks for your help Mona...

I don't think that header.twig has been changed (copy below) but just to be sure I have uploaded it from backup and it doesn't seem to make any difference. :(

Am I correct is assuming that this line in the Chrome view-source shows the problem ?

<base href="https://gallowayfudge.com/admin/" />

header.twig

<!DOCTYPE html>
<html dir="{{ direction }}" lang="{{ lang }}">
<head>
<meta charset="UTF-8" />
<title>{{ title }}</title>
<base href="{{ base }}" />
{% if description %}
<meta name="description" content="{{ description }}" />
{% endif %}
{% if keywords %}
<meta name="keywords" content="{{ keywords }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<script type="text/javascript" src="view/javascript/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="view/javascript/bootstrap/js/bootstrap.min.js"></script>
<link href="view/stylesheet/bootstrap.css" type="text/css" rel="stylesheet" />
<link href="view/javascript/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script src="view/javascript/jquery/datetimepicker/moment/moment.min.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/moment/moment-with-locales.min.js" type="text/javascript"></script>
<script src="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<link href="view/javascript/jquery/datetimepicker/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet" media="screen" />
<link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="screen" />
{% for style in styles %}
<link type="text/css" href="{{ style.href }}" rel="{{ style.rel }}" media="{{ style.media }}" />
{% endfor %}
{% for link in links %}
<link href="{{ link.href }}" rel="{{ link.rel }}" />
{% endfor %}
<script src="view/javascript/common.js" type="text/javascript"></script>
{% for script in scripts %}
<script type="text/javascript" src="{{ script }}"></script>
{% endfor %}
</head>
<body>
<div id="container">
<header id="header" class="navbar navbar-static-top">
<div class="container-fluid">


<div id="header-logo" class="navbar-header"><a href="{{ home }}" class="navbar-brand"><img src="view/image/logo.png" alt="{{ heading_title }}" title="{{ heading_title }}" /></a></div>
<a href="#" id="button-menu" class="hidden-md hidden-lg"><span class="fa fa-bars"></span></a>{% if logged %}




<ul class="nav navbar-nav navbar-right">
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="{{ image }}" alt="{{ firstname }} {{ lastname }}" title="{{ username }}" id="user-profile" class="img-circle" />{{ firstname }} {{ lastname }} <i class="fa fa-caret-down fa-fw"></i></a>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="{{ profile }}"><i class="fa fa-user-circle-o fa-fw"></i> {{ text_profile }}</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">{{ text_store }}</li>
{% for store in stores %}
<li><a href="{{ store.href }}" target="_blank">{{ store.name }}</a></li>
{% endfor %}
<li role="separator" class="divider"></li>
<li class="dropdown-header">{{ text_help }}</li>
<li><a href="http://www.opencart.com" target="_blank"><i class="fa fa-opencart fa-fw"></i> {{ text_homepage }}</a></li>
<li><a href="http://docs.opencart.com" target="_blank"><i class="fa fa-file-text-o fa-fw"></i> {{ text_documentation }}</a></li>
<li><a href="http://forum.opencart.com" target="_blank"><i class="fa fa-comments-o fa-fw"></i> {{ text_support }}</a></li>
</ul>
</li>
<li><a href="{{ logout }}"><i class="fa fa-sign-out"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_logout }}</span></a></li>
</ul>
{% endif %} </div>
</header>

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 1:20 am

that is the correct path as a base ref for your admin

You appear to be using your front end header for you back end
see attached ..

have you changed something in the controller to take the catalog header and not the admin one?
I can only see your login .. but the header for your login is the front end (catalog)
the base path is correct for admin .. so now you have admin/... front end path ...
the ...front end path .. is incorrect

I have to think for a second what you could have done to cause that .. not something that is coming off the top of my head
clearly not something someone would try to do on purpose ..

Attachments


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by by mona » Mon Jul 27, 2020 1:41 am

I don't think that header.twig has been changed (copy below) but just to be sure I have uploaded it from backup and it doesn't seem to make any difference. :(
and when you did this you refreshed caches both in the modification folder and dashboard top right cog (assuming you can access that ?)

do you have the copy of the header before you uploaded from the back up because that would make perfect sense as to what you did. (i.e. copied the catalog/view/theme/default/template/common/header.twig into admin/view/common/header.twig)

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Mon Jul 27, 2020 1:51 am

Sorry to be thick.........

Are you saying that somehow I have the header.twig file which should be in admin/view/template/common in catalog/view/theme/default/template/common and vice-versa? :o

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 1:58 am

not visa versa

catalog is correct (or you would not be able to view the shop)
but admin appears to be (and I can only see login, but I am assuming because you originally posted admin) the header for catalog ALSO

the file you posted is admin (but that is not what is appearing on the site .. ) which may be because you have not cleared your caches and actually it is fixed ..

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Mon Jul 27, 2020 2:01 am

This went wrong for me when I refreshed the Modifications cache. Since then I can't get access to refresh it again and I haven't found a way to force it to refresh.

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 2:08 am

you have ftp?
you know where your storage folder is?
the thing you did in the beginning that said IMPORTANT SECURITY NOTICE .. move automatically or manually?
(should I ever be in Scotland I expect a fudge tasting evening !)

BE CAREFUL (ish)
Duplicate the modification folder and call it delete or something
DO NOT delete the modification folder
but delete the folders inside it.
(THIS IS CLEARING YOU CACHE)

Alternatively you can contact your web host and ask if they keep backups (do this anyway, if they don’t create backups automatically you should)
You NEED backups of databases and files - if they do not do it for you will learn to do it yourself.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Mon Jul 27, 2020 2:22 am

Yes I have ftp and I know where my Storage folder is....

THANK YOU!

its all working now, are you likely to be in Scotland ?

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 2:27 am

It is a place I would like to visit again, likely .. hmm I watch the news and stay AT HOME !
but I had a really nice tour of Scotland .. went all the way to the top .. searched for nessie, spent a night in a tent and watched the world cup on a portable TV .. this is what I remember ...

and you are most welcome .. glad its working :D

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by brydekirk » Mon Jul 27, 2020 2:31 am

Thanks again for your time & expertise, if you would care to send me your address we would be more than happy to send a small thankyou present...... :)

New member

Posts

Joined
Sun Dec 30, 2018 7:26 pm

Post by by mona » Mon Jul 27, 2020 2:41 am

;) too kind ...
I knew I like the Scots !
Have a great day, great life and stay safe
good luck with your site .. I will be taking a great interest in it in the future

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Mon Jul 27, 2020 6:26 pm

brydekirk wrote:
Mon Jul 27, 2020 2:22 am
its all working now
Please add [SOLVED] to the beginning of your post title if it now is.

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


User avatar
Legendary Member

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 22 guests