OpenCart Version 3.0.2.0
Hi, I just noticed that when I go to Design > Theme Editor, under the column of "Choose a template" , there's nothing displayed. I've included an image to show what I mean.
I don't know when this started happening, so I have no idea what could have caused it. I tried replacing my theme.twig file (in admin/controller/design) in case it was just a problem with the view, but there was no change. Any ideas would be greatly appreciated!
Maybe a database issue with the installed theme, store ID.
You can see what the code is doing.
^ If this is returning an empty array then it's not reading the files.
You can see what the code is doing.
Code: Select all
// We grab the files from the default theme directory first as the custom themes drops back to the default theme if selected theme files can not be found.
$files = glob(rtrim(DIR_CATALOG . 'view/theme/{default,' . $theme . '}/template/' . $path, '/') . '/*', GLOB_BRACE);
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
I was able to find a solution, so I thought I would post it here in case anyone else has the same problem. The problem was with my config.php file - DIR_CATALOG had an incorrect path (had a dev/ folder from before I launched the site). Hope this helps someone else!
Who is online
Users browsing this forum: No registered users and 414 guests