Warning: in_array() expects parameter 2 to be array, null given
Quick look at source for that version shows parsing post_status argument. It’s probably this bug that got fixed in 3.2. Upgrade. 🙂
Quick look at source for that version shows parsing post_status argument. It’s probably this bug that got fixed in 3.2. Upgrade. 🙂
Why not just use the browser’s “developer” tool to display the errors and the code that caused the error? I know for a fact that IE, Firefox and Safari each have developer tools available (I use them all the time) – I don’t know about other browser’s capabilities.
Fatal errors point to bad syntax, or bad naming conventions. WordPress does a good job of not activating plugins that throw fatal errors. However, once a plugin is activated, all bets are off. If you’ve created a function or a class, it’s best to follow good naming conventions and namespace properly. For example, a function … Read more
This is not a WordPress error, it is from MySQL: The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. Talk with your host again.
You can also extend expections and then catch only those that you throw. For example: function do_add_my_pws_exceptions() { class PWS_Exception extends Exception {} class PWS_Init_Exception extends PWS_Exception {} } add_action(‘plugins_loaded’, ‘do_add_my_pws_exceptions’); Of course, you should be certain the user is running at least version 5 of PHP by having your theme of plugin activation do … Read more
After trying many things with permissions, I found my problem. I uses a plugin called Duplicator to move WordPress installs around from server to server, it handles changing URLS’s and Paths. So in settings => Media => Store uploads in this folder it was setting the Full Filepath to my Uploads folder. I changed it … Read more
Look at your .htaccess file in your public_html folder for your WordPress installation. It seems that when with GoDaddy hosted on the windows package, you need the following inheritance set for rewrite in your .htaccess file: RewriteOptions inherit RewriteEngine on That solved my problem on index.php.
Your problem is that you’re using Reserved Terms. error is a reserved term, you can’t use it. To get around this, you could intercept the request early, and do a redirect, changing the query parameters in the process. For example, handling a link get parameter: add_action( ‘wp’ , ‘reserved_term_intercept’ ); function reserved_term_intercept(){ global $wp_query; if( … Read more
Yes, a plugin that does not properly clean up after itself can continue to affect your site even after deletion. It can leave stuff behind in the database, or make alterations to your .htaccess file, which is probably the case in your scenario. You might need to restore your .htaccess file – look here for … Read more
You can use var_dump() instead of print_r() – you get the type and the value of the variable and it will also work when your variable holds FALSE or NULL. print_r( false ); # doesn’t output anything var_dump( false ); # output: bool(false) print_r( NULL ); # doesn’t output anything var_dump( NULL ); # output: … Read more