• Resolved Creative Slice

    (@creativeslice)


    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)
  • Hi @creativeslice ,

    Thank you for the suggestion.

    Indeed you’ve noticed something important.

    This scenario will occur when anyone tries to create a tour without any scene or panorama image.

    We’ve handled this inside the plugin, as we show an error notice if any user tries to do it.

    What you’ve noticed and suggested to us, will make it even more secure.

    We’ll fix it in the next update of our plugin.

    Let us know if you find anything like this in the plugin.

    Regards,

    Hi @creativeslice ,

    Update: This issue has been handled in our development version and will be released in our next update.

    We’ll let you know once the issue is resolved.

    Meanwhile, let us know if you find anything else like this.

    Regards,

    Hi @creativeslice ,

    We have released an update with the fix to this.

    Please let us know if you come across more issues like this.

    Regards,

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.