Get Code Working On LIVE - Google API, PHP, MySQL

Job ID: 39115788

Budget: £250 – £750 GBP

I have been given code that integrates with Google Sheets, then inserts the last row in my WP database, and then a scheduled task needs to run and send the email via my Gmail account.

- The Google Sheet script works, it is triggered when an edit is made
- The data is successfully inserted in the WP database as custom fields
- I believe the scheduled task runs but there is an error
-------------
[18-Feb-2025 09:17:13 Europe/Athens] PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /public_html/wp-content/themes/twentyseventeen/vendor_/monolog/monolog/src/Monolog/Logger.php on line 149
[18-Feb-2025 09:20:36 Europe/Athens] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /public_html/wp-content/plugins/wp-mailinglist/wp-mailinglist-plugin.php on line 99
[18-Feb-2025 09:23:05 Europe/Athens] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /public_html/wp-content/plugins/wp-mailinglist/wp-mailinglist-plugin.php on line 114
[18-Feb-2025 09:24:41 Europe/Athens] PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /public_html/wp-content/themes/twentyseventeen/vendor_/monolog/monolog/src/Monolog/Logger.php on line 149
--------------

This job is either as simple as:
1) fixing the current code: or
2) adding to the code so that the emails go out

It also includes explaining to me how to get the config details for the google_email.json and credentials/token.json

I have a good programming background and understand how to work with the database. You will need to guide me in getting this live, which we can do via chat, teamviewer, or another tool. The data is sensitive and I can't give access to it.

Before we start, I recommend I send over the PHP code to you, so you can review. You need to be familiar with the Gmail API.
Related categories: PHP JavaScript WordPress Software Architecture MySQL