• Resolved johnpannell

    (@johnpannell)


    I still can’t upload files from the wp-admin write post screen using inline-uploading.php. I still get “This script was not meant to be called directly.”

    To get the usual preliminaries out of the way:
    — Yes, I’ve read https://codex.www.ads-software.com/Using_Image_and_File_Attachments

    — Yes, I’ve read the various other threads.

    — Yes, the wp-content/uploads directory exist and is chmod’d to 777

    — Yes, I even created the year/month directory path under the uploads directory and chmod’d to 777. Yes, I even tried it without the year month option.

    — No, there’re no plug-ins running.

    — Yes, I understand everyone here are volunteers and am generally grateful for that. Yes, I’ve become very frustrated.

    — Yes, the file is under 8 MB… tested files as small as 3kb and nothing over 50kb.

    — No, php is not running in safe mode.

    I can upload files via ftp. I can even do it inline using a simple perl script for that purpose… to the same directory.

    What next? Any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter johnpannell

    (@johnpannell)

    Solved! I knew it had to be something simple that was escaping what I could find. The clue was that I could upload via the browser with perl code, but not php code.

    This is one to shout for anyone similarly puzzled (Is there anyone??)

    In the php.ini file there is a line that is set by default as:
    file_uploads = Off

    Unless you like pulling out your hair and getting frustrated change that to
    file_uploads = On

    Then make sure you did everything else I said I had done. Unless I really missed it, perhaps this could be added to the documentation? It’s ridiculously simple and, IMO, likely to be missed by someone not used to messing with in php.

    Thanks for putting up with me.

Viewing 1 replies (of 1 total)
  • The topic ‘Uploading Stll Does not Work… No Support Answers Yet’ is closed to new replies.