Post by laurabeth » Fri May 18, 2018 11:16 pm

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.
Image

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!

Newbie

Posts

Joined
Sat Aug 26, 2017 3:52 pm

Post by Qphoria » Fri May 25, 2018 3:28 am

hit f12 on your browser and see if you see any errors in the javascript console.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by laurabeth » Sat May 26, 2018 9:52 pm

Hi, I checked the console, there are no errors.

Newbie

Posts

Joined
Sat Aug 26, 2017 3:52 pm

Post by laurabeth » Wed Jun 06, 2018 2:17 am

Any other suggestions?

Newbie

Posts

Joined
Sat Aug 26, 2017 3:52 pm

Post by sw!tch » Wed Jun 06, 2018 6:04 am

Maybe a database issue with the installed theme, store ID.

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);
^ If this is returning an empty array then it's not reading the files.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by laurabeth » Thu Jun 07, 2018 4:50 am

Thanks for reply! Do you have any ideas how I could go about checking this?

Newbie

Posts

Joined
Sat Aug 26, 2017 3:52 pm

Post by laurabeth » Wed Feb 06, 2019 12:44 pm

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!

Newbie

Posts

Joined
Sat Aug 26, 2017 3:52 pm
Who is online

Users browsing this forum: adycobra2003, OSWorX and 412 guests