Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WYSIWYG HTMLArea MS2 v1.7 --> pictures not loading


Guest

Recommended Posts

I'm using the WYSIWYG HTMLArea MS2 v1.7 contribution. The pictures do not load under the "image manager" when you try to add a picture for a 'category image' or 'product image'.

 

I realize the pictures path is somewhere in the code but I don't know how to change it or what to look for.

 

Please help. Below are the settings I have under ...catalog/admin/includes/configure.php

 

  define('HTTP_CATALOG_SERVER', 'http://www.theorientalmart.com');
 define('HTTPS_CATALOG_SERVER', 'https://host98.ipowerweb.com/~theorien');
 define('ENABLE_SSL_CATALOG', 'true'); 
 define('DIR_FS_DOCUMENT_ROOT', '/home/theorien/public_html/catalog/'); 
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/theorien/public_html/catalog/admin/'); 
 define('DIR_WS_CATALOG', '/~theorien/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/theorien/public_html/catalog/'); 
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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', DIR_WS_CATALOG . 'includes/languages/');
 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_BACKUP', DIR_FS_ADMIN . 'backups/');

Link to comment
Share on other sites

Hi,

 

I had to chmod the images/options folder to 777 and the images still were not showing up but the images were there so I chmod one image to 777 and it showed up.

 

Then, I did some testing on the images after the first one and they started showing up fine without changing the permissions.

 

Then I went back to the first image and change the permissions back to the original one and the image was still showing up.

 

I couldn't figure it out but at least the images are showing up in the admin when you upload one.

Link to comment
Share on other sites

The problem is the "s" in https://

the image mgr is calling the http:// url not the https://

fix this in your image mgr config

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

My customer ask for a secure connection in the admin area. I could see why they would need it. For example, the customers are listed in the admin section. Do you see a reason not to?

 

I'm trying to edit the config file you mentioned. I'm trying to work with the config.inc.php file located:

 

/catalog/admin/htmlarea/popups/config.inc.php

 

..and change the following code piece:

 

// IMAGE_DIR and IMAGE_URL identify the Image directory "root" (MUST end in "/")
// Do NOT include "http://my.hostname.com" in IMAGE_URL; just the path from the
// DocumentRoot of your webserver.
define("IMAGE_DIR", trim(DIR_FS_CATALOG . DIR_WS_IMAGES));
define("IMAGE_URL", trim(DIR_WS_CATALOG_IMAGES));

 

I'm trying to change it to:

 

// IMAGE_DIR and IMAGE_URL identify the Image directory "root" (MUST end in "/")
// Do NOT include "http://my.hostname.com" in IMAGE_URL; just the path from the
// DocumentRoot of your webserver.
//define("IMAGE_DIR", trim(DIR_FS_CATALOG . DIR_WS_IMAGES));
define("IMAGE_DIR", trim('/home/theorien/public_html/catalog/images/'));
//define("IMAGE_URL", trim(DIR_WS_CATALOG_IMAGES));
define("IMAGE_URL", trim('/home/theorien/public_html/catalog/images/'));

 

I'll let you know if this makes a difference. Thanks for your help.

Link to comment
Share on other sites

Ryan,

 

http://theorientalmart.com/catalog/admin/c...n=edit_category

 

use the above url and look. this is how it should be not the secure

set your config file not to use the secure server for admin

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

Ryan,

your customer might want a password access to the admin not a 128 bit secure link.

there is no reason to send them to a secure link. just lock down the admin dir with .htacces

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

...but there's no security that way, right? I don't see the 'lock' at the bottom showing 128bit encryption.

 

I could set my config file to use the non-secure server for the admin area; however, the customer would like to see it secure...must be a psychological thing. Still not having any luck tweeking the config.inc.php file I noted in my earlier post.

 

Advice?

 

PS..you're the best for trying to help me.

Link to comment
Share on other sites

Just saw your last post, you're probably right. I'm going to try to lock down the admin area with .htaccess. Are there any threads that show how to do this? I've never done it before.

 

Thanks,

Ryan

Link to comment
Share on other sites

Well if they must see the lock. just put a lock image on the admin page. it's that easy. use .htaccess to lock (password protect) down the dir.

 

there is really no need to use 128 bit on the admin area. 128 bit is used to encrypt cc and pass info from the no secure to the secure server. and you will also see a increase in speed with out the 128 bit.

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

jello1 - thanks again for your help. I'll try .htaccess to see if they're satisfied with that.

 

Why the images won't show up under the 'image manager' when I make the site secure is still a conundrum to me and I'd like to figure it out.

 

The best guess I have is to change the config.inc.php file (/catalog/admin/htmlarea/popups/config.inc.php).

 

If anyone has advice or knows how to rectify this let me know.

 

oh yeah, not sure what sts vs. bst is. They are Berkely servers though if that answers your question.

Link to comment
Share on other sites

Ryan,

Use this link to your store

 

http://www.theorientalmart.com/catalog/adm...n=edit_category

 

I can see the images just fine. it's working the way it should. click on any image in the image mgr and you will see the image appear on the right.

<span style='font-family:Courier'>If you can't fix it Perl it!!!...</span>

******************************

Link to comment
Share on other sites

jello1, yep - it works alright, thanks. I had it to this point before I tried to make everything secure. I tried to secure the entire site but the only hurdle I couldn't get past was bringing up the images in the 'image manager' like I mentioned.

 

Not being able to figure that out still bugs me, I wish I knew how to fix it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...