Announcement

Collapse
No announcement yet.

Multi Product Images

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Multi Product Images

    Just wondering if anybody else has had a similar problem with Normans Multi Product Images addon. I've attached a copy of the screenshot that shows the error.

    Norman suggested over writing the dpimagesupport.php but this has not worked.

    Many thanks
    Click image for larger version

Name:	ScreenShotOfError.jpg
Views:	286
Size:	385.7 KB
ID:	550217
    Attached Files
    Regards
    Sally

    Fashion Jewellery Wholesale - Glitzy Jewels

    #2
    You need to restart SellerDeck if you make any changes to dpimagesupport.php.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      yes I've tried restarting SellerDeck Norman but still get the same result.
      Regards
      Sally

      Fashion Jewellery Wholesale - Glitzy Jewels

      Comment


        #4
        Is that the right file path?

        file:///C: looks like there might be too many ///s in it to me. (Not that I know what I’m talking about on this).
        -----------------------------------------

        First Tackle - Fly Fishing and Game Angling

        -----------------------------------------

        Comment


          #5
          Could this be OneDrive related?

          Others have reported problems (not with my add-ons) when they have their SellerDeck site in an OneDrive folder.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            I will do a search for OneDrive issues to see if it might be that. Thanks Norman.
            Regards
            Sally

            Fashion Jewellery Wholesale - Glitzy Jewels

            Comment


              #7
              I had the same problem with a client using their new 'Swift' on a PC with 'One Drive' ('OneDrive').

              'One Drive' dictates the default location to be 'One Drive' in the cloud with your local PC as a sort of outpost. So that if you specify a local file it will not find it as it will be looking in 'One Drive' in the cloud. The file will not be found even if the actual file is present in both locations as Sellerdeck is specifying a local file.

              The issue is this line in the Magic Zoom Image List Layout in product image, fragment image and extended info image:

              Code:
              // load useful functions
              include_once 'dpimagesupport.php';
              The software thinks it is looking in the local machine but One Drive routes to the cloud so everything gets in a pickle.

              The solution is to go to the Sites folder on the local machine and open Site1 or whatever the site folder is.

              Right click on dpimagesupport.php and click properties

              Copy the long path at 'Location'

              : Click image for larger version  Name:	rightclickpropertiesii.jpg Views:	0 Size:	73.2 KB ID:	552306

              Paste the long path in front of the dpimagesupport.php thus:

              Code:
              // Magic Zoom Plus - Multi Images V3.15R
              
              // load useful functions
              
              include_once 'C:\Users\xxxxxxx\OneDrive\Documents\Sellerdeck v18\Sites\Site1\dpimagesupport.php';
              This makes it work!
              Jonathan Chappell
              Website Designer
              SellerDeck Website Designer
              Actinic to SellerDeck upgrades
              Graphicz Limited - www.graphicz.co.uk

              Comment


                #8
                Well the above post of mine is not working now so this is what I tried next. I reasoned that locally the software would find the file and on the server it needs to be told where to look so I tried this with success so far:

                Magic Zoom Image List Swift - the top bit:

                Code:
                // load useful functions
                //include_once 'dpimagesupport.php';
                
                // attempt to include dpimagesupport.php when using OneDrive
                
                <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e">
                set_include_path(get_include_path() . ":/home/webabcde/public_html/abcde/acatalog/");
                </actinic:block>
                include_once 'dpimagesupport.php';
                
                //end
                
                // main code here
                Repeat for Fragment Image and Extended Info Image Zoom files.

                You can find the path to your files by uploading a pathinfo.php file to your acatalog folder.

                Open a plain text editor, and paste in the following:

                Code:
                <?php echo $_SERVER["SCRIPT_FILENAME"]; ?>
                Save the text file as pathinfo.php. Upload the file to your acatalog folder by FTP, or add it to your site folder and then add the file name to Design, Additional Files. The file wll then be uploaded next time you publish to web.
                Type the URL to the file you just uploaded into your browser to view the full server path to that file. https://www.yoursite.uk/acatalog/pathinfo.php for example
                Jonathan Chappell
                Website Designer
                SellerDeck Website Designer
                Actinic to SellerDeck upgrades
                Graphicz Limited - www.graphicz.co.uk

                Comment


                  #9
                  File dpimagesupport.php is not needed on the server. It is only used when SellerDeck is building pages (both for Upload and Preview) so it's best not to make loading it conditional.

                  A simpler solution may be to try this: The error message in post #1 indicates that SellerDeck will also look in C:\php\pear for include files. So create such a folder structure on your C drive and copy dpimagesupport.php into it. Close and restart SellerDeck to see if it has helped.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Thank you Norman - very good to see you here. I sort of knew that but the error was visible on the live site as if the site was still looking for the file on the server.

                    I will try that and post back.
                    Jonathan Chappell
                    Website Designer
                    SellerDeck Website Designer
                    Actinic to SellerDeck upgrades
                    Graphicz Limited - www.graphicz.co.uk

                    Comment


                      #11
                      Applied to a live site using One Drive and Norman's "C:\php\pear\dpimagesupport.php" fix in #9 works - Thank you!

                      Click image for larger version

Name:	cphppear.jpg
Views:	224
Size:	93.2 KB
ID:	552849
                      Jonathan Chappell
                      Website Designer
                      SellerDeck Website Designer
                      Actinic to SellerDeck upgrades
                      Graphicz Limited - www.graphicz.co.uk

                      Comment

                      Working...
                      X