This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello, I am studying October, and trying to follow the steps of the Mastering Components video, but when I use php Artisan I get a parse error:
php artisan
Parse error: parse error in /Applications/MAMP/htdocs/vendor/guzzlehttp/guzzle/src/functions.php on line 24
I am working locally with MAMP ....
Same problem with XAMMP. Fresh install, same error.
Everything else seems to be working. I can use October fine: can create Pages, can create Layouts etc Only Artisan is not working.
This is a fresh install of October with MAMP and a no whatsoever modification on the code. So I was wondering whether it is possible to create a model (and of course the database table) without Artisan. Can somebody point me to a useful resource for doing that? Thanks in advance to anybody that could help Zoro
First of all there must be something wrong with your installation files. Are you using the normal October installation method? It is normally rock solid. I have installed it in a lot of different setups and they have all worked without the sort of error you have had.
Secondly, it is easy to create models and components without artisan. The best way is to install a standard plugin like the forum or the blog and you can copy and paste the bits that you need. Then read the docs many times! It is really straightforward after finishing it the first time.
I hope you get on ok, post again if you need help
Last updated
Hey thank you for your answer. I guess I installed using the normal installation method: I downloaded a compressed file called install-master.zip into a fresh install MAMP (and then I tried with XAMMP too, but same error happened). Everything went fine, installation worked smoothly. October backend interface works fine. October works fine. But Artisan is throwing that error. btw: I am working locally on Mac OS X 10.6.8.
And yes, your suggestion about copy and paste plugins is a good one, and that's what I am doing at the moment. It makes it painfully slow to follow the video I am trying to learn from, Mastering Components , because the author is using Artisan all the times :)
Well, MAMP preference is set to PHP 5.6.2 , but if I check with php -v command I get: PHP 5.3.15. That's confusing :)
Haven't tried with Composer, yet. That's my next step.
Hi all,
I did a clean install, first i had an error connecting to the to the october server. Here i had to change: 35 define('OCTOBER_GATEWAY', 'http://octobercms.com/api'); to define('OCTOBER_GATEWAY', 'https://octobercms.com/api'); https instead http After a successful install, i get the: Parse error: syntax error, unexpected '[' in /home/vhosts/mywebsite.nl/httpdocs/vendor/guzzlehttp/guzzle/src/functions.php on line 24 error. im using php 5.5 *edit For my hosting to use php 5.5 i needed to add a line to the .htaccess file, after installation october makes a new .htaccess file, and ofc then this line is missing.
Last updated
1-8 of 8