beanzy Posted June 16, 2015 Share Posted June 16, 2015 Hi all, I have installed OSC 2.3.4 on Godaddy and everything looks good but when trying to upload images to categories and product via Admin Panel, it seems like it goes through but when viewing the category or product, under the image it depicts "IMAGE DOES NOT EXIST". I talked with Godaddy support and they said it has to do with OSC because their server is working fine. Yet, they do not offer support inside OSC. I have read several forum articles and have tried several tips&tricks, edits, etc to no avail. The last thing I can think of is to see if Godaddy has open_basedir turned off. But even if it is, I have read that OSC will automatically use the root tmp folder. Is that true? I have selected a range of chmod i.e. 777, 775, etc... on the tmp folder, Again, to no avail. Is there a way to directly associate each category to a specific image in my images folder? In other words, WITHOUT using the Admin upload feature? Maybe editing somewhere to place the image path for each category? I have even tried other hosting companies and it's a hit&miss with each. Some have the identical issue and some allow the image to be uploaded without any issues. Strange! Any help to resolve this on Godaddy would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
Hotclutch Posted June 16, 2015 Share Posted June 16, 2015 Does the image appear on the catalog side? What is your permissions on the /images/ folder - should be 755 or 777 Easypopulate will upload products without you having to use categories.php Link to comment Share on other sites More sharing options...
beanzy Posted June 16, 2015 Author Share Posted June 16, 2015 I have Easypopulate installed and have to issues in creating product categories and sub-categories. I have even tried to place full path to the image inside easypopulate to no avail. No errors at all displayed, in fact the upload of the CSV file says updated. I have also tried to upload the easypopulate csv file to the temp dir on server and insert from there with the proper image url, to no avail. My permissions to images is 777. I've tried other settings as suggested by other members, again to no avail. As to the catalog side, I cannot see any images for the categories. Just blank box frames with the picture source that says img src="images/" without any file name. It's really baffling... Link to comment Share on other sites More sharing options...
tgely Posted June 16, 2015 Share Posted June 16, 2015 The problem is that your images are not uploaded.in admin/categories.php try to add session message config for upload to find somethingchange: $products_image = new upload('products_image'); to: $products_image = new upload('products_image'); $products_image->set_output_messages('session'); osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 Not sure if that is suppose to give me a message of file uploaded or some error? I tried this but nothing changed nor was there any type of output to screen that I could see. I believe the same, as you mentioned. The image is not being uploaded, even though easypopulate says updated. Not sure where to try next! Link to comment Share on other sites More sharing options...
Dan Cole Posted June 17, 2015 Share Posted June 17, 2015 Did you try uploading an image directly by editing the category? ie. what happens when you don't use Easy Populate to add the image. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 Same thing Dan. However, if I use php admin and directly imput the image name into each category in the database, it will show in both front end and back end. There has to be something to get the osc admin to do its job. Easypopulate allows creating categories and subs but just won't upload images. Never seen this before. Link to comment Share on other sites More sharing options...
tgely Posted June 17, 2015 Share Posted June 17, 2015 did you upload product main image after my mentioned modification? osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store. Link to comment Share on other sites More sharing options...
MrPhil Posted June 17, 2015 Share Posted June 17, 2015 The last thing I can think of is to see if Godaddy has open_basedir turned off. But even if it is, I have read that OSC will automatically use the root tmp folder. Is that true? I have selected a range of chmod i.e. 777, 775, etc... on the tmp folder, Again, to no avail. Hold on there. Are you talking specifically about /tmp, or a "tmp" somewhere in your own directories? Most hosts won't let you work with /tmp, and you can't change its permissions anyway. Speaking of permissions, don't go blindly trying this and that permission set, without knowing what you're doing. Many hosts now forbid 777 ("world writable") directory permissions, as a security measure. Are you sure you aren't getting a 500 error when you attempt to upload an image (either via osC code or via FTP)? Unless your server is set up to run PHP as "other" user, you don't want to use 777 for any directory. If it runs PHP as "your group", 775 would be appropriate. If it runs PHP as "owner", 755 would be used for any directory, regardless of whether you want PHP code writing to it. Link to comment Share on other sites More sharing options...
Dan Cole Posted June 17, 2015 Share Posted June 17, 2015 @@beanzy Same thing Dan. However, if I use php admin and directly imput the image name into each category in the database, it will show in both front end and back end.There has to be something to get the osc admin to do its job. Easypopulate allows creating categories and subs but just won't upload images. Never seen this before. Roy...I'm a bit confused with what exactly the issue is but it sounds like it might be a database issue....forget Easypopulate for a minute...are you saying if you edit/add a cateogory through osC admin it uploads the image but doesn't add the location of the image to the database? Does it add the rest of the category information to the database leaving the image location blank? See where you get to with the stock install of osC first. Maybe give us a step by step of what you are doing and what happens so we can get that working before introducting EasyPopulate in the mix. Also are you planning to switch to the bootstrap version that I saw recommended to you in another post...if you're not to far along with this install I would highly recommend that. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 Dan, I first installed OSC 2.3.4 in Godaddy. (Prior to installing Easypopulate) I was able to upload images as I changed the store logo. I continued to clear the stock pictures that OSC installed and created a few categories and added the pictures via admin. Clicking on each category and uploading an image via the controls on the right. A few days after, I went back to continue creating another few categories then went and tried to upload the image. When I choose the image file I then clicked ok and all seemed fine but this time, where the image is suppose to be, it said "Image does not exist". I tried again and then tried another category and the same thing happened. I called Godaddy (They don't really support OSC) and told them what happened. They checked the server side and database and all appeared to be fine. They even opened up "open_basedir" with the appropriate path but still could not upload via ADMIN. I could upload via FTP and File Manager but not ADMIN. They suggested to contact OSC. ugggg Reading articles after articles, I installed Easypopulate thinking maybe this could give me some relief and get the images uploaded however, the same happens with Easypopulate. I click upload and the screen displays all uploaded but the images are not there. However, all of the 1000+ products and gategories did in fact upload correctly except for the images. Not one was uploaded. After trying different scenarios with Easypopulate (using model/image etc, I opened a Chrome browser and inspected the images that I had tried to upload. It showed "image/" for every image I tried to upload that day but the other images uploaded the previous days all had "images/filename.XXX (filename.XXX meaning the correct image name was there). I have check both config files in catalog and admin and all paths appear to be valid but am not really sure because something isn't working right. I have since, added images via Myphp Admin directly into the proper id's of the categories and they show in ADMIN. How strange can this be that ADMIN cannot upload but can see the proper path to the database after inserting them via Myphp Admin. Anyway, Godaddy has washed their hands of it because they have no clue how OSC works and here I am trying to figure it all out with them help of the hero's here. In all the reading I have read, there are two points that stick out but have not been able to see where code is faulty. Configs (proper paths) and permissions (tmp or temp) I could post the config files (leaving out the User/Pass) if this would help see if there are any mistakes. Would that be advisable? BTW, I want to thank everyone who has given suggestions.... Link to comment Share on other sites More sharing options...
Dan Cole Posted June 17, 2015 Share Posted June 17, 2015 @@beanzy Roy...yes, show us your admin/config file...something is not right. Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 Admin/configure.php <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.tapedrivesrepaired.com');// eg, http://www.tapedrivesrepaired.com'); define('ENABLE_SSL', 'false'); define('HTTP_COOKIE_DOMAIN', 'www.tapedrivesrepaired.com'); define('HTTPS_COOKIE_DOMAIN', 'www.tapedrivesrepaired.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('HTTP_CATALOG_SERVER', 'http://www.tapedrivesrepaired.com'); define('HTTPS_CATALOG_SERVER', 'http://www.tapedrivesrepaired.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/xxxxxxxxxxxxxxxx/'); <Name Hidden> define('DIR_WS_HTTPS_ADMIN', '/xxxxxxxxxxxxxxxx/'); <Name Hidden> define('DIR_FS_ADMIN', '/home/countrywide1/public_html/dbiha4qopyzqbptg/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/home/countrywide1/public_html/'); 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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxxxxx'); <Name Hidden> define('DB_SERVER_PASSWORD', 'xxxxxxxxxxxxxxxx'); <Name Hidden> define('DB_DATABASE', 'xxxxxxxxxxxxxxxx'); <Name Hidden> define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> As you see, I have hidden secure names as I read this should be done. The actual file does indeed have the correct names. The ADMIN part of OSC is fully functional EXCEPT uploading images. Thanks Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 BTW, this is my directory structure. Some have mentioned about the tmp or temp locations. (/home/countrywide1) .appdata .cl.selector .cpanel .mysql_backup .sqmailattach .sqmaildata .trash application_backups logs mail public_html xxxxxxxxxxxxxxxxxxxxxxx<ADMIN> backups EPDocumentation ext images includes boxes classes functions graphs javascript languages local modules download ecommerce ext images includes pub temp tmp tmp Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 The problem is that your images are not uploaded. in admin/categories.php try to add session message config for upload to find something change: $products_image = new upload('products_image'); to: $products_image = new upload('products_image'); $products_image->set_output_messages('session'); I did what you suggested Gergely but to no avail. Same issue Link to comment Share on other sites More sharing options...
beanzy Posted June 17, 2015 Author Share Posted June 17, 2015 All has been solved! I was reading on tmp paths OSC uses and what many have done to allow image uploading when you cannot. I added a PHP.ini file with upload_tmp_dir ="/home/countrywide1/public_html/tmp" and WAAAAAALAAAAAAA Much thanks to everyone. However, being the cautious person I am, is this setting in the PHP.ini safe? I am always inquisitive towards security. Link to comment Share on other sites More sharing options...
Dan Cole Posted June 18, 2015 Share Posted June 18, 2015 @@beanzy Awesome....glad you got it working Roy. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.