Upgrading PHP 5.4 to PHP 7.2 on Centos 7

Check current PHP version
php --version

curl 'https://setup.ius.io/' -o setup-ius.sh

sudo bash setup-ius.sh

sudo yum remove php-cli mod_php php-common

sudo yum install mod_php72u php72u-cli php72u-mysqlnd
(where php72u matches desired version eg php73u etc.)

I also needed to enable the following for my Drupal sites to work:
sudo yum install php72u-soap php72u-xml xmlrpc mbstring json php72u-gd

sudo systemctl restart httpd

Error: Notice: Undefined index: und in mymodule_handler_product_link->render() (line 16 of /sites/all/modules/custom/mymodule/mymodule_handler_product_link.inc)

Code: $product_url = $entity->field_item_url[LANGUAGE_NONE][0]['value'];

Error: Notice: Undefined index: und in mymodule_handler_product_link->render() (line 16 of /custom/mymodule/mymodule_handler_product_link.inc)

Drupal 7 organic groups error: Can't save entity as group, because user Admin can't be subscribed to group and become a manager

I'm getting the following error when trying to save content: Can't save entity as group, because user Admin can't be subscribed to group and become a manager

Get Amazon Associate account approved

Amazon requires that a new associate make at least three qualified referrals in order to be approved for their associate program. One key requirement is that the site must have sufficient unique content. What qualifies as sufficient unique content is unclear, but some users have suggested 16 or more pages.
Tasks:
1. Investigate what constitute sufficient unique content
2. Determine how to satisfy this requirement
3. Get qualified clicks

Errors when editing selected users or associating them with content

Error on user edit:Editing Admin
Notice: Trying to get property of non-object in entity_metadata_no_hook_node_access() (line 685 of /var/www/html/main.marketplace/sites/all/modules/entity/modules/callbacks.inc).
Notice: Trying to get property of non-object in entity_metadata_no_hook_node_access() (line 685 of /var/www/html/main.marketplace/sites/all/modules/entity/modules/callbacks.inc).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7933 of /var/www/html/main.marketplace/includes/common.inc).

Pages