• I am having issues since I upgraded to wordpress 3.5 with the new Media Uploader when trying to add a new post or page. The new ADD MEDIA does not work. (It has not been a issue until this 3.5 upgrade)

    I get the new insert media window, but it first does NOT show any of my current images that are already in the media library. I can still upload an image, but when I click INSERT IN POST or PAGE it does NOT show up!

    Also, side note, each time I try to post a new page or post the new pop up window that tells you about the new ADD MEDIA keeps popping up, even after the first time, it does it everytime (I think that is tied to something with the issue)

    I have a theme that was created with Artisteer if that helps, however, I have tried to first disable ALL plugins and still having the issue and have tried the standard theme 12 and still same problem. NEED HELP!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter halalan

    (@halalan)

    I created the site with Artisteer version 3 for those that may know more about it.

    Thread Starter halalan

    (@halalan)

    Added note: Could it have anything to do with the fact that I run artisteer in a subdirectory not the main directory domain.

    Example. https://www.mysite.com is the main domain but my wordpress is installed in https://www.mysite.com/wordpress however everthing has always ran correctly until the 3.5 upgrade.

    Have you asked on the Artisteer forums? Their themes aren’t supported here so that may be your best bet for assistance.

    You could also go through the master list of 3.5 upgrade issues and troubleshooting steps to see if any are relevant:

    https://www.ads-software.com/support/topic/troubleshooting-wordpress-35-master-list?replies=4

    Thread Starter halalan

    (@halalan)

    I confirmed on the Artisteer forums that no one else is having any issues in regads to this.
    I do have an extensive .htaccess file that was written to help stop attacks against my site. My site has been working just fine with it for well over a year.

    Is it possible some code in it, is causing problems with the new Media Uploader?

    Here is the code to that file for those tech savy folks:

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php
    
    Options -Indexes
    
    ## RewriteEngine enabled
    RewriteEngine On
    
    # redirect_to= string fix - fixes issues with plugins that use the redirect_to= string
    RewriteCond %{QUERY_STRING} redirect_to=(.*) [NC]
    RewriteRule . - [S=30]
    
    ## Disallow access to htaccess.txt, configuration.php, configuration.php-dist and php.ini
    RewriteRule ^(htaccess\.txt|configuration\.php(-dist)?|php\.ini)$ - [F]
    
    RewriteCond %{QUERY_STRING} \.\.\/\.\.\/ [NC,OR]
    RewriteCond %{QUERY_STRING} \/etc\/passwd [NC,OR]
    RewriteCond %{QUERY_STRING} \.txt?? [NC,OR]
    RewriteCond %{QUERY_STRING} proc\/self\/environ [OR]
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    RewriteCond %{QUERY_STRING} base64_decode.*\(.*\) [OR]
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
    #RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|?|"|;|\?|\*|=$).* [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    RewriteCond %{QUERY_STRING} ^(.*)cPath=https://(.*)$ [NC,OR]
    RewriteCond %{QUERY_STRING} ^(.*)/self/(.*)$ [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>).* [NC,OR]
    RewriteRule ^(.*)$ index.php [R=404,L]
    
    ## File injection protection
    #RewriteCond %{REQUEST_METHOD} GET
    #RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]\=http:\/\/(.*)
    #RewriteRule ^(.*)$ - [R=404,L]
    
    ## SQLi first line of defense
    ## May cause problems on legitimate requests
    RewriteCond %{QUERY_STRING} concat.*\( [NC,OR]
    RewriteCond %{QUERY_STRING} union.*select.*\( [NC,OR]
    RewriteCond %{QUERY_STRING} union.*all.*select.* [NC]
    RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*(execute|exec|sp_executesql|request|select|insert|union|declare|drop|delete|create|alter|update|order|char|set|cast|convert|meta|script|truncate).* [NC]
    RewriteRule ^(.*)$ - [R=404,L]
    
    <FilesMatch "^(wp-config\.php|install\.php|\.htaccess|php\.ini|php5\.ini|readme\.html)">
     Deny from all
    # Allow from 88.55.66.200
    </FilesMatch>
    
    # Stream Video Player - Adding FLV Videos is Blocked By BPS
    RewriteCond %{REQUEST_URI} ^/wp-content/plugins/stream-video-player/ [NC]
    RewriteRule . - [S=30]
    
    ### Add handlers - Breaks themes
    #AddHandler php-cgi .php .inc
    #AddType 'text/html; charset=UTF-8' .html
    #AddType text/plain .ini .sh .bsh .bash .awk .nawk .gawk .csh .var .c .in .h .asc .md5 .sha .sha1
    #RewriteCond %{REQUEST_FILENAME} !-f  # Existing File
    #RewriteCond %{REQUEST_FILENAME} !-d  # Existing Directory
    #RewriteRule . /index.php [L]
    
    ## Denies any direct request for files in wp-content ending in .php with a 403 Forbidden (may break plugins/themes)
    #RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /wp-content/.*$ [NC]
    #RewriteCond %{REQUEST_FILENAME} ^.+\.(php|html|htm|txt)$
    #RewriteRule .* - [F,NS,L]
    
    ## Denies any direct request for files wp-includes ending in .php with a 403 Forbidden
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /wp-includes/.*$ [NC]
    RewriteCond %{THE_REQUEST} !^[A-Z]{3,9}\ /wp-includes/js/.+/.+\ HTTP/ [NC]
    RewriteCond %{REQUEST_FILENAME} ^.+\.php$
    RewriteRule .* - [F,NS,L]
    
    ## Blocks some common exploits with a 403 Forbidden
    RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ ///.*\ HTTP/ [NC,OR]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\?\=?(http|ftp|ssl|https):/.*\ HTTP/ [NC,OR]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\?\?.*\ HTTP/ [NC,OR]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.(asp|ini|dll).*\ HTTP/ [NC,OR]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.(htpasswd|htaccess|aahtpasswd).*\ HTTP/ [NC]
    RewriteRule .* - [F,NS,L]
    
    ## Denies any request for a URL containg characters other than "a-zA-Z0-9.+/-?=&"
    #RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
    #RewriteCond %{THE_REQUEST} !^[A-Z]{3,9}\ [a-zA-Z0-9\.\+_/\-\?\=\&]+\ HTTP/ [NC]
    #RewriteRule .* - [F,NS,L]
    
    ## Denies any POST request with a content type other than application/x-www-form-urlencoded|multipart/form-data
    RewriteCond %{REQUEST_METHOD} =POST
    RewriteCond %{HTTP:Content-Type} !^(application/x-www-form-urlencoded|multipart/form-data.*(boundary.*)?)$ [NC]
    RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
    RewriteRule .* - [F,NS,L]
    
    #RewriteEngine On
    #RewriteCond %{REQUEST_METHOD} POST
    #RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    #RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
    #RewriteCond %{HTTP_USER_AGENT} ^$
    #RewriteRule (.*) https://%{REMOTE_ADDR}/$ [R=301,L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thread Starter halalan

    (@halalan)

    OKAY, the above is the htaccess file all my sites use, it was set up to protect my sites from ongoing malicious attacks and has worked. But, it now is causing a conflict with the new MEDIA UPLOAD. When I edited the above file and just used the below in the htaccess file it all worked!

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    However, I wish to just know what edit I could make to the original htaccess file if anyone can figure it out please post it here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress 3.5 Media Uploader & Artisteer Issue’ is closed to new replies.