Uncaught TypeError: Cannot access offset of type string on string
-
If you’re recently updated to WordPress 6.0.2 here’s how you can stop the WPVR plugin from taking down your site. This issue has to do with arrays not being treated correctly.
Edit this file: plugins/wpvr/wpvr.php
Line 481: replace this code:
$panodata = '';
With this:$panodata = array();
Line 849, before this line:
foreach ($panodata['scene-list'] as $panoscenes){
Add this:
if (is_array($panodata) && isset($panodata['scene-list'])) {
Line 912, add a closing bracket:
}
This fixed it for us. I hope it helps someone else.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Uncaught TypeError: Cannot access offset of type string on string’ is closed to new replies.