ne0phyte
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Image/Media Uploader problem, uploads to wp-admin folderOK, so here is what I finally did to fix _my_ upload problems. Whilst browsing the wp_options table for nefarious values, I found that the value for active_plugins and inactive_plugins looked hinky. So I cleared out the option value for both records and hit the site again. I had to re-activate some plugins – but – afterward the uploader magically started working again!
So, to summarize, David Mihm MIHMORANDUM NO. 92 has some good WordPress upgrade tips:
https://www.davidmihm.com/blog/design/wordpress-upgrade-tips/
Most importantly, before upgrading WP, remove the plugins, go through the upgrade process, put the plugins back, activate, rinse, repeat.
Forum: Fixing WordPress
In reply to: MEDIA uploader Does Not Work – At AllAnother approach to creating .htaccess is use XTerm to get to a command prompt, cd to the directory where you need to create the .htaccess file, and then type “touch .htaccess”. Then the file is created. ls -la will list all files at the prompt, including hidden system files (files starting with a .)
Forum: Fixing WordPress
In reply to: MEDIA uploader Does Not Work – At AllI am having this problem also after upgrading 4 different WP sites. The trouble seems to be only in Firefox when uploading an image from the “Write Post” page (post-new.php).
However, if I login and upload an image using IE, it works. And then, it works in Firefox. But if I clear the IE cookies, it no longer works in Firefox.
Here is my guess as to what is happing: The Macromedia Flash Player is using IE’s cookie store no matter if it is running in Firefox or IE. When using Firefox, Flash Player doesn’t have access to the admin_cookie in Firefox’s cookie store and thus does not send the cookie with the upload request.
Searching the SWFUpload support forum, it appears this is a known issue:
https://swfupload.org/forum/generaldiscussion/383
Demonstrated by:
https://demo.swfupload.org/cookiebugdemo/and another blog entry:
https://blog.ascaniocolonna.com/?p=23My current line of thinking is to modify the WP core to rewrite the cookies as request parameters when GET’ing or POST’ing from the flash player, and then reading those request params back and re-setting the cookies. This would affect /wp-admin/async-upload.php and /wp-admin/includes/media.php.
Would appreciate any feedback on that solution.
Forum: Fixing WordPress
In reply to: Image/Media Uploader problem, uploads to wp-admin folderTo follow up, the SWFUpload object (and more precisely Macromedia Flash Player) has known issues with cookies:
https://swfupload.org/forum/generaldiscussion/383
Demonstrated by:
https://demo.swfupload.org/cookiebugdemo/and another blog entry:
https://blog.ascaniocolonna.com/?p=23Forum: Fixing WordPress
In reply to: Image/Media Uploader problem, uploads to wp-admin folderI am having this problem also after upgrading 4 different WP sites. The trouble seems to be only in Firefox when uploading an image from the “Write Post” page (post-new.php).
However, if I login and upload an image using IE, it works. And then, it works in Firefox. But if I clear the IE cookies, it no longer works in Firefox.
Here is my guess as to what is happing: Shockwave is using IE’s cookie store no matter if it is running in Firefox or IE. When using Firefox, Shockwave doesn’t have access to the admin_cookie in Firefox’s cookie store and thus does not send the cookie with the upload request.
Anyway, no real solution here, just more information.