VRPConnector Parse Error
-
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();
}
- The topic ‘VRPConnector Parse Error’ is closed to new replies.