Image Upload goes 100% and then I get an error in red and asks me to Remove file












0















I am having the exact same problem as stated here:

"products image upload error after upload 100%"



I am trying to upload images to an already existing Magento website, my images go 100% and then I get an error in red asking to remove the images. I have followed most of the tutorial I could find online, all my media/ and var/ folder have 777 permission, I have php5-gd installed on my server, the baseurl and secureurl is set properly.



Last time I have had this problem I had a hired a freelancer to resolve it, he told me, varnish setting had issues but didn't give me details.



Any help appreciated.



enter image description here










share|improve this question
















bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I am having the exact same problem as stated here:

    "products image upload error after upload 100%"



    I am trying to upload images to an already existing Magento website, my images go 100% and then I get an error in red asking to remove the images. I have followed most of the tutorial I could find online, all my media/ and var/ folder have 777 permission, I have php5-gd installed on my server, the baseurl and secureurl is set properly.



    Last time I have had this problem I had a hired a freelancer to resolve it, he told me, varnish setting had issues but didn't give me details.



    Any help appreciated.



    enter image description here










    share|improve this question
















    bumped to the homepage by Community 1 min ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I am having the exact same problem as stated here:

      "products image upload error after upload 100%"



      I am trying to upload images to an already existing Magento website, my images go 100% and then I get an error in red asking to remove the images. I have followed most of the tutorial I could find online, all my media/ and var/ folder have 777 permission, I have php5-gd installed on my server, the baseurl and secureurl is set properly.



      Last time I have had this problem I had a hired a freelancer to resolve it, he told me, varnish setting had issues but didn't give me details.



      Any help appreciated.



      enter image description here










      share|improve this question
















      I am having the exact same problem as stated here:

      "products image upload error after upload 100%"



      I am trying to upload images to an already existing Magento website, my images go 100% and then I get an error in red asking to remove the images. I have followed most of the tutorial I could find online, all my media/ and var/ folder have 777 permission, I have php5-gd installed on my server, the baseurl and secureurl is set properly.



      Last time I have had this problem I had a hired a freelancer to resolve it, he told me, varnish setting had issues but didn't give me details.



      Any help appreciated.



      enter image description here







      magento-1.9 product-images image-upload ce-1.9.2.0






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:55









      Community

      1




      1










      asked Aug 1 '16 at 7:58









      thebeardedguythebeardedguy

      116




      116





      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          In your project open the file lib/Varien/File/Uploader.php and put a Mage::log() inside the save() function.



          public function save($destinationFolder, $newFileName = null)
          {
          $this->_validateFile();



              if ($this->_allowCreateFolders) {
          $this->_createDestinationFolder($destinationFolder);
          }

          if (!is_writable($destinationFolder)) {
          // Put a mage::log() and check what is the folder magento is looking for.
          Mage::log($destinationFolder);
          throw new Exception('Destination folder is not writable or does not exists.');
          }


          . . . . .



          }



          From the log you can find out the folder which Magento is looking for. And then check permissions for that folder.






          share|improve this answer
























          • Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

            – thebeardedguy
            Aug 3 '16 at 6:56













          • Hey @keshav can you please look into the logs I have updated.

            – thebeardedguy
            Aug 3 '16 at 10:07





















          0














          Since I couldn't solve it I ended posting this error on Upwork website. The issue was in lib/Varien/Image/Adapter/Gd2.php someone/ perhaps me or the earlier programmer had by mistakenly put the content before opening


          Anyways learnt the lesson the hard way. I don't know if this qualify's as an answer. Plus it wasn't solving the problem till the time this freelancer cleared the /opcache sitting in the root folder of my Magento installation.






          share|improve this answer
























          • any update on your situation? how you resolved?

            – abr
            Mar 14 '18 at 16:35











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f128356%2fimage-upload-goes-100-and-then-i-get-an-error-in-red-and-asks-me-to-remove-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          In your project open the file lib/Varien/File/Uploader.php and put a Mage::log() inside the save() function.



          public function save($destinationFolder, $newFileName = null)
          {
          $this->_validateFile();



              if ($this->_allowCreateFolders) {
          $this->_createDestinationFolder($destinationFolder);
          }

          if (!is_writable($destinationFolder)) {
          // Put a mage::log() and check what is the folder magento is looking for.
          Mage::log($destinationFolder);
          throw new Exception('Destination folder is not writable or does not exists.');
          }


          . . . . .



          }



          From the log you can find out the folder which Magento is looking for. And then check permissions for that folder.






          share|improve this answer
























          • Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

            – thebeardedguy
            Aug 3 '16 at 6:56













          • Hey @keshav can you please look into the logs I have updated.

            – thebeardedguy
            Aug 3 '16 at 10:07


















          0














          In your project open the file lib/Varien/File/Uploader.php and put a Mage::log() inside the save() function.



          public function save($destinationFolder, $newFileName = null)
          {
          $this->_validateFile();



              if ($this->_allowCreateFolders) {
          $this->_createDestinationFolder($destinationFolder);
          }

          if (!is_writable($destinationFolder)) {
          // Put a mage::log() and check what is the folder magento is looking for.
          Mage::log($destinationFolder);
          throw new Exception('Destination folder is not writable or does not exists.');
          }


          . . . . .



          }



          From the log you can find out the folder which Magento is looking for. And then check permissions for that folder.






          share|improve this answer
























          • Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

            – thebeardedguy
            Aug 3 '16 at 6:56













          • Hey @keshav can you please look into the logs I have updated.

            – thebeardedguy
            Aug 3 '16 at 10:07
















          0












          0








          0







          In your project open the file lib/Varien/File/Uploader.php and put a Mage::log() inside the save() function.



          public function save($destinationFolder, $newFileName = null)
          {
          $this->_validateFile();



              if ($this->_allowCreateFolders) {
          $this->_createDestinationFolder($destinationFolder);
          }

          if (!is_writable($destinationFolder)) {
          // Put a mage::log() and check what is the folder magento is looking for.
          Mage::log($destinationFolder);
          throw new Exception('Destination folder is not writable or does not exists.');
          }


          . . . . .



          }



          From the log you can find out the folder which Magento is looking for. And then check permissions for that folder.






          share|improve this answer













          In your project open the file lib/Varien/File/Uploader.php and put a Mage::log() inside the save() function.



          public function save($destinationFolder, $newFileName = null)
          {
          $this->_validateFile();



              if ($this->_allowCreateFolders) {
          $this->_createDestinationFolder($destinationFolder);
          }

          if (!is_writable($destinationFolder)) {
          // Put a mage::log() and check what is the folder magento is looking for.
          Mage::log($destinationFolder);
          throw new Exception('Destination folder is not writable or does not exists.');
          }


          . . . . .



          }



          From the log you can find out the folder which Magento is looking for. And then check permissions for that folder.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 2 '16 at 17:05









          Keshav JoshiKeshav Joshi

          112




          112













          • Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

            – thebeardedguy
            Aug 3 '16 at 6:56













          • Hey @keshav can you please look into the logs I have updated.

            – thebeardedguy
            Aug 3 '16 at 10:07





















          • Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

            – thebeardedguy
            Aug 3 '16 at 6:56













          • Hey @keshav can you please look into the logs I have updated.

            – thebeardedguy
            Aug 3 '16 at 10:07



















          Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

          – thebeardedguy
          Aug 3 '16 at 6:56







          Link to exception.log pastebin.com/x4SxkrwS and system.log pastebin.com/DQKC2aiB

          – thebeardedguy
          Aug 3 '16 at 6:56















          Hey @keshav can you please look into the logs I have updated.

          – thebeardedguy
          Aug 3 '16 at 10:07







          Hey @keshav can you please look into the logs I have updated.

          – thebeardedguy
          Aug 3 '16 at 10:07















          0














          Since I couldn't solve it I ended posting this error on Upwork website. The issue was in lib/Varien/Image/Adapter/Gd2.php someone/ perhaps me or the earlier programmer had by mistakenly put the content before opening


          Anyways learnt the lesson the hard way. I don't know if this qualify's as an answer. Plus it wasn't solving the problem till the time this freelancer cleared the /opcache sitting in the root folder of my Magento installation.






          share|improve this answer
























          • any update on your situation? how you resolved?

            – abr
            Mar 14 '18 at 16:35
















          0














          Since I couldn't solve it I ended posting this error on Upwork website. The issue was in lib/Varien/Image/Adapter/Gd2.php someone/ perhaps me or the earlier programmer had by mistakenly put the content before opening


          Anyways learnt the lesson the hard way. I don't know if this qualify's as an answer. Plus it wasn't solving the problem till the time this freelancer cleared the /opcache sitting in the root folder of my Magento installation.






          share|improve this answer
























          • any update on your situation? how you resolved?

            – abr
            Mar 14 '18 at 16:35














          0












          0








          0







          Since I couldn't solve it I ended posting this error on Upwork website. The issue was in lib/Varien/Image/Adapter/Gd2.php someone/ perhaps me or the earlier programmer had by mistakenly put the content before opening


          Anyways learnt the lesson the hard way. I don't know if this qualify's as an answer. Plus it wasn't solving the problem till the time this freelancer cleared the /opcache sitting in the root folder of my Magento installation.






          share|improve this answer













          Since I couldn't solve it I ended posting this error on Upwork website. The issue was in lib/Varien/Image/Adapter/Gd2.php someone/ perhaps me or the earlier programmer had by mistakenly put the content before opening


          Anyways learnt the lesson the hard way. I don't know if this qualify's as an answer. Plus it wasn't solving the problem till the time this freelancer cleared the /opcache sitting in the root folder of my Magento installation.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 4 '16 at 16:01









          thebeardedguythebeardedguy

          116




          116













          • any update on your situation? how you resolved?

            – abr
            Mar 14 '18 at 16:35



















          • any update on your situation? how you resolved?

            – abr
            Mar 14 '18 at 16:35

















          any update on your situation? how you resolved?

          – abr
          Mar 14 '18 at 16:35





          any update on your situation? how you resolved?

          – abr
          Mar 14 '18 at 16:35


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f128356%2fimage-upload-goes-100-and-then-i-get-an-error-in-red-and-asks-me-to-remove-file%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Polycentropodidae

          Magento 2 Error message: Invalid state change requested

          Paulmy