SLV
Forum Replies Created
-
Hello?
Hello?
@shahzeenfarooq, ah right! Thanks for the information.
Since both are market as optional, I will wait for Woocommerce to solve this/implement this since it is already known and hopefully worked on.@doublezed2, could you please read all my messages in this topic?
The first one is caused by a plugin, they need to solve it.
Second is not because of that plugin. (Missing field ‘shippingDetails’ (optional) and Missing field ‘hasMerchantReturnPolicy (optional).https://search.google.com/test/rich-results Also says: Missing field ‘shippingDetails’ (optional) and Missing field ‘hasMerchantReturnPolicy (optional).
Here info about it with examples and codes: https://developers.google.com/search/docs/appearance/structured-data/merchant-listing
How do I get those 2 in my data/shop?Found out that a plugin is causing this! When I deactivate that one, the data is showing.
I did ask them about it, so I now I’m waiting for their solution.Forum: Plugins
In reply to: [Pinterest for WooCommerce] Errors and Warnings since last updateWe have solved error 1300 by whitelisting the IP addresses of the Pinterest bot in cPGuard. The error is now gone.
Forum: Plugins
In reply to: [Pinterest for WooCommerce] Errors and Warnings since last update@ckaiser3, I have this Error 1300 too.
Unable to retrieve the image
Contact your image hosting service provider. Their server encountered an error while processing the request to download your image_link value.How did you solve it? Can you share please?
I did not disable the plugin first…
But here is the file if you want to try again?
https://filebin.net/ckwju2bh656ewypp
Link expires 6 days from now.Rename the original first so that will be your back-up.
- This reply was modified 1 year, 8 months ago by SLV.
@pckeys) just put: ‘standard’ => ”, at line 144
So after line 143 hit the enter key and put in: ‘standard’ => ”,Save the file.
Path: /wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.php
Hello @gravid7,
Solved!
So you just added:'standard' => '',At line 144?
Ha! Well, that was simple.
I assume you will implement this in your next update?Thanks!
No there isn’t, so I uninstalled the plugin and installed contact form 7. Problem solved
It is not only used in /public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.php on line 254\n, but it in more files, see: https://ibb.co/k5hdx8j….
But this particular line: 254 contains: $atts[‘standard’] = wcj_sanitize_input_attribute_values( $atts[‘standard’] );
If I replace this whole line with:
if ( isset( $atts[‘standard’] ) ) { $atts[‘standard’] = wcj_sanitize_input_attribute_values( $atts[‘standard’] ); } else { $atts[‘standard’] = ”; // Standard value if ‘standard’ not excists }The error is gone.
But as I said it is in more files, see: https://ibb.co/k5hdx8j, so can you fix this a.s.a.p. please @gravid7?
Can you speed things up, please?- This reply was modified 1 year, 8 months ago by SLV.
It is not possible to contact you on your website. But chatGTP says:
The PHP warning I’m seeing indicates that there is an attempt to access an array key named
"standard"that does not exist in the array. This warning occurs in the file/home/###/domains/###/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.phpon line 254.Steps to Resolve the Issue:
- Locate the Code:
- Open the file at
/public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.php. - Go to line 254 to find where the array key
"standard"is being accessed.
- Open the file at
- Check the Array:
- Examine the array before line 254 to see how it is being constructed or assigned.
- Ensure that the
"standard"key is supposed to be part of the array.
- Prevent Undefined Key Warnings:
- Use
isset()orarray_key_exists(): Before accessing the"standard"key, check if it exists.if (isset($array['standard'])) { // Safe to use $array['standard'] } else { // Handle the case where 'standard' does not exist } - Provide a Default Value: If the key does not exist, you can provide a default value using the null coalescing operator (
??):$standard_value = $array['standard'] ?? 'default_value'; - Initialize the Array Key: Ensure that the
"standard"key is set in the array before line 254:$array['standard'] = $array['standard'] ?? 'default_value';
- Use
- Update the Plugin (if applicable):
- If this issue is due to a bug in the plugin, check if there’s an updated version of the Booster Plus for WooCommerce plugin that fixes this problem.
- You can report this issue to the plugin developers if it persists after applying a temporary fix.
- Test the Fix:
- After applying the fix, monitor your logs to ensure that the warning no longer appears and that the functionality of your site is not negatively affected.
Example Fix:
Here’s an example of how you might adjust the code:
if (isset($your_array['standard'])) { $standard_value = $your_array['standard']; } else { $standard_value = 'default_value'; // Provide a sensible default value or handle the error }By following these steps, you should be able to eliminate the warning and ensure that the code handles the case where the
"standard"key is not present in the array.Oke, so I deleted that plugin, but that did not solve the Missing Dependencies…
See: https://ibb.co/VNLFnDJ“use strict”;var WPFormsElementorFrontend=window.WPFormsElementorFrontend||function(o,e,r){var n={forceLoadChoices:!1,init:function(){n.events()},events:function(){e.addEventListener(“elementor/popup/show”,function(e){e=r(“#elementor-popup-modal-“+e.detail.id).find(“.wpforms-form”);e.length&&n.initFields(e)}),r(o).on(“elementor/popup/show”,()=>{n.forceLoadChoices=!0,wpforms.loadChoicesJS()}),r(o).on(“wpformsBeforeLoadElementChoices”,(e,o)=>{r(o).parents(‘div[data-elementor-type=”popup”]’).length&&!n.forceLoadChoices&&e.preventDefault()})},initFields:function(e){wpforms.ready(),”undefined”!=typeof wpformsModernFileUpload&&wpformsModernFileUpload.init(),”undefined”!=typeof wpformsRecaptchaLoad&&(“recaptcha”===wpformsElementorVars.captcha_provider&&”v3″===wpformsElementorVars.recaptcha_type?”undefined”!=typeof grecaptcha&&grecaptcha.ready(wpformsRecaptchaLoad):wpformsRecaptchaLoad()),”undefined”!=typeof WPFormsRepeaterField&&WPFormsRepeaterField.ready(),r(o).trigger(“wpforms_elementor_form_fields_initialized”,[e])}};return n}(document,window,jQuery);WPFormsElementorFrontend.init();
Can you fix this please?