After upgrading php of a Worpress page from version 7.1 to 8.2, the page was down du to the incompatibility of used theme “regina” “regina-pro” i had the following errors
PHP Warning: Illegal string offset ‘color’ in
PHP Warning: Cannot assign an empty string to a string offset in
- wp-content/themes/regina-pro/includes/framework/options/class.macho-post-type.php
- if (is_array($args[‘rewrite’]) && $registered[$post_type][‘rewrite’][‘slug’] != $arg …. // line306
- wp-content/themes/regina-pro/header/header-v1.php
- if (is_array($image_meta) && array_key_exists(‘_wp_attachment_image_alt’, $image_meta)) {.. // line 19
- wp-content/themes/regina-pro/includes/framework/options/class.macho-options.php
- $out = array();
- if (!is_array($options)) {
- $options = [];
- }
- foreach ($fields as $field_key => $field) { … // start of function prepare_fields