Forum Replies Created

Viewing 15 replies - 46 through 60 (of 61 total)
  • Thread Starter shuangmiles

    (@shuangmiles)

    I have it set to Partial Words but it couldn’t find fg-3000r. I’m not sure why it can’t find fg-3000 but there are results for rfg-3000.

    Does it support if any one character from the word is incorrect?

    Thread Starter shuangmiles

    (@shuangmiles)

    Oh I see, I was able to login to the sandbox upon being prompted but it said it sent an email and it hasn’t shown up in the inbox or the spam folder?

    Thread Starter shuangmiles

    (@shuangmiles)

    This is the error message in the console log

    
    
    buttons:1320 create_order_error 
    {err: 'Error: [INVALID_REQUEST] Request is not well-forme…ding=venmo&enable-funding=venmo,paylater:2:241543', timestamp: '1657717052506', referer: 'www.sandbox.paypal.com', sdkCorrelationID: 'f459088a11869', sessionID: 'uid_659131c8f1_mti6nty6nti', …}
    buttonCorrelationID: "4b473fa965e6d"
    buttonSessionID: "uid_d68e8cfec0_mti6ntc6mtq"
    clientID: "AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR"
    env: "sandbox"
    err: &quot;Error: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH\n    at eval (webpack-internal:///536:673:17)\n\nError: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH\n    at H.error (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:217264)\n    at Object.<anonymous> (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:230298)\n    at JSON.parse (<anonymous>)\n    at o (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:230161)\n    at le (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:230310)\n    at Ee.u.on (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:234970)\n    at Ee (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:235089)\n    at https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:241793\n    at e.try (https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:50696)\n    at https://www.paypal.com/sdk/js?client-id=AeyKkZl7Y2Nx6uxH274EhrIMD2aOoeonuWXt663c4MSEJXp1jY744JWxtOPlkjV5wQRb2BxGun_fv8SR&currency=USD&integration-date=2022-04-13&components=buttons,messages,hosted-fields&vault=true&commit=true&intent=capture&disable-funding=venmo&enable-funding=venmo,paylater:2:241543&quot;
    referer: &quot;www.sandbox.paypal.com&quot;
    sdkCorrelationID: &quot;f459088a11869&quot;
    sessionID: &quot;uid_659131c8f1_mti6nty6nti&quot;
    time: &quot;1657717052506&quot;
    timestamp: &quot;1657717052506&quot;
    token: null
    user_id: &quot;uid_d68e8cfec0_mti6ntc6mtq&quot;
    Prototype: Object
    constructor: ? Object()
    hasOwnProperty: ? hasOwnProperty()
    isPrototypeOf: ? isPrototypeOf()
    propertyIsEnumerable: ? propertyIsEnumerable()
    toLocaleString: ? toLocaleString()
    toString: ? toString()
    valueOf: ? valueOf()
    __defineGetter__: ? __defineGetter__()
    __defineSetter__: ? __defineSetter__()
    __lookupGetter__: ? __lookupGetter__()
    __lookupSetter__: ? __lookupSetter__()
    __proto__: (...)
    get __proto__: ? __proto__()
    set __proto__: ? __proto__()

    Thread Starter shuangmiles

    (@shuangmiles)

    I was able to have it active in sandbox mode but in sandbox mode in my checkout page I don’t see the option for the pay by credit card option anymore? Am I missing something?

    Thread Starter shuangmiles

    (@shuangmiles)

    This was really helpful I got it to work!

    Thread Starter shuangmiles

    (@shuangmiles)

    Currently I only have the option on my backend to input a url in the button component. I am looking to use javascript to take the url of the a tag and split it and take the class that is attached to that string and assign it to the button. The problem is by the time this happens the add event listener function already is called so technically a button with the class that activates the button doesn’t exist yet.

    Thread Starter shuangmiles

    (@shuangmiles)

    It’s entered manually in the current uri section of the permalink manager.

    Thread Starter shuangmiles

    (@shuangmiles)

    I guess what I am asking is that I have to use javascript to add the class to the button/link. But by the time I add it, I think the plugin’s code for adding the event listener already happens and doesn’t consider that button to have the class. Is there any way to add the event listener function for the popup after I’ve added the class to the button? Hopefully that makes more sense.

    Thread Starter shuangmiles

    (@shuangmiles)

    I’m not sure why the mime type would affect it cause we’ve uploaded previous mimetype of image/x-dwg in the past and they’ve worked could there be other factors?

    Users are not uploading through gravity form. The files are just being uploaded through the media library directly and through acf fields.

    Thread Starter shuangmiles

    (@shuangmiles)

    Yes there is a retry link but it gets stuck at a percent. (13.91%).

    It is uploaded via the media library. I don’t see any code that would allow for the dwg but it’s been able to upload dwg atleast for months without issue.

    Here is the debug.log:

    
    
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:42:28 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:21 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 779
    [28-Jun-2022 13:55:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /var/www/vhosts/obe.com/staging.obe.com/wp-includes/media.php on line 785

    Thread Starter shuangmiles

    (@shuangmiles)

    {
    	"total_results_count": 10,
    	"posts": [
    		
    {
          "id": 26397,
          "date": "2020-07-10T12:33:42",
          "date_gmt": "2020-07-10T12:33:42",
          "guid": {
            "rendered": ""
          },
          "modified": "2022-04-19T19:57:14",
          "modified_gmt": "2022-04-19T19:57:14",
          "slug": "video-testimonials",
          "status": "publish",
          "type": "page",
          "link": "https://81acf57d5a.nxcli.net/video-testimonials",
          "title": {
            "rendered": "Video Testimonials"
          },
          "content": {
            "rendered": "",
            "protected": false
          },
          "excerpt": {
            "rendered": "",
            "protected": false
          },
          "author": 1,
          "featured_media": 0,
          "comment_status": "closed",
          "ping_status": "closed",
          "sticky": false,
          "template": "",
          "format": "standard",
          "meta": {
            "inline_featured_image": false
          },
          "categories": [
            
          ],
          "tags": [
            
          ],
          "yoast_head": "",
          
            ]
          }
    	]
    }
    • This reply was modified 2 years, 10 months ago by Jan Dembowski.
    • This reply was modified 2 years, 10 months ago by Jan Dembowski.
    Thread Starter shuangmiles

    (@shuangmiles)

    I’m using JS, each post/page data is rather large but none of the keys that it has includes parent id or even any of the test keys that I tried inserting through php. I tried to loop through each and assign a new key to equal the result of wp_get_post_parent_id but that doesn’t seem to show up.

    Thread Starter shuangmiles

    (@shuangmiles)

    Here is the full function

    
    function relevanssi_search_route_callback( WP_REST_Request $request ) {
    
    	$parameters = $request->get_query_params();
      
    	// Force the posts_per_page to be no more than 12
    	if ( isset( $parameters['posts_per_page'] ) && ( (int) $parameters['posts_per_page'] >= 1 && (int) $filter['posts_per_page'] <= 12 ) ) {
    	  $posts_per_page = intval( $parameters['posts_per_page'] );
    	} else {
    	  $posts_per_page = 12;
    	}
    
    	$page_number = isset( $parameters['page'] ) ? intval(intval($parameters['page'])) : 1;
      
    	  // default search args
    	  $args = array(
    		's'               =>  $parameters['s'],
    		'no_found_rows'=> true,
    		'paged' => $page_number  ,
    		'posts_per_page'  =>  $posts_per_page,
    		'post_status' => 'publish',
    		'ignore_sticky_posts' => true,
    		'post_type'        => array('post', 'page')
    		// 'fields' => 'id=>parent'
    	  );
      
    	  // run query
    	  $search_query = new WP_Query();
    	  $search_query->parse_query( $args );
    	  if ( function_exists( 'relevanssi_do_query' ) ) {
    		relevanssi_do_query( $search_query );
    	  }
      
    	  $controller = new WP_REST_Posts_Controller('post');
    	  $posts = array();
      
    	//   foreach($search_query->posts as $po) {
    	// 	  $po->parent_id = &quot;test&quot;;
    	//   }
    
    	  while ( $search_query->have_posts() ) : $search_query->the_post();
    	    // $search_query->post->test = &quot;Test&quot;;
    		$data    = $controller->prepare_item_for_response( $search_query->post, $request );
    		$posts[] = $controller->prepare_response_for_collection( $data );
    	  endwhile;
    
    	//   foreach($posts as $post) {
    	// 	  $post['parent_id'] = wp_get_post_parent_id($post->$id) ;
    	//   }
    
    	  $results = array();
    	  $results['total_results_count'] = $search_query->found_posts;
    	  $results['posts'] = $posts;
      
    	// return results
    	if( ! empty( $posts ) ) {
    	//   return new WP_REST_Response( $posts, 200 );
    	return new WP_REST_Response( $results , 200 );
    	} else {
    	  return new WP_Error( 'No results', 'Nothing found' );
    	}
      
      }
    • This reply was modified 2 years, 10 months ago by Steven Stern (sterndata).
    • This reply was modified 2 years, 10 months ago by bcworkz. Reason: code format fixed
    Thread Starter shuangmiles

    (@shuangmiles)

    Yeah I need it in the rest response. I don’t see any sortof parent id in the objects in the array.

    Thread Starter shuangmiles

    (@shuangmiles)

    Actually nevermind I just found it, you basically put ‘type’ => ‘NUMERIC’ in the array with ‘rank’. Thanks for your help!

Viewing 15 replies - 46 through 60 (of 61 total)