• Resolved erikgerace

    (@erikgerace)


    I cloned an existing site to new domain and hosting. When i try to activate VRPConnector I am getting this error:

    Parse error: syntax error, unexpected T_STRING in /home/content/80/3948380/html/CaptainErik/bestbeach/wp-content/plugins/vrpconnector/VRPConnector.php on line 20

    I have tried to uninstall and re-install to no avail.

    This is VRPConnector.php:

    <?php
    /**
    * Plugin Name: VRPConnector
    * Plugin URI: https://www.gueststream.com/apps-and-tools/vrpconnector/
    * Description: Vacation Rental Platform Connector.
    * Author: GuestStream, Inc.
    * Version: 1.0.0
    * Author URI: https://www.gueststream.com/
    */

    if ( !isset( $_SESSION ) ) {
    @session_start();
    }
    /** Constants needed throughout plugin: * */
    define( ‘VRP_URL’, plugin_dir_url( __FILE__ ) );
    define( ‘VRP_PATH’, dirname( __FILE__ ) . ‘/’ );

    require __DIR__ . “/vendor/autoload.php”;

    $vrp = new \Gueststream\VRPConnector;

    //Activation:
    register_activation_hook( __FILE__, ‘vrp_flush_rewrites’ );
    register_deactivation_hook( __FILE__, ‘flush_rewrite_rules’ );

    /**
    * Flush rewrite rules upon activation/deactivation.
    */
    function vrp_flush_rewrites() {
    \Gueststream\VRPConnector::rewrite_activate();
    flush_rewrite_rules();
    }

    https://www.ads-software.com/plugins/vrpconnector/

Viewing 1 replies (of 1 total)
  • Plugin Author Houghtelin

    (@houghtelin)

    This issue is resolved in version 3.0.1 as it now will display a notification stating that the PHP version is unsupported. VRPConnector plugin requires PHP version 5.4 or higher.

Viewing 1 replies (of 1 total)
  • The topic ‘VRPConnector Parse Error’ is closed to new replies.