Oshine Plugins won't activate... Parse Errors

Hi all, I sent an email to support last night but any help with this would be appreciated…
Kieran

Oshine Core

Plugin could not be activated because it triggered a fatal error .

Parse error : syntax error, unexpected ‘[’ in /home/content/31/10920531/html/acorn/wp-content/plugins/oshine-core/inc/importer/init.php on line 140

 public function import_slider() {
    	$demo = $_POST['demo'];
  
    	$sliders = self::get_settings($demo)['sliders'];
    	foreach ($sliders as $type => $file) {
    		$data = $this->demo_files_path.'/'.$file;
    		if($type == 'masterslider' && file_exists($data)) {
    			echo $this->import_master_slider($data);
    		} elseif ($type == 'revslider' && file_exists($data)) {
    			echo $this->import_revslider($data);
    		}
    	}
    }

TypeHub

Plugin could not be activated because it triggered a fatal error .

Parse error : syntax error, unexpected ‘[’ in /home/content/31/10920531/html/acorn/wp-content/plugins/typehub/includes/helpers.php on line 233

$typekit_fonts[$fam->name]["variants"] = $temp_array;
$typekit_fonts[$fam->name]["subsets"] = [];
$typekit_fonts[$fam->name]["cssname"] = $fam->css_names[0];

Tatsu

Plugin could not be activated because it triggered a fatal error .

Parse error : syntax error, unexpected ‘[’, expecting ‘)’ in /home/content/31/10920531/html/acorn/wp-content/plugins/tatsu/includes/helpers/helpers.php on line 93

function tatsu_create_new_post_url( $post_type = 'page' ) {
	$new_post_url = add_query_arg( [
		'action' => 'tatsu_new_post',
		'post_type' => $post_type,
	], admin_url( 'edit.php' ) );
	//$new_post_url = wp_nonce_url( $new_post_url, 'tatsu_action_new_post' );
	return $new_post_url;
}

Hello.

Keep patience hope they will reply to soon cause it’s Sunday.

Thanks for posting your question & using Envato product.

If they ask about purchase key

Still have any question Open a Envato Help Ticket
https://help.market.envato.com/hc/en-us/requests/new?ticket_form_id=170903

Thanks

Heya @lanocwebdesign,

It seems like your server is running PHP 5.3 or below. This is particularly worrying because PHP 5.3 hasn’t been receiving security updates for many years and is significantly behind current versions of PHP in speed and features. The error you’re receiving is caused by one of these missing features.

I’d recommend upgrading your server to at least PHP 7. They’ve made several speed improvements in each version so the higher you go, the faster your WordPress site can load.

(Also, I gave the theme’s comments a quick search and the author is asking people who encounter this issue to upgrade to at least PHP 5.4 in order to fix the issue.)

Cheers!

1 Like

It’s because of the old PHP version you are using. PHP 5.3 (and those <5.3) doesn’t support the[] syntax, only PHP 5.4 and later versions do.

The PHP 5.3 version and those smaller than 5.3 only support the array() syntax for arrays.

The solution is to contact you web hosting to ask them to upgrade the PHP vesion on your web server to 5.4 or more. (some web hosting providers allow you to change the PHP version from cPanel, you could check if you have this option)

2 Likes

Thanks Hevada… That done the job, plugins activated… :point_up::clap::+1:

Thanks Baileyherbet… Upgraded PHP… You guys are the best. :slight_smile:

3 Likes

:smile: I’m sorry, I only saw Bailey already replied only after I posted :slight_smile: Sunday mornings are difficult :slight_smile: Good luck with the project/website!

2 Likes