We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36552
    • 32 Posts
    When I add an image to a TV, I click "Insert" and the KCFinder window opens. I am able to navigate and/or select an image for placement, but I can't upload anything. I click upload and select a file and it begins the upload process, but never finishes. These are small images (30K). I've checked all of the folder permissions and they're correct. I'm at a loss as to what the problem is.

    Anybody have any ideas?
    • Check your server's PHP error log.

      Make sure that your User settings is allowing the upload of the filetype you're trying to upload. It should have you using the system default. Also check the System Setting for file uploads and make sure that the upload types includes whatever you are trying to upload - file.JPG is not the same as file.jpg, for example.

      Make sure that the filenames don't contain any spaces or any "special" characters.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36552
        • 32 Posts
        Thanks for the reply, Susan.

        File types and names are correct, but there are errors in the log.

        PHP Warning:  unlink(/assets/.thumbs/is_writable_cfcd208495d565ef66e7dff9f98764da): No such file or directory in /manager/media/browser/mcpuk/lib/helper_dir.php on line 32


        Going to go see what that's all about... will report back.
        • Javascript will usually crash and burn if PHP returns any warnings.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 36552
            • 32 Posts
            The errors in the php log were recorded prior to me setting correct folder permissions and actually do not pertain to my current issue. With each current failed attempt, there are no PHP errors.

            However, I am getting a console javascript error in Chrome.

            Uncaught SecurityError: Blocked a frame with origin "http://www.mydomain.com" from accessing a frame with origin "null".  The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "data". Protocols must match.
            


            In Firefox, it also fails to upload yet there are no js errors. The only feedback I get is in the Net Panel

            URL -> http://www.mydomain.com/manager/media/browser/mcpuk/browse.php?type=images&lng=en&act=upload
            Status -> Aborted


            In Safari, KCFinder actually returns an error alert layer in the window, but there is no message. Simply "Attention" with a big red X and an OK button.

            Safari Console output:
            TypeError: 'null' is not an object (evaluating 'arr.length')


            I have deleted the /manager/browser/mcpuk directory on the serve and uploaded a new directory to ensure that all of the supporting files were the most recent and these errors are still occurring.

            I'm still digging in and testing, but I thought I'd share in case sotwell or anyone else could see something in these notes. [ed. note: djad33 last edited this post 10 years, 3 months ago.]
              • 22609
              • 9 Posts
              Any luck with this? I am having a similar issue, I simply cannot upload images or files. All permissions are set correctly. It seems to be something to do with the uploader. I am on rackspace cloud sites running php 5.3.

              Thanks!
                • 28120
                • 380 Posts
                Also have this problem.

                Just upgraded to Evo 1.0.15 and can't upload. Also on Rackspace cloud sites!

                Tried it on another server and works fine. Just copied across and re-installed so identical site.

                Be keen to know if you managed to solve this ...

                Thanks