• Resolved Alain

    (@alainroger)


    Hi,

    i have a strange behavior under my fresh installation of WP 3.9.
    when i want to upload from drive a plugin/theme, i got the following error message: “Are you sure you want to do this? try again”.

    i checked my php.ini file and upload file limit is 20MB while my theme or plugin are not more than 10.2MB (theme), 2.7MB (plugin).

    i have no other plugin or theme than the default ones from a fresh WP 3.9 installation.

    i found on https://optimizepress.zendesk.com/hc/en-us/articles/200657358-Are-you-sure-you-want-to-do-this-Plugin-Upload-Install-Error that i should write in wp-config.inc file:
    define(‘WP_MEMORY_LIMIT’, ‘128M’);

    but it did not help.

    what is very weird, it’s that if i upload the same plugin from web directly, it works great and i can install it.

    So where is the problem ?
    thx

Viewing 15 replies - 1 through 15 (of 15 total)
  • “Are you sure you want to do this? try again”

    That’s usually symptomatic of a bad theme or plugin. Can you replicate the problem using the default Twenty Fourteen theme with all plugins deactivated?

    Thread Starter Alain

    (@alainroger)

    So in this case why the same ZIP file (woocommerce 2.1.7) works from direct web uploading while doesn’t work from drive file upload ?

    Did you try my suggestion above?

    Thread Starter Alain

    (@alainroger)

    yes for sure. anyway i have no activated plugin and the default theme is the twenty fourteen. i have the same result.

    Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter Alain

    (@alainroger)

    by default there is no .htaccess in the default 3.9 zip file

    Thread Starter Alain

    (@alainroger)

    same result when i do like you suggested ??

    by default there is no .htaccess in the default 3.9 zip file

    Yes – I am aware of that but an .htaccess file is created in root if you set up custom permalinks.

    Try adding define('SCRIPT_DEBUG', true);to the bottom of your wp-config.php file (just before the require_once line).

    Thread Starter Alain

    (@alainroger)

    nothing change even with the debugging script set to true.
    even worse…no particular message…

    i tested it on WP 3.8.3 i have the same behavior…
    i don’t know why but i have the feeling it has something to do with file size during uploading… from directory

    because if i upload a plugin like backupwordpress 2.6.1, everything goes well even from drive uploading. ??

    i don’t know why but i have the feeling it has something to do with file size during uploading

    What makes you think that? This kind of message is often associated with an issue relating to the WP Settings API where a theme or plugin is not presenting the correct security credentials.

    Thread Starter Alain

    (@alainroger)

    in this case it would mean that WooCommerce 2.1.7 and the theme i want to upload have both this issue ??

    In this case, why the define(‘SCRIPT_DEBUG’, true); does not display any error or waning message in verbose mode ?

    it would help me to do a good diagnose

    I thought you didn’t have any active plugins?!

    Thread Starter Alain

    (@alainroger)

    i do not have an activated plugin at all, but i was just saying that this issue appears when i try to upload from drive a plugin or a theme.

    Thread Starter Alain

    (@alainroger)

    by the way if WP had a security issue with those plugin/theme…why uploading the WooCommerce 2.1.7 plugin directly from internet, works without any issue ?

    from my point of view issue is in WP for file uploading directly from drive.

    Thread Starter Alain

    (@alainroger)

    ok i finally found where was the issue.
    in fact i had 2 parameters to change in my php.ini file.

    1. the max size of PHP usage to 400 MB
    2. the max time of execution to 90s

    now i do not have any more this message.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘"try again" msg while uploading theme or plugin’ is closed to new replies.