Posts Tagged ‘wordpress’

Warning: Invalid argument supplied for foreach() wp-includes/query.php on line 2762

This was an annoying bug on one of my wordpress + buddypress for a while and the fix is amazingly simple : Edit your wp-includes/query.php around line 2762 // Always sanitize foreach ( $this->posts as $i => $post ) { $this->posts[$i] = sanitize_post( $post, ‘raw’ ); } and replace by : // Always sanitize if ( $this->post_count [...]

Annoying wordpress.com gif auto resize

Recently on wordpress.com for another project, I had this problem with uploading gif image : there is a f*** auto resize embed in my theme that transforms my image tag <img title=”bugs” alt=”bugs” src=”http://blabla.files.wordpress.com/2012/bugs.gif”> in <img title=”bugs” alt=”bugs”  src=”http://blabla.files.wordpress.com/2012/bugs.gif?w=479″> and therefore resize the gif on the fly with the ?w=479 in the end of the [...]

Error 500 wordpress 1and1

Using one and one hosting, I wanted to install WordPress. I had an Error 500. Too Bad. Here is the trick : Check that your root .htaccess file has the following information : # 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] [...]