Post by straightlight » Mon Oct 23, 2017 11:19 am

admin/config.php
define('DIR_TEMPLATE', '/public_html/store/catalog/view/theme/');
This one should read as:

Code: Select all

define('DIR_TEMPLATE', '/public_html/store/catalog/view/template/');
As for config.php file, remove the last front-slash (/) in the path and see if that resolves the issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Mon Oct 23, 2017 9:22 pm

nada so I tried removing it at the end and still nada. then I tried removing both and still nada.

I'm clueless then. does that mean something is calling it wrong?

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Mon Oct 23, 2017 9:35 pm

Follow this step: viewtopic.php?f=199&t=198781&p=699560&h ... ne#p699560 . Once the new file launched on the browser, you will see most of the relevant paths including the theme folder. Add this new file on your root folder. When you're done, remove it.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Tue Oct 24, 2017 7:35 am

well I've gone from having errors to having a blank page. Now what?

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by duccccky » Tue Oct 24, 2017 10:34 am

well after perseverance I finally got the admin page to work, but now when I'm trying to get the settings of my public page, on top I'm getting:

Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/controller/setting/setting.php on line 190
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/model/tool/image.php on line 42
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/model/tool/image.php on line 42
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/model/tool/image.php on line 42
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/model/tool/image.php on line 42
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in /public_html/store1/admin/model/tool/image.php on line 42
Notice: Use of undefined constant HTTP_CATALOG - assumed 'HTTP_CATALOG' in /public_html/store1/admin/controller/common/header.php on line 65

AND on the Theme line it says heading_title. It doesn't have any themes for me to select.

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Tue Oct 24, 2017 12:13 pm

This would be in your admin/config.php file where you'd need to define those constants as the following example:

Code: Select all

define('HTTP_CATALOG', 'http://www.yourstore.com/');
define('HTTPS_CATALOG', 'https://www.yourstore.com/');
Note: In order to define https:// , you must have SSL installed on your domain by a certified provider.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Tue Oct 24, 2017 12:28 pm

ok I seemed to have cleared up the errors, but I still don't understand the theme. It says the same thing still.
Last edited by duccccky on Wed Oct 25, 2017 4:37 am, edited 2 times in total.

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Tue Oct 24, 2017 9:12 pm

If you are not sure about the relative paths, simply re-follow this post: viewtopic.php?f=199&t=198844&start=20#p700034

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 4:38 am

I guess what I don't understand is cause when I look under /admin/view/template/ there's a bunch of different folders; however when I look under /catalog/view/theme there's only the default folder. Now I'm assuming /catalog/view/theme/default folder is supposed to show in the Theme choice on the admin page, but it doesn't. it just says Theme heading_title. Under that, it has a picture. Then under that it has Default layout Default is highlighted but there are many other options. Now the problem is is that my public page doesn't show. It says: Error: A theme has not been assigned to this store! I think it has something to do with the fact that the Theme says heading_title and not an actual theme name.

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Wed Oct 25, 2017 4:47 am

Your language or setting table handling your current language setting might be unlinked from your store since the upgrade process. The text_ prefix is not a bug in this case but a data relationship issue. As for the template and theme folders between the admin and the catalog-end, these folders are showing correctly, according to this analysis. The issue may rather be reflected on the language settings, in this case.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Wed Oct 25, 2017 5:03 am

One thing you could try to refresh your current language setting would be to go to your admin - > system - > localisation - > edit page. Then, save the form. Clear all caches, it may restore the current language settings afterwards; depending how the data relationship integrity might be since the upgrade.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 6:31 am

I think I found the line that's causing the issue:

$this->load->language('localisation/language');

The only place I found "localisation" is in admin/controller/

then there's this other line that could be a problem:

$this->load->model('localisation/language');

The only place I found any reference of model folder is in admin/

I don't know if I should fix all the references of those throughout the file or what since this part is all new to me.

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Wed Oct 25, 2017 6:32 am

I don't know if I should fix all the references of those throughout the file or what since this part is all new to me.
The references are not the issue since importing the language class does not cause any errors. The real problem is related with your default language from your database.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 7:14 am

I only have one language - English. What am I supposed to do?

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Wed Oct 25, 2017 7:18 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 8:08 am

well that didn't work the first time and it hasn't worked the sixth time if you're talking about going into my admin page then go to system - localisation - edit languages page. i have enabled and disabled it, i have checked all the other settings in there. when i disable it and save it and clear cache, i get this message on the public side:

Notice: Undefined index: en-gb in /home/motorhea/public_html/store1/catalog/controller/startup/startup.php on line 109Error: A theme has not been assigned to this store!

and Theme still says heading_title.

when I enable English again and clear cache again, I get on the public side:

Error: A theme has not been assigned to this store!

and Theme still says heading_title.

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Wed Oct 25, 2017 8:13 am

Notice: Undefined index: en-gb in /home/motorhea/public_html/store1/catalog/controller/startup/startup.php on line 109Error: A theme has not been assigned to this store!
And here we go. That is an issue from your database. Also ensure the en-gb language folder name still exist both end-side on your FTP - admin and catalog. If they do and you see this error, then this issue is definitely from the database.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 8:25 am

well looking in my FTP, I do see both end side (admin and catalog) en-gb folders and same file named inside those folders. so it's definitely database issue. so how do I fix that?

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm

Post by straightlight » Wed Oct 25, 2017 8:28 am

On your database, take a screenshot of your language table from the browse tab and see in your setting table if you have the key name: config_language_id .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by duccccky » Wed Oct 25, 2017 8:51 am

# Name Type Collation Attributes Null Default Comments Extra Action
1 language_idPrimary int(11) No None AUTO_INCREMENT Change Change Drop Drop
Primary Primary
More
2 nameIndex varchar(32) utf8_general_ci No None Change Change Drop Drop
Primary Primary
More
3 code varchar(5) utf8_general_ci No None Change Change Drop Drop
Primary Primary
More
4 locale varchar(255) utf8_general_ci No None Change Change Drop Drop
Primary Primary
More
5 image varchar(64) utf8_general_ci No None Change Change Drop Drop
Primary Primary
More
6 directory varchar(32) utf8_general_ci No None Change Change Drop Drop
Primary Primary
More
7 sort_order int(3) No 0 Change Change Drop Drop
Primary Primary
More
8 status tinyint(1) No None Change Change Drop Drop
Primary Primary
More
With selected: Check all With selected: Browse Browse Change Change Drop Drop Primary Primary Unique Unique Index Index Fulltext Fulltext

New member

Posts

Joined
Fri Oct 20, 2017 9:08 pm
Who is online

Users browsing this forum: No registered users and 9 guests