Tag Info

New answers tagged

0

Short and anticlimactic answer: the big fancy corporate firewall protecting the server was set to HTTP "application" mode. We switched it over to simply allowing all traffic on port "80" and the issue was solved. Rarst♦ was right!


0

I know you said you had this problem with Apache too, but I can only speak for Nginx. I found this while googling to solve what seems to be this exact problem. I fixed by running sudo chown -R www-data:www-data /var/lib/nginx.


0

Tried everything, finally rebuilt the plugin from ground up, split into several smaller ones. Installed and activated one by one and the problem was fixed. Everything works now.


1

The root of the problem is that isset expects a variable to be passed to it. Also, I'm assuming that you expect the get_post_meta() to return a scalar value and not an array, so I added the third parameter set to true. // 3rd param: $single. Value of true means get scalar value, not an array. $ytlink = get_post_meta( get_the_ID(), ...


0

This means the variable $path is an array(). You have to pull only the path (a string value) from it. You can do print_r($path) to see what values it contains. e.g. if it shows something like this Array([0] => path/to/file) , you will need to use urlencode($path[0]) instead of urlencode($path).


2

First of all, never use query_posts. Rather use WP_Query to construct your custom query which is the prefered way You are also using the category_name parameter wrong. If you look at the WP_Query documentation, it states category_name (string) - use category slug (NOT name). Go and have a look at the examples given in the docomentation under the ...


2

Upon successful login wp_signon() sets a cookie in the http response header. Hence it has to be called before any HTML output is sent to the browser. Otherwise the "headers already sent" error will occur. After a successfull login you should redirect your user. Otherwise the login information will not present when the page HTML is rendered. A very ...


0

That's awesome Nilambar. How would I do this for this type of code (again bringing up undefined index errors) - <?php echo $theme_global['google-tracking-code']; ?>


0

Try this: <?php if ( isset($theme_global['social-twitter']) && '' != $theme_global['social-twitter'] ) { ?> <li><a class="social-twitter" href="<?php echo $theme_global['social-twitter']; ?>" title="<?php _e( 'View Twitter Profile', 'lang' ); ?>" target="_blank"><i class="fa fa-twitter"></i><div ...


0

You can try using hook the validate_password_reset to validate password. Following code can be used to validate alphanumeric password. add_action('validate_password_reset','wdm_validate_password_reset',10,2); function wdm_validate_password_reset( $errors, $user) { $exp = '/^(?=.*\d)((?=.*[a-z])|(?=.*[A-Z])).{6,32}$/'; ...


1

EDIT I have rewritten your complete shortcode. I've tested the code from my original answer, and with your code combined, the output was a bit unexpected. Major modifications I've removed category and replaced it with a tax_query (see WP_Query). The reason is, a tax_query can be used for build-in categories and for custom taxonomies, and custom ...


1

There are couple issues I see with your code that are probably contributing to your overall problem. Try fix the issues below and see if you can move forward with it. Syntax error: // Syntax here would cause error $q = new WP_Query( array('posts_per_page' => 'posts_per_page,'post_type'=>array($post_type),'category_name'=>$category)); Fix to ...


1

Is the site still working/displaying properly , other than this error on the front end? It looks to me like your new hosting environment has warning and notice reporting ON. Consider looking in your wp-config.php file for WP_DEBUG and make sure it's set to false. Depending on how much control you have on your hosting environment, you should contact your ...


-4

something may be wrong with the ip 66.155.40.202 just update your hosts file to resolve api.wordpress.org to 66.155.40.203 This is is what i have in my /etc/hosts 66.155.40.203 api.wordpress.org cheers!


0

After restarting my machine my wordpress started redirecting to install. The database reported that the tables for wordpress 'did not exist' when viewed through phpMyAdmin. Shutting down the webserver, then restarting the mySQL server fixed the issue on my system. Please try shutting down your webserver (gracefully), then restart mySQL.



Top 50 recent answers are included