• Resolved esams

    (@esams)


    Message given to donator: ‘ERROR: Array not expected (line 1, character 117)’

    Log files for Square gateway:

    {
        "Payment Gateway": "square",
        "Donation": {
            "Object Class": "Give\\Donations\\Models\\Donation",
            "\u0000*\u0000properties": {
                "id": "int",
                "formId": "int",
                "formTitle": "string",
                "purchaseKey": "string",
                "donorIp": "string",
                "createdAt": "DateTime",
                "updatedAt": "DateTime",
                "status": "Give\\Donations\\ValueObjects\\DonationStatus",
                "type": "Give\\Donations\\ValueObjects\\DonationType",
                "mode": "Give\\Donations\\ValueObjects\\DonationMode",
                "amount": "Give\\Framework\\Support\\ValueObjects\\Money",
                "feeAmountRecovered": "Give\\Framework\\Support\\ValueObjects\\Money",
                "exchangeRate": [
                    "string",
                    "1"
                ],
                "gatewayId": "string",
                "donorId": "int",
                "firstName": "string",
                "lastName": "string",
                "email": "string",
                "subscriptionId": [
                    "int",
                    0
                ],
                "billingAddress": "Give\\Donations\\Properties\\BillingAddress",
                "anonymous": [
                    "bool",
                    false
                ],
                "levelId": [
                    "string",
                    ""
                ],
                "gatewayTransactionId": "string",
                "company": "string"
            },
            "\u0000*\u0000relationships": {
                "donor": "belongs-to",
                "subscription": "belongs-to",
                "notes": "has-many"
            },
            "\u0000*\u0000attributes": {
                "id": 2431,
                "formId": 2423,
                "formTitle": "Basketball Shooting Shirts",
                "purchaseKey": "xxxxx0f91f12",#INTENTIONALL OMITTED
                "donorIp": "XXX.XXX.XXX.XXX", #INTENTIONALL OMITTED
                "createdAt": {
                    "Object Class": "DateTime",
                    "date": "2022-11-22 22:00:35.000000",
                    "timezone_type": 1,
                    "timezone": "+00:00"
                },
                "updatedAt": {
                    "Object Class": "DateTime",
                    "date": "2022-11-22 22:00:36.000000",
                    "timezone_type": 1,
                    "timezone": "+00:00"
                },
                "status": {
                    "Object Class": "Give\\Donations\\ValueObjects\\DonationStatus",
                    "\u0000*\u0000value": "failed"
                },
                "type": {
                    "Object Class": "Give\\Donations\\ValueObjects\\DonationType",
                    "\u0000*\u0000value": "single"
                },
                "mode": {
                    "Object Class": "Give\\Donations\\ValueObjects\\DonationMode",
                    "\u0000*\u0000value": "live"
                },
                "amount": {
                    "Object Class": "Give\\Framework\\Support\\ValueObjects\\Money",
                    "\u0000Give\\Framework\\Support\\ValueObjects\\Money\u0000amount": {
                        "Object Class": "Money\\Money",
                        "\u0000Money\\Money\u0000amount": "10000",
                        "\u0000Money\\Money\u0000currency": {
                            "Object Class": "Money\\Currency",
                            "\u0000Money\\Currency\u0000code": "USD"
                        }
                    }
                },
                "feeAmountRecovered": null,
                "exchangeRate": "1",
                "gatewayId": "square",
                "donorId": 3,
                "firstName": "Eric",
                "lastName": "Sams",
                "email": "XX@XX.com",  #INTENTIONALL OMITTED
                "subscriptionId": 0,
                "billingAddress": {
                    "Object Class": "Give\\Donations\\Properties\\BillingAddress",
                    "country": "US",
                    "address1": "XX", #INTENTIONALL OMITTED
                    "address2": "",
                    "city": "Grass valley",
                    "state": "CA",
                    "zip": "95945"
                },
                "anonymous": false,
                "levelId": "3",
                "gatewayTransactionId": null,
                "company": null
            },
            "\u0000*\u0000original": {
                "id": null,
                "formId": 2423,
                "formTitle": "Basketball Shooting Shirts",
                "purchaseKey": null,
                "donorIp": "XXX.XXX.XXX.XXX",  #INTENTIONALL OMITTED
                "createdAt": null,
                "updatedAt": null,
                "status": {
                    "Object Class": "Give\\Donations\\ValueObjects\\DonationStatus",
                    "\u0000*\u0000value": "pending"
                },
                "type": null,
                "mode": {
                    "Object Class": "Give\\Donations\\ValueObjects\\DonationMode",
                    "\u0000*\u0000value": "live"
                },
                "amount": {
                    "Object Class": "Give\\Framework\\Support\\ValueObjects\\Money",
                    "\u0000Give\\Framework\\Support\\ValueObjects\\Money\u0000amount": {
                        "Object Class": "Money\\Money",
                        "\u0000Money\\Money\u0000amount": "10000",
                        "\u0000Money\\Money\u0000currency": {
                            "Object Class": "Money\\Currency",
                            "\u0000Money\\Currency\u0000code": "USD"
                        }
                    }
                },
                "feeAmountRecovered": null,
                "exchangeRate": "1",
                "gatewayId": "square",
                "donorId": 3,
                "firstName": "xx", #INTENTIONALL OMITTED
                "lastName": "xx", #INTENTIONALL OMITTED
                "email": "xx@xx.com",  #INTENTIONALL OMITTED
                "subscriptionId": 0,
                "billingAddress": {
                    "Object Class": "Give\\Donations\\Properties\\BillingAddress",
                    "country": "US",
                    "address1": "xxx", #INTENTIONALL OMITTED
                    "address2": "",
                    "city": "Grass valley",
                    "state": "CA",
                    "zip": "95945"
                },
                "anonymous": false,
                "levelId": "3",
                "gatewayTransactionId": null,
                "company": null
            },
            "\u0000Give\\Framework\\Models\\Model\u0000cachedRelations": {
                "donor": {
                    "Object Class": "Give\\Donors\\Models\\Donor",
                    "\u0000*\u0000properties": {
                        "id": "int",
                        "userId": [
                            "int",
                            0
                        ],
                        "createdAt": "DateTime",
                        "name": "string",
                        "firstName": "string",
                        "lastName": "string",
                        "email": "string",
                        "prefix": "string",
                        "additionalEmails": "array"
                    },
                    "\u0000*\u0000relationships": {
                        "donations": "has-many",
                        "subscriptions": "has-many"
                    },
                    "\u0000*\u0000attributes": {
                        "id": 3,
                        "userId": 0,
                        "createdAt": {
                            "Object Class": "DateTime",
                            "date": "2022-11-22 21:22:02.000000",
                            "timezone_type": 1,
                            "timezone": "+00:00"
                        },
                        "name": "xx", #INTENTIONALL OMITTED
                        "firstName": "xx", #INTENTIONALL OMITTED
                        "lastName": "xx",  #INTENTIONALL OMITTED
                        "email": "xx@xx.com", #INTENTIONALL OMITTED
                        "prefix": null,
                        "additionalEmails": null
                    },
                    "\u0000*\u0000original": {
                        "id": 3,
                        "userId": 0,
                        "createdAt": {
                            "Object Class": "DateTime",
                            "date": "2022-11-22 21:22:02.000000",
                            "timezone_type": 1,
                            "timezone": "+00:00"
                        },
                        "name": "xx", #INTENTIONALL OMITTED
                        "firstName": "xx", #INTENTIONALL OMITTED
                        "lastName": "xx", #INTENTIONALL OMITTED
                        "email": "xx@xx.com", #INTENTIONALL OMITTED
                        "prefix": null,
                        "additionalEmails": null
                    },
                    "\u0000Give\\Framework\\Models\\Model\u0000cachedRelations": []
                }
            }
        }
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @esams.

    Glad you reached out.

    There was an issue with the Square payment gateway add-on that was fixed in the latest versions. It means that you need to update your plugins to the latest version available.

    In this case, you can click on Plugins > Installed Plugins and click to update your plugins. If you do not see an update for it, it’s just the cache. You can navigate to Dashboard > Updates and click on Check Again. It will check for the updates and clear the cache and you’ll be able to update the plugin.

    ​​I recommend taking a backup of the site from which you can confidently restore. Here’s an article we wrote that explains more clearly how to do that: https://givewp.com/backup-for-faster-troubleshooting/.

    Lastly, we are not allowed to support premium add-ons here so I’ll encourage you to reach out to us via Priority Support here https://givewp.com/priority-support. Since you are using a custom add-on, most likely you have a paid account and you can use the priority support.

    Thanks for using GiveWP! Have a great day.

Viewing 1 replies (of 1 total)

The topic ‘Array not expected (line 1, character 117)’ is closed to new replies.