Fatal error: Uncaught Error: Cannot use string offset as an array in (CP 3.6.1)
When the user tried to submit a listing with images, ClassiPress raised an error:
Warning: Illegal string offset 'attachment' in
/home/xpto/public_html/wp-content/themes/classipress/includes/images.php on line
80
Fatal error: Uncaught Error: Cannot use string offset as an array in /home/xpto/public_html/
wp-content/themes/classipress/includes/images.php
Stack trace:
#0 /home/xpto/public_html/
wp-content/themes/classipress/includes/views-checkout.php(1045): cp_process_new_image()
#1 /home/xpto/public_html/
wp-content/themes/classipress/includes/views-checkout.php(947): CP_Listing_Form_Edit->update_attachments(Object(APP_Draft_Order), Object(APP_Dynamic_Checkout))
(...)