Title: Error : The magic method Singleton
Last modified: June 21, 2022

---

# Error : The magic method Singleton

 *  Resolved [corinnespi](https://wordpress.org/support/users/corinnespi/)
 * (@corinnespi)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/)
 * Hello,
    In the backend from this website, I have this error. In front end, it
   seems I cannot go with the mous to change the position.
 * Warning: The magic method Singleton::__sleep() must have public visibility in/
   home/clients/88e923513e804d37618b05326528a44c/sites/gite-vals-les-bains.fr/wp-
   content/plugins/wpvr/admin/views/class-wpvr-singleton.php on line 75
 * Warning: The magic method Singleton::__wakeup() must have public visibility in/
   home/clients/88e923513e804d37618b05326528a44c/sites/gite-vals-les-bains.fr/wp-
   content/plugins/wpvr/admin/views/class-wpvr-singleton.php on line 88
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-the-magic-method-singleton%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [corinnespi](https://wordpress.org/support/users/corinnespi/)
 * (@corinnespi)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15756380)
 * Thanks for you help
 *  [Jahir Chowdhury](https://wordpress.org/support/users/jahirchowdhury/)
 * (@jahirchowdhury)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15762699)
 * Hi [@corinnespi](https://wordpress.org/support/users/corinnespi/) ,
 * We’re really sorry that you’re facing this issue.
 * You see, we have just released a large update of the plugin.
 * The entire plugin was refactored.
 * And some of our users faced this same issue.
 * Here is how to solve it:
 * -> On your WPVR dashboard, go to the Tours list.
 * -> Open the tours one by one and update them.
    You don’t need to make any changes,
   just update them.
 * -> Clear cache and reload the pages where you’ve published the tours.
 * The issue should be resolved after that.
 * Please let us know if you’re still facing the issue after that.
 * Regards,
 *  [patryk1990](https://wordpress.org/support/users/patryk1990/)
 * (@patryk1990)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15766942)
 * I have same issue and I didn’t expect much, but tried the procedure above. I 
   run on php 8 and since the 8 update most of the magic methods must be declared
   as public. [https://www.php.net/manual/en/language.oop5.magic.php](https://www.php.net/manual/en/language.oop5.magic.php)
 *  Thread Starter [corinnespi](https://wordpress.org/support/users/corinnespi/)
 * (@corinnespi)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15771480)
 * Thanks for your answer [@jahirchowdhury](https://wordpress.org/support/users/jahirchowdhury/)
   and [@patryk1990](https://wordpress.org/support/users/patryk1990/)
    I did what
   you suggested, and I looked on the public visibility of the tour. It is ok, even
   one of my page is closed with a password, but it is not the tour that is non 
   public. I still have the error in the backend od Singleton::__sleep() must have
   public visibility in /…/wp-content/plugins/wpvr/admin/views/class-wpvr-singleton.
   php on line 75
 * Warning: The magic method Singleton::__wakeup() must have public visibility in/…
   wp-content/plugins/wpvr/admin/views/class-wpvr-singleton.php on line 88
 * And I see also this error : Warning: Undefined variable $autoplay_bg_music in…./
   wp-content/plugins/wpvr/admin/classes/class-wpvr-scene.php on line 1541
    There
   is no music on these tours.
 *  [Tim Bowen](https://wordpress.org/support/users/creativeslice/)
 * (@creativeslice)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15772170)
 * I can confirm the issue is still there in the admin area after updating to 8.0.1.
   `
   Warning: The magic method Singleton::__sleep() must have public visibility in.../
   app/public/wp-content/plugins/wpvr/admin/views/class-wpvr-singleton.php on line
   75`
    -  This reply was modified 3 years, 11 months ago by [Tim Bowen](https://wordpress.org/support/users/creativeslice/).
 *  [Jahir Chowdhury](https://wordpress.org/support/users/jahirchowdhury/)
 * (@jahirchowdhury)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15774216)
 * Hello [@corinnespi](https://wordpress.org/support/users/corinnespi/) , [@creativeslice](https://wordpress.org/support/users/creativeslice/),
   and [@patryk1990](https://wordpress.org/support/users/patryk1990/) ,
 * Thank you for your patience while we took the time to reply.
 * I’ve already informed our developers about this.
 * We don’t have full compatibility with PHP 8 yet.
 * We’ll try to release a compatible version on our next update or at least make
   this method public, so your issues are resolved.
 * Meanwhile, let us know if you face any other issues with the plugin.
 * Regards,
 *  [Jahir Chowdhury](https://wordpress.org/support/users/jahirchowdhury/)
 * (@jahirchowdhury)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15824606)
 * Hi [@creativeslice](https://wordpress.org/support/users/creativeslice/) , [@corinnespi](https://wordpress.org/support/users/corinnespi/),
   and [@patryk1990](https://wordpress.org/support/users/patryk1990/) ,
 * Thank you for your patience.
 * We have just released an update of the plugin with compatibility with PHP 8.
 * Please update your plugin versions and see if it’s working now.
 * Let us know if you face issues regarding this.
 * Regards,
 *  [Tim Bowen](https://wordpress.org/support/users/creativeslice/)
 * (@creativeslice)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15825552)
 * Thank you Jahir, this fixed the issue and we’re now able to load the gutenberg
   block editor even with WPVR activated!
 *  [Jahir Chowdhury](https://wordpress.org/support/users/jahirchowdhury/)
 * (@jahirchowdhury)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15826961)
 * Hi [@creativeslice](https://wordpress.org/support/users/creativeslice/) ,
 * Thank you for letting us know.
 * I’m marking this thread as resolved now.
 * Feel free to open another thread if you face any other issues with the plugin.
 * Have a great day!
 * Regards,
 *  Thread Starter [corinnespi](https://wordpress.org/support/users/corinnespi/)
 * (@corinnespi)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15827986)
 * Great thanks ! Yes it is working !
    Best regards Corinne

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Error : The magic method Singleton’ is closed to new replies.

 * ![](https://ps.w.org/wpvr/assets/icon-256x256.gif?rev=2480604)
 * [WP VR - 360 Panorama and Free Virtual Tour Builder For WordPress](https://wordpress.org/plugins/wpvr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpvr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpvr/)
 * [Active Topics](https://wordpress.org/support/plugin/wpvr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpvr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpvr/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [corinnespi](https://wordpress.org/support/users/corinnespi/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/error-the-magic-method-singleton/#post-15827986)
 * Status: resolved