Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jpksilversand

    (@jpksilversand)

    Thanks mbrsolution for your help, and mra13 for your recent comment. Thanks also for the suggestion that I deal with the errors shown above. I’ll be sure to do so.

    I’m glad that the plugin developers will investigate what happened in this case and would appreciate any information you find. It seems that the plugin’s treatment of nonbreaking spaces is perhaps the cause of the problem.

    Happy to mark the thread as resolved in the meantime.

    Thread Starter jpksilversand

    (@jpksilversand)

    Posting this did make me notice that there seemed to be a line break in the second, non-functioning code. Further tests do not show any line break. However, it does seem like for some reason the space between the quotation mark after “Makers” and the word “price” is a non breaking space. There’s another one right before “shipping.” Deleting these two spaces and adding new ones in their place solves the problem!

    I’m glad I finally have fixed the issue, but I’m still wondering:

    1. Why did this issue arise without me having made any changes to the page? Did an update to the plugin suddenly cause these nonbreaking spaces to become a problem? Or did the spaces somehow automatically become nonbreaking?
    2. Why does the nonbreaking nature of the spaces cause this issue? Can the plugin be fixed so that it doesn’t matter what kind of spaces we’re dealing with?
    3. Why would the presence of nonbreaking spaces cause this specific problem, with such a weirdly high dollar amount in the shopping cart?

    Thanks again for all your help. Please do let me know what you think about the above.

    Thread Starter jpksilversand

    (@jpksilversand)

    Okay—I just ran the test as per your request, removing the first button and placing it at the end of the list of buttons. I get the same result. The first button (formerly the second button) works fine, while the last button (formerly the first) still gives the large amount.

    It also seems like it can’t just be that the first button (now last) is summing up all the others, because as I’ve noted the total is much much higher than that.

    I’ve done another test that seems to have solved the issue, but still am confused about why it arose in the first place. I added the first button back in but left it in place at the end of the list. Both then added the large amount to the shopping cart. Then I copied the embed code from the second button and pasted it over the first button. This eliminated the problem with the first button. Then I manually changed the embed code so that it was identical to the formerly broken embed code. It now works with no problem. You can now see the two buttons (the first one working, the last one broken), at this page: https://originalsacredharp.com/ordering-the-sacred-harp/. They seem to me to have identical embed codes:

    The first one:
    [wp_cart_button name="The Sacred Harp (single copy) and Makers" price="20.00" shipping="3.75"]

    The last one:
    [wp_cart_button?name="The Sacred Harp (single copy) and Makers"?price="20.00"?shipping="3.75"]

    Thread Starter jpksilversand

    (@jpksilversand)

    Okay—I’ve turned off debug mode again. Thanks for that.

    The page with the buttons that creates this issue with the shopping cart has four buttons:

    https://originalsacredharp.com/ordering-the-sacred-harp/

    If I click on any of the other three buttons the shopping cart works as usual, displaying the correct amount and the correct item. But if I press the first button, it displays just ”The and gives the exceptionally high item amount in the shopping cart.

    Here’s the code for all four buttons. You can view the page and see for yourself how the error manifests at the link above.

    <ul>
    	<li class="alert">Special deal:?Purchase a single copy of <em>The Sacred Harp</em> and receive a free <a title="The Makers of the Sacred Harp" href="https://originalsacredharp.com/the-makers-of-the-sacred-harp/" target="_blank"><em>Makers</em></a> (domestic only, additional shipping costs):?[wp_cart_button?name="The Sacred Harp single copy and Makers"?price="20.00"?shipping="3.75"]</li>
    	<li>Single copy (domestic):?[wp_cart_button name="The Sacred Harp (single copy)" price="20.00" shipping="2.75"]</li>
    	<li>Case of 6 books (domestic):?[wp_cart_button name="The Sacred Harp (case of six books)" price="120.00" shipping="12.75"]</li>
    	<li>Case of 6 books (international):?[wp_cart_button name="The Sacred Harp (case of six books, international)" price="135.00" shipping="0"]</li>
    </ul>

    Thanks again for all your help.

    Thread Starter jpksilversand

    (@jpksilversand)

    Hi MBRSolution,

    Thanks for this suggestion as well. I’ve logged into PayPal and have double checked that I don’t have any taxes or shipping costs enabled. Furthermore, as I’ve indicated, this issue only applies to this button, not the other buttons on the page.

    Do you think it is okay to turn off the debug mode for WordPress yet? It’s causing errors all over the site.

    Thanks for your continued help with this.

    Best,
    Jesse

    Thread Starter jpksilversand

    (@jpksilversand)

    Okay—I checked the settings page and figured out how to turn on debug mode for the plugin. I then logged out, logged in again, and tried adding the item to the shopping cart, and it still adds the ridiculously high number. Any new insights from the log file? It is definitely starting to seem like this is an issue with the plugin itself, no?

    Thread Starter jpksilversand

    (@jpksilversand)

    Hello. I just tried activating the 2015 theme and this did not solve the problem. Adding this particular item to the shopping cart still causes the same oddly high number to show in the shopping cart. I’ve reverted to our theme since this theme profoundly disrupts the look of the site. How do I enable Debug Mode for the plugin??

    Thread Starter jpksilversand

    (@jpksilversand)

    Hi, I’ve just enabled debug mode by altering the wp-config file, and also added the command to enable the log. I logged out, logged back in, added the item to the shopping cart, triggering the error, and visited the log file. You can access the file itself here:

    https://originalsacredharp.com/wp-content/debug.log

    Here’s the log:

    [29-Dec-2015 01:08:56 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:08:56 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:01 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:01 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:03 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:03 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:04 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:04 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:04 UTC] PHP Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3732
    [29-Dec-2015 01:09:06 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:06 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:11 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:11 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:17 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:17 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:21 UTC] PHP Notice: add_custom_background is deprecated since version 3.4! Use add_theme_support( ‘custom-background’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568
    [29-Dec-2015 01:09:21 UTC] PHP Notice: add_custom_image_header is deprecated since version 3.4! Use add_theme_support( ‘custom-header’, $args ) instead. in /home/silver/public_html/originalsacredharp.com/wp-includes/functions.php on line 3568

    Thread Starter jpksilversand

    (@jpksilversand)

    Thanks for the suggestion. I just deactivated all plugins except for the WP Simple Paypal Shopping Cart Plugin and the issue persisted. So it seems conflict with another plugin is not the issue. When I mentioned having updated plugins recently, I was referring to recently updating this plugin.

    Thread Starter jpksilversand

    (@jpksilversand)

    It’s perhaps also worth noting that this is a new issue and that I’ve had the button and shopping cart working correctly for quite some time. Perhaps the issue is related to a recent WP or plugin update?

    Thread Starter jpksilversand

    (@jpksilversand)

    Hi, thanks for this suggestion. I’ve just tried it, replacing the previous shortcode with the parentheses in it with this, as per your suggestion:

    [wp_cart_button?name="The Sacred Harp single copy and Makers"?price="20.00"?shipping="3.75"]

    However I still get the same extremely high price. I also notice that when I use other buttons on the page, which also contain parentheses in their shortcode, I don’t get this error.

    Thanks in advance for any other suggestions.

Viewing 11 replies - 1 through 11 (of 11 total)