• Resolved JS Morisset

    (@jsmoriss)


    FYI – When using wr2x_picture_rewrite() I get the following PHP fatal since updating to the latest version:

    
    [22-Sep-2020 13:07:49 UTC] PHP Fatal error:  Uncaught Error: Call to a member function picture_rewrite() on null in /.../wordpress/wp-content/plugins/wp-retina-2x-pro/classes/api.php:14
    

    $wr2x_core does not appear to be defined, but if I do the folowing:

    
    global $wr2x_core;
    $wr2x_core = new Meow_WR2X_Core()
    

    Then I get:

    
    [22-Sep-2020 13:17:55 UTC] PHP Fatal error:  Cannot redeclare wr2x_retina_extension() (previously declared in /.../wordpress/wp-content/plugins/wp-retina-2x-pro/classes/api.php:47) in /.../wordpress/wp-content/plugins/wp-retina-2x-pro/classes/api.php on line 47
    

    It would be great if you could fix that global $wr2x_core issue, or at least give us a Meow_WR2X_Core::get_instance() method.

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Which version? 🙂 The Free version is pretty told, but indeed, I released a new version of the Pro which is very different. This new version might actually bring the issue, and if it’s the same one (it looks like it might), I can send you a new version. If you are using the Pro version contact me here: https://meowapps.com/contact/.

    If you are using the Free version, we can continue to talk about this issue here.

    You shouldn’t instantiate the Meow_WR2X_Core by yourself, but normally there is no need. I am secretely hoping your are using the Pro version because if you are, then I know why it’s happening.

    Thread Starter JS Morisset

    (@jsmoriss)

    Yes, I am a user of the Pro version. I will contact you at the URL provided.

    BTW, please consider adding a Meow_WR2X_Core::get_instance() method. For example:

    
    private static $instance = null;
    
    public static function &get_instance() {
    
            if ( null === self::$instance ) {
                    self::$instance = new self;
            }
    
            return self::$instance;
    }
    

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP fatal for wr2x_picture_rewrite’ is closed to new replies.