Jump to content

6.1.3 Create Upload Folder disappeared??


Dirty Butter

Recommended Posts

I've lost the shaded box below the Filemanager box on the Images tab of the Product Listing in admin. Everything seems to be there in products.index.php

     <div class="fm-container">
         <div class="loading">{$LANG.common.loading} <i class="fa fa-spinner fa-spin fa-fw"></i></div>
         <div id="image" rel="1" class="fm-filelist"></div>
         <div class="master_image">
            <span>{$LANG.catalogue.image_main}</span>:<br><br>
            <div id="master_image_block">
            <img src="{$PRODUCT.master_image}" id="master_image_preview"><div id="preview_image"><img src="{$PRODUCT.master_image}"></div>
            </div>
         </div>
      </div>
      <div class="cc_dropzone">
         <div class="dz-default dz-message"><span>{$LANG.filemanager.file_upload_note}</span></div>
      </div>
      <div id="cc_dropzone_url" style="display: none;">?_g=filemanager&amp;product_id={$PRODUCT.product_id}</div>
      <div id="val_product_id" style="display: none;">{$PRODUCT.product_id}</div>

      <div id="val_lang_go" style="display: none;">{$LANG.common.go}</div>
      <div id="val_lang_preview" style="display: none;">{$LANG.common.preview}</div>
      <div id="val_lang_main_image" style="display: none;">{$LANG.catalogue.image_main}</div>
      <div id="val_lang_show_assigned" style="display: none;">{$LANG.filemanager.show_assigned}</div>
      <div id="val_lang_show_all" style="display: none;">{$LANG.filemanager.show_all}</div>
      <div id="val_lang_folder_create" style="display: none;">{$LANG.filemanager.folder_create}:</div>
      <div id="val_lang_refresh_files" style="display: none;">{$LANG.filemanager.refresh_files}</div>
      <div id="val_lang_upload_destination" style="display: none;">{$LANG.filemanager.upload_destination}:</div>
      <div id="val_lang_enable" style="display: none;">{$LANG.common.enable}</div>
      <div id="val_lang_disable" style="display: none;">{$LANG.common.disable}</div>
        
   </div>

I couldn't find anything in products.index.inc.php that obviously had to do with creating an upload image folder. Where should I look?

Link to comment
Share on other sites

I had already copied over all the latest js files and folders just in case that was the issue. That didn't fix the problem.

I found I had not upgraded the admin/skins/default/styles/layout.css on one install.

But the same thing happened to that install as had happened to the others:

The upload shaded area shows the first time I access Image tab of a Product in admin. But when I refresh the page - it disappears!

foldercreateshowing.jpg

Link to comment
Share on other sites

I've managed to get one of our stores to show the box, at least for now. I haven't dared refresh the page - as that's when it usually disappears.

<div id="fm-actions"><div class="fm-create_folder">Create Folder:<input id="fm-icf" value="" type="text"><button type="button" id="fm-bcf">Go</button></div><div>Upload Destination: /<span id="val_subdir"></span></div><div class="fm-refresh"><i class="fa fa-refresh"></i>Refresh File List</div></div>

Where is this code in the files?

Link to comment
Share on other sites

The store that works properly is the dirtybutterestates.com one. All the images are in the source folder, not in subfolders. There are relatively few images - 122MB images vs 400MB with about 50 subfolders for the plushcatalog/test stores.

Any suggestions about how to find out why this is happening? I tried adding {DEBUG} to the bottom of products.index.php, but don't know what to look for.

Link to comment
Share on other sites

1 hour ago, Dirty Butter said:

Sorry, but I'm getting confused. Am I supposed to KEEP this previous change and then make the edits from GitHub?

Line 214:

From:
if(!$('#fm-actions').length) {

To:
if(!a(this).find('#fm-actions').length) {

The code changes suggested in the Github issue would be starting from stock CubeCart code. The Github discussion will never know about any of your personal changes already made.

In other words, do not keep any prior edits to the code you have made that relate to this specific issue.

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
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...