0
Welcome Guest! Login
0 items Join Now

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

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

    Posted 9 years 5 months ago
    • I installed Gantry 5 and get an error on activating plugin. Cloudaccess.net claims it's your problem, not theirs.

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

      Parse error: syntax error, unexpected '[' in /mnt/data/vhosts/casite-689593.cloudaccess.net/httpdocs/wp-content/plugins/gantry5/gantry5.php on line 126

      I get this every time I try to activate Gantry 5. I have done a clean install and same error. I can download and tried their plugin on Gantry's site directly, the one linked in wordpress directory and the one you have at RocketTheme all give same error above. It installs good but not activate.

      Can you fix it?

      I tried reinstalling on a new site and same error and emailed my host, cloudaccess.net and they claim it's your problem and not theirs to fix.
    • Last Edit: 9 years 5 months ago by Greg Hickman. Reason: add information since host responded.
    • David's Avatar
    • David
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • I get this error too. Clean install of Wordpress 4.3.1
  • Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • The error means you are running an unsupported version of PHP. Gantry requires PHP 5.4+, we highly recommend 5.6.
    • / Djamil Legato / Lead Developer /
  • Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • You are brilliant! I just assummed Cloudaccess.net would know this but guess not. I went in to my control panel and changed PHP to 5.6.1 and it activated just fine.

      thank you thank you thank you
    • David's Avatar
    • David
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • i changed the line from this
      if (isset($options['type']) && in_array($options['type'], ['plugin', 'theme'])) {
      to this
      if (isset($options['type']) && in_array($options['type'] ['plugin'] ['theme'])) {

      that worked but I got a message saying that I needed PHP 5.4 (running PHP 5.3.29)
  • Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • I fixed those warnings now for the next release github.com/gantry/gantry5/commit/19c1e79...21c2697f58bb5973c2e1
      but it will just fail with a notice, 5.4+ is still required.

      Your fix is not quite right, it should be:
       if (isset($options['type']) && in_array($options['type'], array('plugin', 'theme'))) {
    • Last Edit: 9 years 5 months ago by Djamil Legato.
    • / Djamil Legato / Lead Developer /
    • David's Avatar
    • David
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • Thanks I updated the gantry5.php file.

      I checked with my host provider and I just needed to add a line to the .htaccess file to use 5.4

      The warning went away after I updated the .htaccess file.
    • David's Avatar
    • David
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • I got this error when I installed the Salient theme
      Warning: Illegal string offset 'plugin' in /home/acgdrywall/public_html/wp-content/plugins/gantry5/gantry5.php on line 126

      Warning: Illegal string offset 'theme' in /home/acgdrywall/public_html/wp-content/plugins/gantry5/gantry5.php on line 126

      Warning: in_array() expects at least 2 parameters, 1 given in /home/acgdrywall/public_html/wp-content/plugins/gantry5/gantry5.php on line 126
    • David's Avatar
    • David
    • Jr. Rocketeer
    • Posts: 28
    • Thanks: 0

    Re: Gantry 5 Plugin could not be activated because it triggered a fatal error.

    Posted 9 years 5 months ago
    • I changed the line back to original and reinstalled the theme and got this
      Fatal error: Class 'Gantry\Framework\Gantry' not found in /home/acgdrywall/public_html/wp-content/plugins/gantry5/gantry5.php on line 129
    • Last Edit: 9 years 5 months ago by David.

Time to create page: 0.057 seconds