Support » Plugin: Simply Static » help! got an error

  • hello! any ideas?
    [2017-04-06 11:53:50] Setting up
    [2017-04-06 14:58:25] Error: (1) Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /nas/content/live/whiterabbitexp/wp-content/themes/wrxmodif/lib/php-sdk/base_facebook.php on line 1238

Viewing 1 replies (of 1 total)
  • Plugin Author Scott at Code of Conduct

    (@codeofconduct)

    Hi Max,

    I don’t presently have a way to turn off exception catching in Simply Static, but you can do so by hand if you don’t mind editing some code.

    The easiest way to edit it is probably via the WordPress Admin site. On the left side, go to Plugins->Editor. On the right side, there’s a dropdown where you can select Simply Static as the plugin to edit.

    The file you’ll need to edit is:
    simply-static/includes/class-ss-archive-creation-job.php

    Look for this section around line 48:

    
    		if ( ! $this->is_job_done() ) {
    			register_shutdown_function( array( $this, 'shutdown_handler' ) );
    		}
    

    And comment it out:

    
    		// if ( ! $this->is_job_done() ) {
    			// register_shutdown_function( array( $this, 'shutdown_handler' ) );
    		// }
    

    That should solve your issue. Though I can’t guarantee Simply Static will run successfully if your site is throwing exceptions behind the scenes. Good luck!

    Best,
    Scott

Viewing 1 replies (of 1 total)
  • The topic ‘help! got an error’ is closed to new replies.