This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

sorentruelsen339
sorentruelsen339

Hello Guys,

I've been running developing from localhost and is now ready to move to production site. However, after uploading I get some strange errors.

First one is: "Parse error: syntax error, unexpected '[', expecting ')' in /public_html/vendor/october/rain/src/Support/helpers.php on line 45"

I commented out the helper section and that "solved" it. Then the next one showed up;

Second one: "Symfony \ Component \ Debug \ Exception \ FatalErrorException error, unexpected '[' on "public_html/modules/system/providers.php"

Here it seems the provider array can no longer be loaded as an awway using "return [ 'Illuminate\Foundation\Providers\ArtisanServiceProvider', .. etc]

I changed that into "return array (...)" and that "solved" the problem, but then it simply showed up again in the "ailias" array ...

Am I doing something completly wrong? It seems those errors are not really related.

Help!

Thanks

Søren

sorentruelsen339
sorentruelsen339

Bugger .. my shared host is on php 5.3.x Guess its time to move then.

Autumn
Autumn

CMS required 5.4 and greater

info2940
info2940

The answer helped me for the same problem.

But in my case, the error "syntax error, unexpected '[', expecting ')' in /public_html/vendor/october/rain/src/Support/helpers.php on line 45" occur only when I switch a subdomain from original URL of my site.

And changing PHP 5.3 to 5.4 resolved the problem.

Last updated

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.