Skip to main content

Upload image through wordpress fails

Comments

16 comments

  • User Avatar
    LostNerd
    Wordpress usually has it's own "temp" folder. I would suggest posting for advise on the Wordpress Support Forums. You're likely to get better support from the experts there :)
    0
  • User Avatar
    kernow
    This problem affects all WP installs so its likely to be a server config error.
    0
  • User Avatar
    LostNerd
    In that case, specify "upload_tmp_dir" in the PHP config and see how that goes.
    0
  • User Avatar
    kernow
    As mentioned in first post, commenting out the upload dir or not, the error remains.
    0
  • User Avatar
    LostNerd
    What gets returned when you run this in it's own .php file?

    0
  • User Avatar
    kernow
    Nothing, it has no value. However that's normal.
    0
  • User Avatar
    LostNerd
    No, that is not normal. If it returns bool(false) it means upload_tmp_dir has no value. Have you updated it directly in the php.ini file or with the PHP configuration editor in WHM?
    0
  • User Avatar
    kernow
    It returns:
    string(0) ""
    which is normal for our servers, upload_tmp_dir has no value on all our servers its only one server that has this error.
    0
  • User Avatar
    LostNerd
    If it is only one server, have you compared

    Between a few of them to check for any irregularities?
    0
  • User Avatar
    kernow
    phpinfo on all servers show the upload_tmp_dir to have "no value". The problem is elsewhere. EA was updated recently so maybe that's the cause.
    0
  • User Avatar
    LostNerd
    In that case, I'll leave it to cPanel to respond to this next. I'm sorry my suggestions couldn't help. I hope you reach a resolution soon.
    0
  • User Avatar
    kernow
    Thanks for trying :)
    0
  • User Avatar
    kernow
    Update. We fixed the problem after running /scripts/upcp --force :)
    0
  • User Avatar
    LostNerd
    Thanks for the update @kernow. That issue was bugging me all night. I was trying my best to look for another solution for you!
    0
  • User Avatar
    cPanelMichael
    We fixed the problem after running /scripts/upcp --force

    Hello, I am happy to see the issue is now resolved, however note that I don't see any cases in the 11.50 change log that would have corrected an issue with that entry in the php.ini file. Let us know if you encounter any further issues. Thank you.
    0
  • User Avatar
    kernow
    Well, it was after running EA to update php to 5.5.25 that the problem started. It was by chance we discovered that after /upcp had run at its normal time on one server that the error was fixed. So forcing /upcp on the other servers also fixed it. snip.......however note that I don't see any cases in the 11.50 change log that would have corrected an issue with that entry in the php.ini file
    Go figure....
    0

Please sign in to leave a comment.