Post by dwains » Thu Oct 19, 2017 6:37 pm

Hello,

I am using a fresh opencart 3.0.2.0 with the latest Journal theme. I placed my store logo inside settings but it's not showing up the div from the logo is just empty. Anyone knows this bug?

thanks

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by yodapt » Thu Oct 19, 2017 6:53 pm

Isn't that a Journal issue? The logo in working fine in a default installation.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by dwains » Thu Oct 19, 2017 8:02 pm

When I switch back to default opencart theme the logo is also not showing up only the name of the store in text. Not a JPG

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by yodapt » Thu Oct 19, 2017 8:04 pm

Then it might have to do with something else, maybe permissions in image folder? Has the logo uploaded well? Did you check your config file?

Also, what is the store url?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by kestas » Thu Oct 19, 2017 8:38 pm

You should try to clean all cash from storage directory except index.html and clean browser cash. This should help if no some bug's.

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by straightlight » Sat Oct 21, 2017 10:15 am

If your folder permissions have been properly configured from your install.txt file of the original ZIP file of Opencart's installation, also ensure that your images have been uploaded in binary mode when using auto-mode from FTP and not in ASCII mode. The best methodology is to deflate the files from the downloaded ZIP file from your host's cPanel File Manager - if using cPanel. This ensure the integrity of the files before running the Opencart installation.

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 dwains » Thu Nov 16, 2017 11:01 pm

So the logo is still not working. Even when I use default Opencart logo. The strange thing is that in admin settings the logo is showed.

So I looked at /catalog/controller/common/header.php and I added:

Code: Select all

echo 'test123';
        var_dump($this->config->get('config_icon'));
		var_dump($this->config->get('config_logo'));exit;
And I get:

Code: Select all

test123string(34) "data/fofdnet/logo/scribble.png" string(0) ""
I looked in database and for store id 0 I got config_icon and config_logo I even copied the line from the icon to the logo and it still isnt showing up.. any a idea?

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by straightlight » Thu Nov 16, 2017 11:04 pm

- OC version?
- Any URLs you could provide?

If using a custom theme even when trying with the original Opencart logo, switch back to the default theme to see if these results can be replicated.

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 dwains » Thu Nov 16, 2017 11:25 pm

straightlight wrote:
Thu Nov 16, 2017 11:04 pm
- OC version?
- Any URLs you could provide?

If using a custom theme even when trying with the original Opencart logo, switch back to the default theme to see if these results can be replicated.
OC 3.0.2 and no url at the moment.
I use the default opencart theme so thats really strange when I replace config_logo with config_icon it shows the favicon as logo so that all works. The config_logo just returns null, but its set in db

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by straightlight » Thu Nov 16, 2017 11:29 pm

That is because the data key has not been defined in the catalog/controller/common/header.php file.

Find:

Code: Select all

if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
			$data['logo'] = $server . 'image/' . $this->config->get('config_logo');
		} else {
			$data['logo'] = '';
		}
add below:

Code: Select all

if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
			$data['icon'] = $server . 'image/' . $this->config->get('config_icon');
		} else {
			$data['icon'] = '';
		}
Then, in your catalog/view/theme/<your_theme>/template/common/header.twig file, you can use:

Code: Select all

{% if icon %}
<img src="{{ icon }}">
{% endif %}
Note: The default theme should not be used. A custom theme folder should rather be created and instantiated from the admin - > extensions - > extensions - > themes (x) and the admin - > system - > settings - > edit settings - > general tab.

This should rectify the problem.

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 dwains » Thu Nov 16, 2017 11:32 pm

I don't think we are on the same line. The problem is that the opencart logo is not showing up. And for debugging I tried to replace config_logo with config_icon and that is working so somewhere the config_logo parameter is not set because it returns NULL even when it has data inside the database see: http://puu.sh/yniCq/7565e1e9d2.png

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by straightlight » Thu Nov 16, 2017 11:34 pm

Yes, and all you need to do is to try the modifications above. This has nothing to do with knowing if this is about the same or different line since the solution has been provided above.

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 dwains » Thu Nov 16, 2017 11:43 pm

Yes when I replace :

Code: Select all

if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
			$data['logo'] = $server . 'image/' . $this->config->get('config_logo');
		} else {
			$data['logo'] = '';
		}
with:

Code: Select all

if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
			$data['logo'] = $server . 'image/' . $this->config->get('config_icon');
		} else {
			$data['logo'] = '';
		}
And in admin settings I set the normal logo inside the Icon on tab Image instead of Store Logo it shows the logo without problems so something is broken with config_logo. The above is just a ugly fix but not the main fix of the main problem.

New member

Posts

Joined
Sat Jun 14, 2014 10:53 pm

Post by straightlight » Thu Nov 16, 2017 11:45 pm

The above is just a ugly fix but not the main fix of the main problem.
On your own.

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
Who is online

Users browsing this forum: No registered users and 6 guests