If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Missing icons in admin after changing from Windows to Linux?

Missing icons in admin after changing from Windows to Linux?

Started by swingin_sparrow on 12 Feb 2013, 12:50 PM · Views: 3,110

Results 1 to 20 of 25
12 Feb 2013, 12:50 PM
#1
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #1 by swingin_sparrow

Hi,
I need help. I recently asked my host to change my Windows OS server to a Linux one as it is more zen cart friendly.
The move went ok, I edited the 2 configure.php files with the new paths for the server and my zen cart is displaying fine, I can access the admin part but there, all the icons are missing and are replaced by the small red crosses and text. I tried to re upload them by ftp Filezila but nothing changed. I have no idea how to fix this. Any help? I'm a newbie but I learn fast!
Thanks

12 Feb 2013, 2:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

What are all the HTTP_ and DIR_WS_ settings from your two configure.php files?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 3:01 PM
#3
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #3 by swingin_sparrow

DrByte:

What are all the HTTP_ and DIR_WS_ settings from your two configure.php files?

Here's some of the coding in the includes/configure.php:

/ Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
define('HTTP_SERVER', 'http://shop.fastnloud.com');
define('HTTPS_SERVER', 'https://shop.fastnloud.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home/content/84/8066884/html/zencart/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

and for the admin/includes/configure.php:

*/
  define('HTTP_SERVER', 'http://shop.fastnloud.com');
  define('HTTPS_SERVER', 'https://shop.fastnloud.com');
  define('HTTP_CATALOG_SERVER', 'http://shop.fastnloud.com');
  define('HTTPS_CATALOG_SERVER', 'https://shop.fastnloud.com');

  // secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!

// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/zencart/admin/');
  define('DIR_WS_CATALOG', '/zencart/');
  define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_ADMIN', '/home/content/84/8066884/html/zencart/admin/');
  define('DIR_FS_CATALOG', '/home/content/84/8066884/html/zencart/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

I really don't understand where the problem is...
Thanks for helping

12 Feb 2013, 3:20 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

If you right-click on the "broken image", and choose either "copy image link" or "open image in new window/tab", what's the URL to that image?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 3:29 PM
#5
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #5 by swingin_sparrow

DrByte:

If you right-click on the "broken image", and choose either "copy image link" or "open image in new window/tab", what's the URL to that image?

Well the problem is that all these missing images are the icons you click on in the different sections of the admin, so the url I get is for the link associated under that missing icon, would a pic of the screen be of better help?

12 Feb 2013, 3:43 PM
#6
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #6 by swingin_sparrow

Here's what I mean:
Attachment 11937

12 Feb 2013, 5:31 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

The picture is fine.

But each image has a URL from which the browser is instructed to load it. I gave you instructions on how to obtain that URL ... so we can understand better what's going wrong, so you can fix it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 7:15 PM
#8
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #8 by swingin_sparrow

Hi,
Yes well, here's the problem, when I right click on the icons that are just that there's no link to nothing I don t get the choice to open in a new tab or to copy the shortcut, as for some of the ones that are clickable on normal times, it gives the link you're supposed to reach when clicking on the icon, but not the link that the browser uses to get the picture. for exemple, the missing icon for the folders in categories, if I right click on it and open in a new tab, all it does is open the folder to the sub categorie inside. It's like clicking on the icon itself when it's normally there, except all I have is that red cross and some text, in this case Folder in categories.

12 Feb 2013, 7:27 PM
#9
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #9 by swingin_sparrow

Actually, I right clicked the red cross for one pic and chose properties and I get for exemple, for the logo.gif that is suposed to be on the top left of the admin, this URL: http://shop.fastnloud.com/zencart/admin/images/logo.gif
Does that help?

12 Feb 2013, 7:28 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

Swingin' Sparrow:

Hi,
Yes well, here's the problem, when I right click on the icons that are just that there's no link to nothing I don t get the choice to open in a new tab or to copy the shortcut, as for some of the ones that are clickable on normal times, it gives the link you're supposed to reach when clicking on the icon, but not the link that the browser uses to get the picture. for exemple, the missing icon for the folders in categories, if I right click on it and open in a new tab, all it does is open the folder to the sub categorie inside. It's like clicking on the icon itself when it's normally there, except all I have is that red cross and some text, in this case Folder in categories.

Must be one of the many limitations of still using IE as your browser.

Right-click any blank white spot on the page and choose "View Source". That'll show the raw HTML. Then search that for "Status - Enabled", and post the 10 lines above and below that so we can review it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 7:32 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

Swingin' Sparrow:

Actually, I right clicked the red cross for one pic and chose properties and I get for exemple, for the logo.gif that is suposed to be on the top left of the admin, this URL: http://shop.fastnloud.com/zencart/admin/images/logo.gif
Does that help?
Yes, it does help, somewhat.
If you click on that link, you'll notice that you get a 404-page-not-found page (which your host has preconfigured to display "Coming Soon: future site of something cool").

That means the URL is wrong ... which means http://shop.fastnloud.com/zencart/admin/ is not actually your correct Zen Cart admin URL.

So ... what's the real URL you're seeing in the browser address bar when looking at that page you gave the snapshot of?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 7:56 PM
#12
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #12 by swingin_sparrow

DrByte:

Yes, it does help, somewhat.
If you click on that link, you'll notice that you get a 404-page-not-found page (which your host has preconfigured to display "Coming Soon: future site of something cool").

That means the URL is wrong ... which means http://shop.fastnloud.com/zencart/admin/ is not actually your correct Zen Cart admin URL.

So ... what's the real URL you're seeing in the browser address bar when looking at that page you gave the snapshot of?

Oh sorry I have edited all my URLs to not show the real name for the admin folder, I changed them back to admin so for the page I gave you a snapshot of it shows this URL (edited to not show the real name of my admin folder) http://shop.fastnloud.com/zencart/admin/categories.php
if you understand what I mean... or shall I post the real name of my admin folder in that link? cos of course if you click on the edited link you won't get the right thing.

12 Feb 2013, 8:02 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

Zen Cart uses the HTTP_xxxx and HTTPS_xxxxx and DIR_WS_xxxxx settings to build the URLs.

Evidently whatever you've got in those settings is causing it to create URLs that point to files that don't exist.

All you need to do is fill in the settings correctly so that proper URLs are generated.

Since you're not providing detailed accurate information, all I can offer you is the theory behind a fix, and leave the actual fix up to you.

There are several FAQ articles explaining how the inner workings of the configure.php files operate and also how to properly configure for SSL. You can use those to fix your problem.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 8:11 PM
#14
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #14 by swingin_sparrow

but that s the thing, the configure.php have the right settings since everything else is working, the small icons are not, I ve checked and triple checked them.
If I give you the detailed info, right path, with the real name of the admin folder, would that be better?

12 Feb 2013, 9:23 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #15 by drbyte

In the absence of you providing actual URLs for the images, the URL to your admin will definitely be helpful.

I suspect that the actual images are indeed missing from your server. Only you can confirm that.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Feb 2013, 10:32 PM
#16
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #16 by swingin_sparrow

DrByte:

In the absence of you providing actual URLs for the images, the URL to your admin will definitely be helpful.

I suspect that the actual images are indeed missing from your server. Only you can confirm that.

I did re upload the pics so I m not sure it's that, they were showing already on my server...
Can I send you the right info in a private message? I don't know if it's wise to post it on the forum? Let me know if it's ok and I'll do it.

13 Feb 2013, 3:38 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #17 by drbyte

You can send it via PM if you like.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Feb 2013, 10:09 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #18 by drbyte

If you visit the link to your images, you'll see that you're getting 403-Forbidden responses

ie:'http://shop.fastnloud.com/zencart/your_admin_foldername/images/icons/folder.gif

That's often the result of mangling the .htaccess rules, or moving .htaccess files around, or of setting the permissions too low on the folders or files involved. There could be other factors, but those are the main ones.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Feb 2013, 12:12 AM
#19
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #19 by swingin_sparrow

Hi,
Ok so what am I supposed to do? is there more info I can provide you to help pin point the issue?
Thanks for helping

14 Feb 2013, 12:33 AM
#20
swingin_sparrow avatar

swingin_sparrow

New Zenner

Join Date:
Aug 2011
Location:
Helsinki, Finland
Posts:
60
Plugin Contributions:
0

Post #20 by swingin_sparrow

DrByte:

If you visit the link to your images, you'll see that you're getting 403-Forbidden responses

ie:'http://shop.fastnloud.com/zencart/your_admin_foldername/images/icons/folder.gif

That's often the result of mangling the .htaccess rules, or moving .htaccess files around, or of setting the permissions too low on the folders or files involved. There could be other factors, but those are the main ones.

I contacted my host provider and here is their reply:

it appears that there are several "deny" rules in your .htaccess file that would prevent the images from working properly. An .htaccess file is specific to Linux and would not have caused any changes to a Windows hosting plan, which is why this issue occurred when you changed operating systems. To test this, we temporarily disabled the .htaccess file and the images loaded without issue. We've re-enabled the .htaccess, so you will need to review that file in order to correct these issues.
so now we know what's wrong, but I don't know how to fix this...