I’ve just updated to the latest theme X (7.1.2) and Cornerstone (4.1.2) versions and suddenly I was unable to edit pages and open Theme options in Cornerstone, so it seems like Cornerstone doesn’t work at all.
In Google Chrome, the console gives the following error message “Uncaught TypeError: Cannot read property ‘elements’ of undefined” and the error happens in this file cs-vendor.fa34ec9.js on line 1897.
In Firefox, the Cornerstone edit page actually renders but a warning of unreachable code in the cs-vendor.fa34ec9.js is printed out in the console
In my search for an solution, I’ve tried the following steps:
- Disabled all other plugins
- Deleted both server- and client side cache
- Removed custom js and css
- Reset the htaccess file by renaming it to .htaccess-bak and saved changes
- Added the following to wp-config.php:
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
The error still persists despite these different efforts. The only way to get rid of the error is to return back to the old version of X (6.5.5) and cornerstone (3.5.4).
How can I fix this issue?
