# Parse error with SMS Bundle - Problem Installing 1.4 on server

**URL:** https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719
**Category:** Product Support
**Created:** [May 11, 2016, 3:41pm UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719 "2016-05-11T15:41:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![demonslayer](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@demonslayer](https://forum.mautic.org/u/demonslayer)
#### Post date: [May 11, 2016, 3:41pm UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/1 "2016-05-11T15:41:43Z")

</div>

Hey guys, not a PHP programmer. Uploaded top level folder, went to domain/subfolder/installer and got this error  
  
Parse error: syntax error, unexpected ‘[’ in /home/content/95/10822095/html/testmautic/mautic/app/bundles/SmsBundle/Controller/Api/SmsApiController.php on line 37  
  
  
  
Any idea if this is a bug. Or did iI do something wrong…  
  
  
  
I unzipped at local host  
  
Renamed extratced folder 1.4.0 to mautic  
  
created new folder at host  
  
uploaded mautic to new folder  
  
  
  
and like I said from the start went to… and got the error above. Would appreciate any help or advise thanks.

---

<div class="post-metadata">

### Author: ![demonslayer](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@demonslayer](https://forum.mautic.org/u/demonslayer)
#### Post date: [May 11, 2016, 3:41pm UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/2 "2016-05-11T15:41:43Z")

</div>

Hey guys, not a PHP programmer. Uploaded top level folder, went to domain/subfolder/installer and got this error  
Parse error: syntax error, unexpected ‘[’ in /home/content/95/10822095/html/testmautic/mautic/app/bundles/SmsBundle/Controller/Api/SmsApiController.php on line 37

Any idea if this is a bug. Or did iI do something wrong…

I unzipped at local host  
Renamed extratced folder 1.4.0 to mautic  
created new folder at host  
uploaded mautic to new folder

and like I said from the start went to… and got the error above. Would appreciate any help or advise thanks.

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [May 12, 2016, 9:51am UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/3 "2016-05-12T09:51:44Z")

</div>

Oh no. That is PHP 5.4 syntax. I created a pull request fixing it:

[https://github.com/mautic/mautic/pull/1732](https://github.com/mautic/mautic/pull/1732)

But I’d recommend to update your PHP version anyway. It is not supported by PHP itself for quite a long time:

[http://php.net/supported-versions.php](http://php.net/supported-versions.php)

---

<div class="post-metadata">

### Author: ![demonslayer](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@demonslayer](https://forum.mautic.org/u/demonslayer)
#### Post date: [May 12, 2016, 11:50am UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/4 "2016-05-12T11:50:24Z")

</div>

Thanks @escopecz. Got rid of that error but got a new one. Should I open a new thread just in case?

Fatal error: Cannot redeclare class SessionHandlerInterface in /home/content/95/10822095/html/mautic/app/cache/prod/classes.php on line 387

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [May 12, 2016, 11:55am UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/5 "2016-05-12T11:55:12Z")

</div>

It seems like a cache issue. Remove app/cache directory and let it regenerate on a page load.

---

<div class="post-metadata">

### Author: ![demonslayer](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@demonslayer](https://forum.mautic.org/u/demonslayer)
#### Post date: [May 14, 2016, 10:24am UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/6 "2016-05-14T10:24:08Z")

</div>

Hey @escopecz removed cache and it worked:) Thanks. However, hate to bother you with this but got error when trying to install database. Pretty sure it’s got nothing to do with Mautic but still clueless so gotta ask.

An error occured while attempting to connect to the database: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

---

<div class="post-metadata">

### Author: ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)
#### Post date: [May 16, 2016, 4:49am UTC](https://forum.mautic.org/t/parse-error-with-sms-bundle-problem-installing-1-4-on-server/3719/7 "2016-05-16T04:49:13Z")

</div>

> [@](#):
>
> Can’t connect to local MySQL server

It can be for many reasons like wrong username, password, host, port or that the MySql server is down. Maybe you’ll be able to find more information in the MySql logs.
