Decided to pull a version of a site I’ll be launching soon into sandbox and test the upgrade from 5.1.5 > RC1. Noting my thoughts / experience along the way.
- Update itself went smoothly.
- Cleared system cache, cleared dynamic cache, and resaved permalinks
- Site is still up and running (so that’s good) however elements appear to be missing.
Issue list (updating as I come across things)
#1
Bottom section on the homepage is a simple section > row > column setup. Completely missing once upgraded. Update: Turns out this was due to the global color selection not being respected during migration. The row is there, it’s simply transparent because the global color was not carried over.
5.1.5
RC1
#2
Looks like there is a fatal error on the site now.
UPDATE: in looking into this, it looks like it is due to a fairly complex / nested looper consumer setup I am using. That said, it worked flawlessly in 5.1.5 so not sure why it wouldn’t be working here.
I have a custom user meta field that stores information in an array: recently_played
Row A = Looper Provider = Dynamic Content = recently_played
Column A = Consumer
Div A = Looper Provider = Query String = post_type=courses&p={{dc:looper:item}} (gets the current item id from Row A’s Provider and creates a loop of the array)
Row B inside of Div A for formatting
Column B inside of Row B as consumer (for formatting)
Div B = Consumer = Featured Image
Div C = Consumer = Course Information
Rebuilt this in RC1 (and simplified the nesting) and it appears to have solved the issue. That said, I’d still consider this an issue since it used to work and didn’t.
This worked flawlessly to get this from the recently_played usermeta array. Now it causes a critical error on RC1:
Error:
Fatal error : Uncaught Error: Object of class WP_Post could not be converted to string in /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php:119 Stack trace: #0 /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php(119): preg_replace_callback(’/{{dc:([\w.-]*)…’, Array, ‘{{dc:post:title…’) #1 /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/functions/api.php(123): Themeco\Cornerstone\Services\DynamicContent->run(’{{dc:post:title…’, true) #2 /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/Renderer.php(161): cs_dynamic_content(’{{dc:post:title…’) #3 /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Elements/Renderer.php(293): Themeco\Cornerstone\Ele in /home/customer/www/XYZ.com/public_html/wp-content/themes/pro/cornerstone/includes/classes/Services/DynamicContent.php on line 119
#3
None of my layouts are being respected. These are a simple CPT with a single layout.
5.1.5
RC1
#4
In trying to fix #3
, I can see that the conditions lost their assignments altogether. However, when I reassign none of the post types show up in the preview toggle. And the layout assignment simply doesn’t work.
#5
In trying to remedy #3
and #4
I noticed that the single layout template referenced in #3
is actually completely blank. Meaning it lost all of the formatting. What’s even crazier is that I can’t rebuild it. I can add sections but it doesn’t do anything :o
5.1.5
RC1