max_Q
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] problem with URLs after updradeYeah, me too. I’m not doing anything interesting, just a subfolder install. URLs used to be mapped to subfolder_site.com/post, now they’re of the form main_site.com/subfolder_site/post. Had to go back to 0.5.4.3
I had to do this (from Google): “If you’re still having problems, visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture.” Then immediately initiate a connection.
More info in this article.
But first, I also had to “allow less secure apps to access your account”. From Google: “Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account.”
Here’s an article discussing it. Apparently, “less secure apps” are those that don’t support OAuth2.0 for SMTP. It seems like only Google does.
After all that, my website actually sent an email. It’s not like landing on mars, but it’s something.
Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingHi esmi,
From the documentation it appears you can. Happily, it won’t be necessary. I have a resolution, and it doesn’t involve the server setup or eShop.
First of all, thank you for all the time and effort you’ve put into helping me trace this issue. It’s much appreciated. Maybe this thread will be useful to someone else, someday.
So I realized that the session id’s were different between the two ajax calls, as well as being different from the session id of the cart page. The reason, I found, was eShop wasn’t getting sent cookies for either of the ajax calls, so it was creating a new session, and setting new cookies, for both of them.
Now, what would prevent a browser from sending a cookie to a domain it has a stored cookie for? I should have thought of this right away (and you may say “yes, you should have”): same-origin policy. I’m running admin over https with FORCE_SSL_ADMIN, and of course all ajax calls in WordPress are directed to the admin area (/wp-admin/admin-ajax.php). So the browser sees https !== http and refuses to send the session id cookie. Visiting the product page over https allowed the whole process to work as designed. So the moral of this story is if you want to use WordPress ajax with sessions, and you’re running admin in ssl, the page that sets the session id cookie has to be using ssl as well.
I’m still researching methods of passing sessions between http and https. It may be as simple as calling session_start() at the beginning of the function. Of course, just forcing access to the whole shop over https would solve my problem, but I know you don’t support using eShop with ssl. Does that mean there are known problems, or just that I’m on my own? At any rate, I’m marking this resolved.
Regards
Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingMy phpinfo shows:
session.auto_start Local Value Off Master Value Off
output_buffering Local Value 0 Master Value 0Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingI am adding from a post page. I just had the eShop Cart Improved widget in the sidebar to see the contents of the cart after doing an ajax add. But I can confirm that the widget isn’t wrong, going to the cart shows it is empty.
Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingOk, so I deactivated and deleted the under construction plugin. The only plugin running on Twenty Fourteen is eShop. The result was the same, “Added” displayed, but nothing added to cart.
There is a wrinkle I didn’t notice before, though: the cart widget (eShop Cart Improved) is set to display the full cart, and on a page refresh it shows “Your Cart Is Empty,” “View Cart” and “Checkout” under the title. After the ajax add to cart, everything but the cart title disappears. After a page refresh “Your Cart Is Empty,” “View Cart” and “Checkout” are displayed again.
Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingHmmm, it was deactivated, but not deleted or staked. There were no javascript errors in the console, though. I will delete it, briefly, and let you know what happens. How do you stake a plugin thorough the heart? 🙂
Forum: Plugins
In reply to: [eShop] Ajax add to cart not workingGood morning (where I am, anyway),
Here’s the problem. This is an existing site I’m rebuilding in WordPress for a client. It’s behind an “under construction” page and it’s in pretty rough shape. They wouldn’t want me exposing it in it’s current condition.
I’d be happy to send either of you a login privately, or undertake any debugging you’d like.
BTW, the “under construction” page is being provided by a plugin, but I disabled it (briefly and late at night), along with all the other plugins, to troubleshoot this problem.
Regards
Forum: Plugins
In reply to: [Event post] Update to 2.8.0 broke Event post for meGreat. I like it.
Forum: Plugins
In reply to: [Event post] Update to 2.8.0 broke Event post for meHi,
v2.8.6 still doesn’t work for me, but I disabled the other two plugins I have that modify $content, and I’ve narrowed it down to a conflict with a plugin called WP Geo. Since it’s building a Google map to add to $content, maybe it’s output is different each time, causing the test to fail.
I feel like testing two instances of $content for equivalence is always going to be problematic, and that filter priority of 9999 does mess up the display for me. How about a shortcode or function call in the template?
I’m using Event Post for it’s add to calendar functionality. I couldn’t get Open Street Map to recognize street addresses in my town.
Forum: Plugins
In reply to: [WP VeriteCo Timeline] A fix for PHP 5.4 warnings empty valueThanks for working this out. I just posted on this error, too. I didn’t get from your title that we were having the same problem. Anyway, I applied your fix and it worked. No muss, no fuss.
Forum: Plugins
In reply to: [Wordbooker] Post caption no longer being truncatedYeah, I did that. I think I like it better, anyway.
BTW, When I choose “None” for Action Link Option, I still have three links on Facebook, Like, Comment and Share. When I choose “Share Link”, I get another Share link added, ending up with two Share links. Just thought I would mention it.
Forum: Plugins
In reply to: [WP Super Cache] please update WPCACHEHOME path to something more dynamicOkay, I’d like to add my vote for this. I was just bitten during a server upgrade at my host. WP Super Cache broke because the new server configuration reports the path to WordPress differently from the old, and WPCACHEHOME was hard coded to the old.
Changing WPCACHEHOME to use ABSPATH worked for me, as in:
define( 'WPCACHEHOME', ABSPATH . 'wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manageralthough WP_CONTENT_DIR did not. It was not seen as a constant by get_wpcachehome(), which saw it as a string and did not expand it. I didn’t spend much time on it, once ABSPATH worked.
Replace the else if on lines 354 and 355 with:
else if ($cimy_hir_curr_options['configs'][$id]['images_source'] == 'theme_uploaded') { $img_array = hir_theme_images_array_to_local_array(get_uploaded_header_images()); $header_image = get_header_image(); if ( ! empty( $header_image ) ) { if( ( $img_key = array_search ( $header_image, $img_array ) ) !== false ) { unset( $img_array[$img_key] ); $img_array = array_values( $img_array ); } array_unshift( $img_array, $header_image ); } }Then, put this in your theme header file where you want the header image to be:
<?php // Check to see if there is a default header image. If there is, display it while the image rotator loads the rest of the images. Otherwise just display "Loading images..." $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> <div id="cimy_div_id_0"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo $header_image; ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /></a></div> <?php else : ?> <div id="cimy_div_id_0">Loading images...</div> <?php endif; // end check for existence of default header image ?>No guarantee of the quality of the code, but it works for me. YMMV. Enjoy.
Forum: Plugins
In reply to: [WP Vegas] Shortcode function causing white screen of deathSure, it’s on it’s way.